Beispiel #1
0
 def run_finder(self, names, all_domains, types=None):
     genes = [DummyCDS(1, 2, locus_tag=name) for name in names]
     for gene in genes:
         gene.nrps_pks = DummyNRPSQualfier()
         gene.nrps_pks.domain_names = all_domains[gene.get_name()]
         if not types:
             gene.nrps_pks.type = domain_identification.classify_cds(
                 all_domains[gene.get_name()])
         else:
             gene.nrps_pks.type = types[gene.get_name()]
     return orderfinder.find_cluster_modular_enzymes(genes)
Beispiel #2
0
 def func(self, domains, ks_subtypes=None):
     return domain_identification.classify_cds(domains, ks_subtypes or [])