def sample_cleanup(data, sample):
umap1file = os.path.join(data.dirs.edits, sample.name+"<STR_LIT>")<EOL>umap2file = os.path.join(data.dirs.edits, sample.name+"<STR_LIT>")<EOL>unmapped = os.path.join(data.dirs.refmapping, sample.name+"<STR_LIT>")<EOL>samplesam = os.path.join(data.dirs.refmapping, sample.name+"<STR_LIT>")<EOL>split1 = os.path.join(data.dirs.edits, sample.name+"<STR_LIT>")<EOL>split2 = os.path.join(data.dirs.edits, sample.name+"<STR_LIT>")<EOL>refmap_derep = os.path.join(data.dirs.edits, sample.name+"<STR_LIT>")<EOL>for f in [umap1file, umap2file, unmapped, samplesam, split1, split2, refmap_derep]:<EOL><INDENT>try:<EOL><INDENT>os.remove(f)<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Clean up a bunch of loose files.