ORF Finder#
- class chamois.orf.ORFFinder#
An abstract base class to provide a generic ORF finder.
- abstractmethod find_genes(clusters, progress=None)#
Find all genes from a DNA sequence.
- class chamois.orf.PyrodigalFinder(ORFFinder)#
An
ORFFinderthat uses thepyrodigalbindings to Prodigal.Prodigal is a fast and reliable protein-coding gene prediction for prokaryotic genomes, with support for draft genomes and metagenomes. Since BGCs are short sequences, only “meta” mode can be used for detecting genes in the input.
References
- __init__(mask=False, cpus=None)#
Create a new
PyrodigalFinderinstance.
- find_genes(clusters, progress=None, *, pool_factory=<class 'multiprocessing.pool.ThreadPool'>)#
Find all genes contained in a sequence of DNA records.
- Parameters:
clusters (iterable of
ClusterSequence) – An iterable of raw cluster sequences in which to find genesprogress (callable, optional) – A progress callback of signature
progress(cluster, total)that will be called everytime a record has been processed successfully, withrecordbeing theClusterSequenceinstance, andtotalbeing the total number of records to process.
- Keyword Arguments:
pool_factory (
type) – The callable for creating pools, defaults to themultiprocessing.pool.ThreadPoolclass, butmultiprocessing.pool.Poolis also supported.- Yields:
Protein– An iterator over all the genes found in the given records.