def run(description): parser = argparse.ArgumentParser( description = description, usage = 'fastaq strip_illumina_suffix <infile> <outfile>') parser.add_argument('infile', help='Name of input file') parser.add_argument('outfile', help='Name of output file') options = parser.parse_args() tasks.strip_illumina_suffix(options.infile, options.outfile)
def run(description): parser = argparse.ArgumentParser( description=description, usage='fastaq strip_illumina_suffix <infile> <outfile>') parser.add_argument('infile', help='Name of input file') parser.add_argument('outfile', help='Name of output file') options = parser.parse_args() tasks.strip_illumina_suffix(options.infile, options.outfile)
def test_strip_illumina_suffix(self): '''Check illumina suffixes stripped correctly off read names''' tmpfile = 'tmp.stripped.fa' tasks.strip_illumina_suffix( os.path.join(data_dir, 'sequences_test_strip_illumina_suffix.fq'), tmpfile) self.assertTrue( filecmp.cmp( os.path.join( data_dir, 'sequences_test_strip_illumina_suffix.fq.stripped'), tmpfile)) os.unlink(tmpfile)
def test_strip_illumina_suffix(self): '''Check illumina suffixes stripped correctly off read names''' tmpfile = 'tmp.stripped.fa' tasks.strip_illumina_suffix(os.path.join(data_dir, 'sequences_test_strip_illumina_suffix.fq'), tmpfile) self.assertTrue(filecmp.cmp(os.path.join(data_dir, 'sequences_test_strip_illumina_suffix.fq.stripped'), tmpfile)) os.unlink(tmpfile)