How to do it...

Take a look at the following steps:

  1. First, let's start specifying our data sources using DendroPy, as follows:
import dendropyfrom dendropy.interop import genbankdef get_ebov_2014_sources():    #EBOV_2014    #yield 'EBOV_2014', genbank.GenBankDna(id_range=(233036, 233118), prefix='KM')    yield 'EBOV_2014', genbank.GenBankDna(id_range=(34549, 34563), prefix='KM0')def get_other_ebov_sources():    #EBOV other    yield 'EBOV_1976', genbank.GenBankDna(ids=['AF272001', 'KC242801'])    yield 'EBOV_1995', genbank.GenBankDna(ids=['KC242796', 'KC242799'])    yield 'EBOV_2007', genbank.GenBankDna(id_range=(84, 90), prefix='KC2427')def get_other_ebolavirus_sources():    #BDBV    yield 'BDBV', genbank.GenBankDna(id_range=(3, 6), prefix='KC54539') yield 'BDBV', ...

Get Bioinformatics with Python Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.