Example #1
0
def run(description):
    parser = argparse.ArgumentParser(
        description = description,
        usage = 'fastaq reverse_complement <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.reverse_complement(options.infile, options.outfile)
Example #2
0
 def test_reverse_complement(self):
     '''reverse_complement should correctly reverse complement each seq in a file'''
     tmp = 'tmp.revcomp.fa'
     tasks.reverse_complement(os.path.join(data_dir, 'sequences_test.fa'),
                              tmp)
     self.assertTrue(
         filecmp.cmp(os.path.join(data_dir, 'sequences_test_revcomp.fa'),
                     tmp))
     os.unlink(tmp)
Example #3
0
 def test_reverse_complement(self):
     '''reverse_complement should correctly reverse complement each seq in a file'''
     tmp = 'tmp.revcomp.fa'
     tasks.reverse_complement(os.path.join(data_dir, 'sequences_test.fa'), tmp)
     self.assertTrue(filecmp.cmp(os.path.join(data_dir, 'sequences_test_revcomp.fa'), tmp))
     os.unlink(tmp)