def usearch(query, db, type, out, threads = '<STR_LIT>', evalue = '<STR_LIT:100>', alignment = '<STR_LIT>', max_hits = <NUM_LIT:100>, cluster = False):
if '<STR_LIT>' in os.environ:<EOL><INDENT>usearch_loc = os.environ['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>usearch_loc = '<STR_LIT>'<EOL><DEDENT>if os.path.exists(out) is False:<EOL><INDENT>db = usearchdb(db, alignment, usearch_loc) <EOL>print('<STR_LIT>' % (query, db), file=sys.stderr)<EOL>if type == '<STR_LIT>':<EOL><INDENT>strand = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>strand = '<STR_LIT>'<EOL><DEDENT>if alignment == '<STR_LIT>' and cluster is False:<EOL><INDENT>os.system('<STR_LIT>'% (usearch_loc, query, db, out, evalue, threads, strand, max_hits))<EOL><DEDENT>elif alignment == '<STR_LIT>' and cluster is False:<EOL><INDENT>os.system('<STR_LIT>'% (usearch_loc, query, db, out, threads, strand))<EOL><DEDENT>elif alignment == '<STR_LIT>' and cluster is True:<EOL><INDENT>qsub = '<STR_LIT>'<EOL>os.system('<STR_LIT>'% (usearch_loc, query, db, out, evalue, threads, strand, max_hits, qsub))<EOL><DEDENT>else:<EOL><INDENT>print('<STR_LIT>', file=sys.stderr)<EOL>exit()<EOL><DEDENT><DEDENT>else:<EOL><INDENT>print('<STR_LIT>' % (query, db), file=sys.stderr)<EOL><DEDENT>
run usearch