コード例 #1
0
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)
コード例 #2
0
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)
コード例 #3
0
 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)
コード例 #4
0
ファイル: tasks_test.py プロジェクト: martinghunt/Fastaq
 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)