Skip to main content

ORFFinder API.

Project description


banner


Downloads

ORFFinder

ORFFinder in Python. Inspired by NCBI's version: https://www.ncbi.nlm.nih.gov/orffinder/

Finds the open reading frame (6-frame scan) on a given 5' to 3' nucleotide.

Installation:

pip3 install orffinder

Usage

Import the package

IMPORTANT: Your DNA/RNA strand should always be from the 5' to 3' direction when input! Transcription direction (Image credit: Khan Academy)

from Bio import SeqIO
from orffinder import orffinder

sequence = SeqIO.read("gene.fasta", "fasta")
orffinder.getORFs(sequence, minimum_length=75, remove_nested=True)

Documentation

getORFs()

Returns the loci of discovered ORFs in a dictionary format.

sequence: sequence in Biopython Seq or String format.
minimum_length: minimum size of ORF in nucleotides. Default: 75
start_codons: recognised 3-base-pair codons for initialisation. Default: ["ATG"]
stop_codons: recognised 3-base pair condons for termination. Default: ["TAA", "TAG", "TGA"]
remove_nested: remove all ORFs completely encased in another. Default: False
trim_trailing: remove ORFs are the edge of the sequence that do not have a defined stop codon. Default: False

getORFNucleotides()

Returns a list of Biopython Seq objects or loci of discovered ORFs with Biopython Seq objects in a dictionary format.

sequence: sequence in Biopython Seq or String format.
return_loci: return the loci together with the nucleotide sequences. Default: False
minimum_length: minimum size of ORF in nucleotides. Default: 75
start_codons: recognised 3-base-pair codons for initialisation. Default: ["ATG"]
stop_codons: recognised 3-base pair condons for termination. Default: ["TAA", "TAG", "TGA"]
remove_nested: remove all ORFs completely encased in another. Default: False
trim_trailing: remove ORFs are the edge of the sequence that do not have a defined stop codon. Default: False

getORFProteins()

Returns a list of Biopython Seq objects or loci of discovered ORFs with Biopython Seq objects in a dictionary format.

sequence: sequence in Biopython Seq or String format.
translation_table: translation table as per BioPython. Default: 1
return_loci: return the loci together with the protein sequences. Default: False
minimum_length: minimum size of ORF in nucleotides. Default: 75
start_codons: recognised 3-base-pair codons for initialisation. Default: ["ATG"]
stop_codons: recognised 3-base pair condons for termination. Default: ["TAA", "TAG", "TGA"]
remove_nested: remove all ORFs completely encased in another. Default: False
trim_trailing: remove ORFs are the edge of the sequence that do not have a defined stop codon. Default: False

Dependencies

Biopython (https://biopython.org/)

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

orffinder-1.4.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

orffinder-1.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file orffinder-1.4.tar.gz.

File metadata

  • Download URL: orffinder-1.4.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.6.4

File hashes

Hashes for orffinder-1.4.tar.gz
Algorithm Hash digest
SHA256 69e9cecf9d35fb2160c8947fb086aab156ad71f6887af91321049195f487eac3
MD5 a5bb66898923533d8e724d96ab4f8f57
BLAKE2b-256 77954d491278756fd29a6d05bfd242e2b0596931dc5c4c2f7fb83111730b82c7

See more details on using hashes here.

File details

Details for the file orffinder-1.4-py3-none-any.whl.

File metadata

  • Download URL: orffinder-1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.23.4 CPython/3.6.4

File hashes

Hashes for orffinder-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 aeed72fa14cd2aa89eb25a76f6accd41cff389ac0c716b2c7ebb72f55e8a553d
MD5 5e447853f80c7888bcf78554c1398250
BLAKE2b-256 b366243737da9843be9d0db424efafc9d57847c13055e15f5dfe6f3dd33b4e7f

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