Domain Annotator#
- class chamois.domains.DomainAnnotator#
An abstract class for annotating genes with protein domains.
- abstractmethod annotate_domains(proteins, progress=None)#
Run annotation on proteins of
genesand update their domains.
- class chamois.domains.PfamAnnotator(path=None, cpus=None, whitelist=None)#
A domain annotator that uses
pyhmmerto find Pfam domains in proteins.- __init__(path=None, cpus=None, whitelist=None)#
Prepare a new HMMER annotation handler with the given
hmms.- Parameters:
file (
pathlib.Path) – The path to the file containing the Pfam HMMs.cpus (
int, optional) – The number of CPUs to allocate for thehmmsearchcommand. GiveNoneto use the default.whitelist (
Containerofstr) – If given, a container containing the accessions of the individual HMMs to annotate with. IfNoneis given, annotate with the entire file.
- annotate_domains(proteins, progress=None)#
Run annotation on proteins of
genesand update their domains.
- disentangle_domains(domains)#
Pick the best domain from overlapping domains in each protein.