This just helps to eliminate some duplication in things that most
GenBank consumers want to do.
Methods
|
|
__init__
_clean_location
_normalize_spaces
_remove_newlines
_remove_spaces
_split_accessions
_split_keywords
_split_taxonomy
|
|
__init__
|
__init__ ( self )
|
|
_clean_location
|
_clean_location ( self, location_string )
Clean whitespace out of a location string.
The location parser isn't a fan of whitespace, so we clean it out
before feeding it into the parser.
|
|
_normalize_spaces
|
_normalize_spaces ( self, text )
Replace multiple spaces in the passed text with single spaces.
|
|
_remove_newlines
|
_remove_newlines ( self, text )
Remove any newlines in the passed text, returning the new string.
|
|
_remove_spaces
|
_remove_spaces ( self, text )
Remove all spaces from the passed text.
|
|
_split_accessions
|
_split_accessions ( self, accession_string )
Split a string of accession numbers into a list.
|
|
_split_keywords
|
_split_keywords ( self, keyword_string )
Split a string of keywords into a nice clean list.
|
|
_split_taxonomy
|
_split_taxonomy ( self, taxonomy_string )
Split a string with taxonomy info into a list.
|