@@ -363,14 +363,17 @@ def get_output_dir(maybe_output_dir,
363363 entry .evalue = feature ['qualifiers' ]['evalue' ][0 ]
364364 entry .domain_type = feature ['qualifiers' ]['aSDomain' ][0 ]
365365 # processing special cases with subtypes
366- if entry .domain_type .startswith ('Condensation' ):
367- entry .subtype = entry .domain_type
368- entry .domain_type = entry .domain_type .split ('_' )[0 ]
369- elif entry .domain_type .endswith ('MT' ):
370- entry .subtype = entry .domain_type
371- entry .domain_type = 'MT'
372- if 'domain_subtype' in feature ['qualifiers' ]: # for antiSMASH v.6 and (hopefully) newer
366+ if 'domain_subtypes' in feature ['qualifiers' ]: # for antiSMASH v.7 (and hopefully newer)
367+ entry .subtype = feature ['qualifiers' ]['domain_subtypes' ][0 ]
368+ elif 'domain_subtype' in feature ['qualifiers' ]: # for antiSMASH v.6
373369 entry .subtype = feature ['qualifiers' ]['domain_subtype' ][0 ]
370+ else : # manually for antiSMASH v.5 and older
371+ if entry .domain_type .startswith ('Condensation' ):
372+ entry .subtype = entry .domain_type
373+ entry .domain_type = entry .domain_type .split ('_' )[0 ]
374+ elif entry .domain_type .endswith ('MT' ):
375+ entry .subtype = entry .domain_type
376+ entry .domain_type = 'MT'
374377 entry .domain_start = cds_start
375378 entry .domain_end = cds_end
376379 # TODO: process the rest fields (KR_activity, etc for PK and NRPSPredictor2, etc for AMP-binding)
0 commit comments