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

def Bio::GenBank::_FeatureConsumer::accession (   self,
  acc_num 
)

Set the accession number as the id of the sequence.

If we have multiple accession numbers, the first one passed is
used.

Definition at line 401 of file __init__.py.

00401                                 :
        """Set the accession number as the id of the sequence.

        If we have multiple accession numbers, the first one passed is
        used.
        """
        new_acc_nums = self._split_accessions(acc_num)

        # if we haven't set the id information yet, add the first acc num
        if self.data.id is None:
            if len(new_acc_nums) > 0:
                self.data.id = new_acc_nums[0]

    def nid(self, content):


Generated by  Doxygen 1.6.0   Back to index