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

def Bio::GenBank::_FeatureConsumer::version_suffix (   self,
  version 
)
Set the version to overwrite the id.

Since the verison provides the same information as the accession
number, plus some extra info, we set this as the id if we have
a version.

Definition at line 437 of file __init__.py.

                                     :
        """Set the version to overwrite the id.

        Since the verison provides the same information as the accession
        number, plus some extra info, we set this as the id if we have
        a version.
        """
        #e.g. GenBank line:
        #VERSION     U49845.1  GI:1293613
        #or the obsolete EMBL line:
        #SV   U49845.1
        #Scanner calls consumer.version("U49845.1")
        #which then calls consumer.version_suffix(1)
        #
        #e.g. EMBL new line:
        #ID   X56734; SV 1; linear; mRNA; STD; PLN; 1859 BP.
        #Scanner calls consumer.version_suffix(1)
        assert version.isdigit()
        self.data.annotations['sequence_version'] = int(version)


Generated by  Doxygen 1.6.0   Back to index