Ejemplo n.º 1
0
 def test_chr_start_sequences(self):
     exclude = ('MT', '17' , 'chr6_cox_hap2', 'chr6_apd_hap1', 'chr6_ssto_hap7',
                'chr6_mcf_hap5', 'chr6_qbl_hap6', 'chr6_mann_hap4', 'chr6_dbb_hap3',
                'chr17_ctg5_hap1', 'chr4_ctg9_hap1', 'RSRS')
     test_str = "N" * 20
     for name in BUILD37_ACCESSIONS.keys():
         # these chromosomes do not have telomeres
         if name in exclude:
             continue
         seq = Chromosome(name).sequence(0, 20)
         self.assertEqual(seq, test_str, name)
Ejemplo n.º 2
0
 def test_file_names(self):
     for accession in BUILD37_ACCESSIONS.values():
         fasta = os.path.join(get_data_directory(), str(accession) + ".fa")
         self.assertTrue(os.path.isfile(fasta), fasta)