6 print( 'Infile: ', infile )
14 with open( infile ) as f:
17 if not line.startswith('#'):
18 elements = line.split('\t')
19 if elements[ 1 ] == 'Matching Clades':
20 if (elements[ 0 ].endswith(elements[ 2 ])):
23 my_regex = r".+\|" + re.escape(elements[ 2 ]) + r"\."
24 if re.search(my_regex, elements[ 0 ]):
26 elif elements[ 2 ] == '?':
29 elif elements[ 0 ].endswith( 'NA' ):
34 print('no match: ', line)
37 print( 'Match :', match )
38 print( 'Less specific match :', lessspecific )
39 print( 'No match: result undeceided ("?"):', qu )
40 print( 'No match: target is "NA" :', na )
41 print( 'No match :', no_match )