Skip to main content

Revert sequences to consensus

Project description

rev-seqs: Revert Sequences to Consensus Preserving Variants

rev-seqs is a command line utility to revert sequences to consensus preserving variants detected in a VCF file. It reverts all other positions the sample consensus

Usage

Once installed rev-seqs is just a simple command line command.

python -m revseqs --input <input file> --vcf <vcf file> > <output_file>

run python revseqs -h for more options

The new bam file is written to standard output. Input file must be an indexed bam file

Inserts

Any inserts that are not flagged as variants are removed, those inserts along with sample header are printed to standard error. The sample name is followed by a comma separated list of insert positions that were removed.

To save this file for future inspect redirect standard error to a file using the command below

python -m revseqs --input <input.bam> --vcf <variants.vcf> > <output.bam> 2> <inserts>

Installation

pip install rev-seqs

Collaboration

If you have any issues, bugs, or feature requests please contact the author, nhannguyen72089@gmail.com

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

rev-seqs-0.0.1.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

rev_seqs-0.0.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file rev-seqs-0.0.1.tar.gz.

File metadata

  • Download URL: rev-seqs-0.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for rev-seqs-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8e60befb8b2f931c5528117bab38ee66f5b3660a5835090883ca9017e0634680
MD5 9c0fab59e82104e5334f7d8f0c863587
BLAKE2b-256 4e473d7aebc75124f77ef4b946bd36c2a405635cb7b41b64624ffd1d0054c28a

See more details on using hashes here.

File details

Details for the file rev_seqs-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: rev_seqs-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5

File hashes

Hashes for rev_seqs-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2bb1cfa9875ce03eba9d35d2f451e27884bcf6eef3216412f2be32a4e34aa03
MD5 d6c387027b42c6eb3db64fbb31653f64
BLAKE2b-256 4f5ab3ba37b5425b599a3b8affe9244494e0f6d6232fae50b7006e678ec2e2e9

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