Skip to main content

Command line scripts for the oldowan.mitomotifs package.

Project description

oldowan.mitomotifs-cmdline provides the seq2sites and sites2seq command line scripts to covert human mitochondrial DNA sequences to lists of variant sites relative to the revised Cambridge Reference Seqeunce and vice versa. Further information on the rCRS and variant site nomenclature for human mtDNA sequences is available at the MitoMotifs website.

This package is only the command line extension of the core oldwan.mitomotifs module. If you want just the Python libraries and not the command line tools, you should go directly to that package.

Installation Instructions

This package is pure Python and has only pure Python dependencies (oldowan.mitomotifs and oldowan.fasta) outside of the standard library. All of these dependencies will be automatically installed if you use the setuptools easy_install tool. This usually goes something like this:

$ easy_install oldowan.mitomotifs-cmdline

or on a unix-like system, assuming you are installing to the main Python site-packages directory as a non-privileged user, this:

$ sudo easy_install oldowan.mitomotifs-cmdline

You may also use the standard python distutils setup method. You will have to download ind install oldowan.fasta and oldowan.mitomotifs first. Then, download the current source archive from the file list towards the bottom of this page, unarchive it, and install. On Mac OS X and many other unix-like systems, having downloaded the archive and changed to the directory containing this archive in your shell, this might go something like:

$ tar xvzf oldowan.mitomotifs-cmdline*
$ cd oldowan.mitomotifs-cmdline*
$ python setup.py install

Quick Start

Convert sequences to sites:

$ seq2sites sequences.fasta

Convert sequences to sites, saving the output to a file:

$ seq2sites sequences.fasta > sites.txt

Sequences must be contiguous! Separate runs of sequence, such as HVR1 and HVR2 without the intervening sequence interval, must be analyzed separately.

There is also a cutoff on the number of ambigous sites (N) allowed in the sequence. By default, this is 10 - but this is an option that can be set:

$ seq2sites --ambig-cutoff=20 sequences.fasta

Convert a list of variable sites to sequence. The input file should be a comma-seprated-values list with one entry per line, with name, N, and sites. Sites should be separated by whitespace:

$ cat hvr1_sites.txt
Seq1,1,16129A
Seq2,1,16129A 16223T
Seq3,2,16223T
$ sites2seq hvr1_sites.txt

The default range of sequence returned is HVR1, defined as positions 16023 to 16365 on the rCRS. All predefined ranges are:

  • HVR1: 16024-16365

  • HVR2: 73-340

  • HVR1to2: 16024-340

  • coding: 577-15992

  • all: 1-16559

So, to convert a list of HVR2 sites to sequence:

$ sites2seq --region=hvr2 hvr2_sites.txt

An arbitrary range may be selected. If the stop value is smaller than the start, it is assumed that the range runs through the origin:

$ sites2seq --begin=16024 --end=340 dloop_sites.txt

The rCRS sequence will can be selected with ‘rCRS’ as the sites value:

$ cat sites.txt
Seq1,1,rCRS
Seq2,1,16129A 16223T

Release History ===============

1.0.0 (August 16, 2008)

initial release of module.

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

oldowan.mitomotifs-cmdline-1.0.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

oldowan.mitomotifs_cmdline-1.0.0-py2.5.egg (12.9 kB view details)

Uploaded Source

File details

Details for the file oldowan.mitomotifs-cmdline-1.0.0.tar.gz.

File metadata

File hashes

Hashes for oldowan.mitomotifs-cmdline-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0cbb2365b8e5f2fae051edd9e24ed9189fdcb5cfcb4363d1e6b7275469056b2c
MD5 4b5e4a2da14da5992ed6ff782dd89671
BLAKE2b-256 7009d53f828a3093734b6d2d7f91c5e1b6aa9ee775b2d4c93c7fa3f674196343

See more details on using hashes here.

File details

Details for the file oldowan.mitomotifs_cmdline-1.0.0-py2.5.egg.

File metadata

File hashes

Hashes for oldowan.mitomotifs_cmdline-1.0.0-py2.5.egg
Algorithm Hash digest
SHA256 8eb288b8a33734b123a1d4d0da4d95a2afe8d9826d56ec4dcaae392be3c26b55
MD5 4cd434d12d1d48bcbd566e5ac4e7cf9e
BLAKE2b-256 341506b784f554f9a1026750ccdc58a6269b2040becdde85aea18dce11d16598

See more details on using hashes here.

Supported by

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