RNAFinder#
- class pyaragorn.RNAFinder#
A configurable RNA gene finder.
- __init__(translation_table=1, *, trna=True, tmrna=True, linear=False, threshold_scale=1.0)#
Create a new RNA finder.
- Parameters:
translation_table (
int, optional) – The translation table to use. Check the List of genetic codes page listing all genetic codes for the available values, or thepyaragorn.TRANSLATION_TABLESconstant for allowed values.- Keyword Arguments:
trna (
bool) – Enable detection of tRNA genes. Set toFalseto disable.trmna (
bool) – Enable detection of tmRNA genes. Set toFalseto disable.linear (
bool) – Set toTrueto assume that the given sequences have linear topology (no closed genomes).threshold_scale (
float, optional) – Rescale scoring thresholds from the default levels. Defaults to 1.0 (no rescaling). Set to e.g. 0.95 to report possible pseudogenes by lowering the threshold by 5%.
Added in version 0.3.0: The
threshold_scalekeyword argument.
- find_rna(sequence)#
Find RNA genes in the input DNA sequence.
- Parameters:
sequence (
stror buffer) – The nucleotide sequence to process, either as a string of nucleotides (upper- or lowercase), or as an object implementing the buffer protocol.- Returns:
listofGene– A list ofGene(eitherTRNAGeneorTMRNAGene) corresponding to RNA genes detected in the sequence according to theRNAFinderparameters.
- threshold_scale#
The scale used to change the default thresholds.
Added in version 0.3.0.
- Type: