Skip to main content

A package for computing variation numbers

Project description

Variation Number

A package for calculating the variation number of nucleotide/protein sequence using sequence orthologs.

Characteristic Attribute Organization System (CAOS) discovers rules associated with a given phylogenetic tree. A pure (Pu) rule or character attribute (CA) is a state that exists in all elements of a clade but not the alternate clade; a private (Pr) CA is present in some members of a clade but absent in the alternate clade. A variation number (VN) is defined as the number of occurrences of a position as a CA in all the tree clades.

The method is described in the publication:
Lai, J., & Sarkar, I. N. (2021). A Phylogenetic Approach to Analyze the Conservativeness of BRCA1 and BRCA2 Mutations. AMIA ... Annual Symposium proceedings. AMIA Symposium, 2020, 677–686. https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8075528/

Features

  • Download orthologs
  • Build phylogenetic trees
  • Generate variation numbers

Required python packages

Python packages (most of which can be installed using pip) needed to run LYRUS include:

Required external packages

In order to run vn.py, please install command line version for:

  1. Clustal Omega: http://www.clustal.org/omega/
  2. Mafft: https://mafft.cbrc.jp/alignment/software/
  3. PAUP: http://phylosolutions.com/paup-test/
  4. FastTree: http://www.microbesonline.org/fasttree/

Running instructions for installation using pip

variation_number(0.2.5) is published on PyPI. Use the following command to install variation_number using pip:

$ pip install variation-number

Usage

import variation_number as vn
import os
gene = 'BRCA1'
seqtype =' protein'
outputDir = '{}/output'.format(os.getcwd())

# Download orthologs from NCBI orthologs database (optional; can use user provided sequence file)
acc = vn.getFasta(gene, outputDir,seqtype,refseqID=None)

# Calculate variation number using clustal omega
vn.processVN(file='{}/{}'.format(outputDir, gene), outputDir, reindex=False, accession_full=acc, seqType=seqtype, aligned=False, alignTool='clustal', treeTool='paup')

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

variation_number-0.2.5.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

variation_number-0.2.5-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file variation_number-0.2.5.tar.gz.

File metadata

  • Download URL: variation_number-0.2.5.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.8

File hashes

Hashes for variation_number-0.2.5.tar.gz
Algorithm Hash digest
SHA256 6143268ee2525227c7c0028b2eed6667b9328f6e4bb6e63daccd47002bf5dbe3
MD5 7b57d5160ba311fcc100ddef293c8aac
BLAKE2b-256 9c64dee999b2d7490e478458ad1ae005ba3c0ce678fa414d8ad0db0a0faf78a2

See more details on using hashes here.

File details

Details for the file variation_number-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for variation_number-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 38fbf40e49bb8d2af3b680b9c37012a7f899cd96a9d1ae908014df8aeaf93657
MD5 91e49b2e9c7f7adf05df4b012d306445
BLAKE2b-256 eb5f569e953a49807753e25c3d1960815f2dc6bad389672a05722c9625b991f0

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