search_genes API reference

macsypy.search_genes.search_genes(genes, cfg)[source]

For each gene of the list, use the corresponding profile to perform an Hmmer search, and parse the output to generate a HMMReport that is saved in a file after Hit filtering. These tasks are performed in parallel using threads. The number of workers can be limited by worker_nb directive in the config object or in the command-line with the “-w” option.

Parameters:
  • genes (list of macsypy.gene.Gene objects) – the genes to search in the input sequence dataset
  • cfg (macsypy.config.Config object) – the configuration object