示例#1
0
 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)
示例#2
0
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
    )
示例#3
0
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)
示例#4
0
 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)