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

def Bio::GenBank::_FeatureConsumer::_split_reference_locations (   self,
  location_string 
) [private]

Get reference locations out of a string of reference information

The passed string should be of the form:

    1 to 20; 20 to 100

This splits the information out and returns a list of location objects
based on the reference locations.

Definition at line 508 of file __init__.py.

00508                                                          :
        """Get reference locations out of a string of reference information
        
        The passed string should be of the form:

            1 to 20; 20 to 100

        This splits the information out and returns a list of location objects
        based on the reference locations.
        """
        from Bio import SeqFeature
        # split possibly multiple locations using the ';'
        all_base_info = location_string.split(';')

        new_locations = []
        for base_info in all_base_info:
            start, end = base_info.split('to')
            new_start, new_end = \
              self._convert_to_python_numbers(int(start.strip()),
                                              int(end.strip()))
            this_location = SeqFeature.FeatureLocation(new_start, new_end)
            new_locations.append(this_location)
        return new_locations

    def authors(self, content):


Generated by  Doxygen 1.6.0   Back to index