Skip to main content

breakSeqInNs_then_translate

1 Introduction

breakSeqInNs_then_translate is a tool to filter the sequences by translating the protein coding genes (PCGs) with proper genetic code table, if one of the PCGs has interal stop codon, filter out this sequence. By Guanliang MENG, see https://github.com/linzhi2013/breakSeqInNs_then_translate.

2 Installation

pip install breakSeqInNs_then_translate

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

3 Usage

$ breakSeqInNs_then_translate
usage: breakSeqInNs_then_translate.py [-h] [-seq <seq>] [-seqfile <file>]
                                      [-seqformat {fa,gb}] [-code <int>] [-nb]
                                      [-gb_genes <int>] [-maxStopGenes <int>]

Filter the sequences by translating the protein coding genes (PCGs) with
proper genetic code table, if one of the PCGs has interal stop codon, filter
out this sequence. Beware: if the seq has Ns, then this script will translate
the sub seqs with three frames (0, 1, 2), only when all these three kinds of
frames have interal stopCodon the seq will be treated as have InternalStop!.
By Guanliang MENG, see
https://github.com/linzhi2013/breakSeqInNs_then_translate

optional arguments:
  -h, --help           show this help message and exit
  -seq <seq>           input sequence
  -seqfile <file>      input fasta or genbank file
  -seqformat {fa,gb}   input -seqfile format [fa]
  -code <int>          genetic code table [1]
  -nb                  do not break sequence in Ns when translate [break]
  -gb_genes <int>      if a genbank record has no less than -gb_genes PCGs and
                       no more than -maxStopGenes PCGs has InternalStops, we
                       keep this record. But if a genbank record has less than
                       -gb_genes PCGs, then we will discard this record if any
                       of its PCGs has InternalStops. This is because we may
                       want to tolerate some assembly/sequencing errors. This
                       has no effect on fasta input file. [5]
  -maxStopGenes <int>  the maximum number of PCGs can have InternalStops in a
                       genbank record if do not discard it [0]

4 Author

Guanliang MENG

5 Citation

Currently I have no plan to publish breakSeqInNs_then_translate.

However, since breakSeqInNs_then_translate makes use of Biopython, you should also cite it if you use breakSeqInNs_then_translate in your work:

Peter J. A. Cock, Tiago Antao, Jeffrey T. Chang, Brad A. Chapman, Cymon J. Cox, Andrew Dalke, Iddo Friedberg, Thomas Hamelryck, Frank Kauff, Bartek Wilczynski, Michiel J. L. de Hoon: “Biopython: freely available Python tools for computational molecular biology and bioinformatics”. Bioinformatics 25 (11), 1422–1423 (2009). https://doi.org/10.1093/bioinformatics/btp163

Please go to http://www.biopython.org/ for more details.

Metadata

Release files for breakSeqInNs-then-translate 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for breakSeqInNs-then-translate 0.0.1
File Size Uploaded
breakSeqInNs_then_translate-0.0.1.tar.gz 18.3 kB Details

Release files / breakSeqInNs_then_translate-0.0.1.tar.gz

Download URL breakSeqInNs_then_translate-0.0.1.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
046a4d824292321e39d60c841277397a40b969e112ac31eb4250aac41d3c29c4
BLAKE2b-256 checksum
How to use checksums
90ef7b247b5f2cd131eca6f9f53d714b4206ff7cf8dd1e291d807e4d1491d40e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page