def test_merge_to_one_seq_fq(self): '''Test merge_to_one_seq with fastq''' tmp = 'tmp.merged.fq' tasks.merge_to_one_seq( os.path.join(data_dir, 'sequences_test_merge_to_one_seq.fq'), tmp) self.assertTrue( filecmp.cmp(os.path.join( data_dir, 'sequences_test_merge_to_one_seq.merged.fq'), tmp, shallow=False)) os.unlink(tmp)
def run(description): parser = argparse.ArgumentParser( description = description, usage = 'fastaq merge [options] <infile> <outfile>') parser.add_argument('infile', help='Name of input file') parser.add_argument('outfile', help='Name of output file') parser.add_argument('-n', '--name', help='Name of sequence in output file [%(default)s]', default='union') options = parser.parse_args() tasks.merge_to_one_seq( options.infile, options.outfile, seqname=options.name )
def run(description): parser = argparse.ArgumentParser( description=description, usage='fastaq merge [options] <infile> <outfile>') parser.add_argument('infile', help='Name of input file') parser.add_argument('outfile', help='Name of output file') parser.add_argument('-n', '--name', help='Name of sequence in output file [%(default)s]', default='union') options = parser.parse_args() tasks.merge_to_one_seq(options.infile, options.outfile, seqname=options.name)
def test_merge_to_one_seq_fq(self): '''Test merge_to_one_seq with fastq''' tmp = 'tmp.merged.fq' tasks.merge_to_one_seq(os.path.join(data_dir, 'sequences_test_merge_to_one_seq.fq'), tmp) self.assertTrue(filecmp.cmp(os.path.join(data_dir, 'sequences_test_merge_to_one_seq.merged.fq'), tmp, shallow=False)) os.unlink(tmp)