def is_tRNA(clus_obj, out_dir, args):
ref = os.path.abspath(args.reference)<EOL>utils.safe_dirs(out_dir)<EOL>for nc in clus_obj[<NUM_LIT:0>]:<EOL><INDENT>c = clus_obj[<NUM_LIT:0>][nc]<EOL>loci = c['<STR_LIT>']<EOL>out_fa = "<STR_LIT>" + nc<EOL>if loci[<NUM_LIT:0>][<NUM_LIT:3>] - loci[<NUM_LIT:0>][<NUM_LIT:2>] < <NUM_LIT>:<EOL><INDENT>with make_temp_directory() as tmpdir:<EOL><INDENT>os.chdir(tmpdir)<EOL>get_loci_fasta({loci[<NUM_LIT:0>][<NUM_LIT:0>]: [loci[<NUM_LIT:0>][<NUM_LIT:0>:<NUM_LIT:5>]]}, out_fa, ref)<EOL>summary_file, str_file = _run_tRNA_scan(out_fa)<EOL>if "<STR_LIT>" not in c:<EOL><INDENT>c['<STR_LIT>'] = {}<EOL><DEDENT>c['<STR_LIT>']['<STR_LIT>'] = _read_tRNA_scan(summary_file)<EOL>score = _read_tRNA_scan(summary_file)<EOL>logger.debug(score)<EOL>shutil.move(summary_file, op.join(out_dir, summary_file))<EOL>shutil.move(str_file, op.join(out_dir, str_file))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>c['<STR_LIT>'].add("<STR_LIT>")<EOL><DEDENT>clus_obj[<NUM_LIT:0>][nc] = c<EOL><DEDENT>return clus_obj<EOL>
Iterates through cluster precursors to predict sRNA types