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

def Bio::GenBank::_BaseGenBankConsumer::_split_keywords (   self,
  keyword_string 
) [private]
Split a string of keywords into a nice clean list.

Definition at line 190 of file __init__.py.

                                             :
        """Split a string of keywords into a nice clean list.
        """
        # process the keywords into a python list
        if keyword_string == "" or keyword_string == "." :
            keywords = ""
        elif keyword_string[-1] == '.':
            keywords = keyword_string[:-1]
        else:
            keywords = keyword_string
        keyword_list = keywords.split(';')
        clean_keyword_list = [x.strip() for x in keyword_list]
        return clean_keyword_list


Generated by  Doxygen 1.6.0   Back to index