예제 #1
0
def run(description):
    parser = argparse.ArgumentParser(
        description = description,
        usage = 'fastaq to_mira_xml <infile> <xml_out>')
    parser.add_argument('infile', help='Name of input fasta/q file')
    parser.add_argument('xml_out', help='Name of output xml file')
    options = parser.parse_args()
    tasks.fastaq_to_mira_xml(options.infile, options.xml_out)
예제 #2
0
 def test_fastaq_to_mira_xml(self):
     '''check that fastaq_to_mira_xml makes the correct xml file from a fastq file'''
     tmp = 'tmp.mira.xml'
     tasks.fastaq_to_mira_xml(
         os.path.join(data_dir, 'sequences_test_good_file.fq'), tmp)
     self.assertTrue(
         filecmp.cmp(
             os.path.join(data_dir, 'sequences_test_good_file_mira.xml'),
             tmp))
     os.unlink(tmp)
예제 #3
0
파일: to_mira_xml.py 프로젝트: satta/Fastaq
def run(description):
    parser = argparse.ArgumentParser(description=description, usage="fastaq to_mira_xml <infile> <xml_out>")
    parser.add_argument("infile", help="Name of input fasta/q file")
    parser.add_argument("xml_out", help="Name of output xml file")
    options = parser.parse_args()
    tasks.fastaq_to_mira_xml(options.infile, options.xml_out)
예제 #4
0
 def test_fastaq_to_mira_xml(self):
     '''check that fastaq_to_mira_xml makes the correct xml file from a fastq file'''
     tmp = 'tmp.mira.xml'
     tasks.fastaq_to_mira_xml(os.path.join(data_dir, 'sequences_test_good_file.fq'), tmp)
     self.assertTrue(filecmp.cmp(os.path.join(data_dir, 'sequences_test_good_file_mira.xml'), tmp))
     os.unlink(tmp)