示例#1
0
    def setUp(self):
        args = []
        opts = {'dumpfile': 'test_db_dump.xml', 'verbosity': 0}
        cmd = 'migrate_db'
        call_command(cmd, *args, **opts)

        blast_type = 'local'
        voucher_code = 'CP100-10'
        gene_code = 'COI'
        self.blast = BLAST(blast_type, voucher_code, gene_code)
        self.seq_file = ''
示例#2
0
 def test_create_blast_db_unmasked(self):
     blast_type = 'local'
     voucher_code = 'CP100-10'
     gene_code = 'COI'
     blast = BLAST(blast_type, voucher_code, gene_code, mask=False)
     blast.save_seqs_to_file()
     blast.create_blast_db()
     files = glob.glob(
         os.path.join(settings.BASE_DIR, '..', 'blast_local', 'db',
                      'COI_seqs.fas.n*'))
     self.assertTrue(len(files) > 0)
     self.remove_blast_data_files()