Skip to main content

CLI tool to compare and search protein families

Project description

Table Of Contents

Software Info:

Software Name: compbiolab-CLI
Latest Software Version: v0.4.0
PyPI: https://pypi.org/project/compbiolab-CLI/
Documentation: https://cfogel.github.io/compbiolab-CLI-docs/

Overview

Our goal for this project is to read a new input sequence and find the protein family which it belongs in by comparing it with existing sequences in the database. In addition to finding the closest family for a new sequence, our search application can also accept an autoencoded fingerprint and see which family is the best match using a variety of different metrics.

Our compare application allows different protein families to be compared directly using different distance functions. It accepts the names of families already in the database, but it can also accept files containing data from new latent spaces.

The program can be downloaded from PyPI (the Python Package Index), and it has a Command Line Interface.

Installation

  1. Install Python 3.7 or above
  2. Open a terminal. (On Windows, Windows Key + R → Type cmd → Enter)
  3. Type pip install compbiolab-CLI

Usage

Comparing protein sequences

Find the distance between fingerprints of two protein families

compare [-h] <protein_family> <protein_family> [distance_options] [output_options]
             list names

Comparing Arguments

  • protein_family

    Protein family's name. Provide an existing protein family's name or the file name of a new latent space. Files should contain 30 floats, each float in a separate line.

  • list names

    Show available protein family names

Searching

Find the closest family to a new protein sequence or family

search [-h] lat <latent space> [distance_options] [output_options]
            seq <sequence> [output_options]
            list names

Searching Arguments

  • lat <filename> [distance_options] [output_options]

    Provide the file name of one or more new protein family latent spaces. The closest protein family to these new latent spaces will be shown.

  • seq <filename> [output_options] (Requires 64-bit Python 3.7.x)

    Provide the name of one or more files containing a protein sequence to get the closest protein families for those sequences.

  • list names

    Show available protein family names

Optional Flags

Output Options

  • -out

    Output filename

  • -of

    Output format, text or csv. Default: text

  • -om

    Output mode, a[ppend] or w[rite]. Default: a

Distance Options

  • -m

    Distance metric. Default: euclidean

  • -p

    Scalar. The p-norm to apply for Minkowski, weighted and unweighted. Default: 2

Available metrics

euclidean (default), minkowski, cityblock, sqeuclidean, cosine, correlation, hamming, jaccard, chebyshev, canberra, braycurtis, yule, dice, kulsinski, rogerstanimoto, russellrao, sokalmichener, sokalsneath

Examples

You can find the Euclidean distance between two families ATKA_ATKC and CDSA_RSEP by running the command:

compare ATKA_ATKC CDSA_RSEP

example-1

If you want to find the Cityblock distance between ATKA_ATKC and a new latent space stored at second_new_latent_example.txt, you can run the command:

compare ATKA_ATKC second_new_latent_example.txt -m cityblock

example-2

If you want to find the cosine distance between two new latent spaces stored at first_new_latent_example.txt and second_new_latent_example.txt, you can run the command:

compare first_new_latent_example.txt second_new_latent_example.txt -m cosine

example-3


You can find the closest protein family to first_new_latent_example.txt in cosine distance by running the command:

search lat first_new_latent_example.txt -m cosine

example-4

You can find the closest family to a new protein sequence (for example new_sequence_example.txt) by running:

search seq new_sequence_example.txt

example-5

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

compbiolab-CLI-0.4.0.tar.gz (436.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

compbiolab_CLI-0.4.0-py3-none-any.whl (640.9 kB view details)

Uploaded Python 3

File details

Details for the file compbiolab-CLI-0.4.0.tar.gz.

File metadata

  • Download URL: compbiolab-CLI-0.4.0.tar.gz
  • Upload date:
  • Size: 436.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.6

File hashes

Hashes for compbiolab-CLI-0.4.0.tar.gz
Algorithm Hash digest
SHA256 29d12a6a8762d22848445482f007720f3fe034fbe36bc4b348aba7032385cbca
MD5 09739c056ea5f5d01a42d61b4c2de3ac
BLAKE2b-256 8a7f6f025d585ae840a7bebdc2feb3ac5e80d38ff9407a8d8bfd91939386ec66

See more details on using hashes here.

File details

Details for the file compbiolab_CLI-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: compbiolab_CLI-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 640.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.7.6

File hashes

Hashes for compbiolab_CLI-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd04c2b1f1e4a3524dda66781303fe4ab09c8d6bb390f99db44d1489138b31c4
MD5 06f90b72bc5e50d28db2ebde40e9b0e5
BLAKE2b-256 43c5fb4ded2070e40f5ac06f4a7f7213cb832a74c2fd32a577b808a6a32d30c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page