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

def Bio::GenBank::_RecordConsumer::_add_feature (   self ) [private]
Utility function to add a feature to the Record.

This does all of the appropriate checking to make sure we haven't
left any info behind, and that we are only adding info if it
exists.

Definition at line 1222 of file __init__.py.

                          :
        """Utility function to add a feature to the Record.

        This does all of the appropriate checking to make sure we haven't
        left any info behind, and that we are only adding info if it
        exists.
        """
        if self._cur_feature is not None:
            # if we have a left over qualifier, add it to the qualifiers
            # on the current feature
            if self._cur_qualifier is not None:
                self._cur_feature.qualifiers.append(self._cur_qualifier)

            self._cur_qualifier = None
            self.data.features.append(self._cur_feature)


Generated by  Doxygen 1.6.0   Back to index