Skip to main content

To get the coordinates of a given CIGAR string. By Guanliang MENG, see https://github.com/linzhi2013/cigar_coordinates.

Project description

cigar_coordinates

1 Introduction

cigar_coordinates is a tool To get the coordinates of a given CIGAR string. CIGARs are in respect of the reference sequence. By Guanliang MENG, see https://github.com/linzhi2013/cigar_coordinates.

cigar_coordinates understands the following CIGAR characters:

   seq - - - N N N O O O
refseq - N O N - O O N -
 cigar P n D B u U M N I

2 Installation

pip install cigar_coordinates

There will be a command cigar_coordinates created under the same directory as your pip command.

3 Usage

$ cigar_coordinates
usage: cigar_coordinates [-h] -c <STR> [-s <INT>] [-q] [-d {+,-}]

To get the coordinates of a given CIGAR string.
By Guanliang MENG, see https://github.com/linzhi2013/cigar_coordinates.

I understand the following CIGAR types:

     seq - - - N N N O O O
  refseq - N O N - O O N -
   cigar P n D B u U M N I

The output coordinates are closed intervals.

optional arguments:
  -h, --help  show this help message and exit
  -c <STR>    input CIGAR string
  -s <INT>    the start coordinate on the sequence, whatever the gene
              direction is, this option is always the smaller one. [1]
  -q          the '-s' option is about query sequence, not refseq [True]
  -d {+,-}    the gene direction [+]

4 Example

For a gene: ND1;len=945;[2444:3389](+)

$ cigar_coordinates -c 6D166M268N511M -s 2444
6D  2444  2444
166M  2444  2609
268N  2610  2877
511M  2878  3388

5 Author

Guanliang MENG

6 Citation

Currently I have no plan to publish cigar_coordinates.

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

cigar_coordinates-0.0.1.tar.gz (17.2 kB view details)

Uploaded Source

File details

Details for the file cigar_coordinates-0.0.1.tar.gz.

File metadata

  • Download URL: cigar_coordinates-0.0.1.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.4

File hashes

Hashes for cigar_coordinates-0.0.1.tar.gz
Algorithm Hash digest
SHA256 21c43fa4266cd685c7f258bdffc8ec75984a734192d3d83a1a09bf8d4406d176
MD5 6b989ef4dfdf2d0def00f94fbddab35c
BLAKE2b-256 9ecd89c1d7abcc88dd360f4362ede26cea7a16e1f62e175d1be18880b2461af1

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