Logo Search packages:      
Sourcecode: python-biopython version File versions  Download package

def Bio::GenBank::_BaseGenBankConsumer::_split_accessions (   self,
  accession_string 
) [private]
Split a string of accession numbers into a list.

Definition at line 204 of file __init__.py.

                                                 :
        """Split a string of accession numbers into a list.
        """
        # first replace all line feeds with spaces
        # Also, EMBL style accessions are split with ';'
        accession = accession_string.replace("\n", " ").replace(";"," ")

        return [x.strip() for x in accession.split() if x.strip()]


Generated by  Doxygen 1.6.0   Back to index