Exemple #1
0
 def read(self, filename):
     libsbol.readDocument(self.ptr, filename)
     # Instantiate python proxy objects for each C object in file
     for i in range(0, libsbol.getNumDNASequences(self.ptr)):
         ptr = libsbol.getNthDNASequence(self.ptr, i)
         uri = libsbol.getDNASequenceURI(ptr)
         seq = DNASequence(self, uri, ptr)
     for i in range(0, libsbol.getNumSequenceAnnotations(self.ptr)):
         ptr = libsbol.getNthSequenceAnnotation(self.ptr, i)
         uri = libsbol.getSequenceAnnotationURI(ptr)
         seq_annotation = SequenceAnnotation(self, uri, ptr)
     for i in range(0, libsbol.getNumDNAComponents(self.ptr)):
         ptr = libsbol.getNthDNAComponent(self.ptr, i)
         uri = libsbol.getDNAComponentURI(ptr)
         component = DNAComponent(self, uri, ptr)
     for i in range(0, libsbol.getNumCollections(self.ptr)):
         ptr = libsbol.getNthCollection(self.ptr, i)
         uri = libsbol.getCollectionURI(ptr)
         collection = SequenceAnnotation(self, uri, ptr)
Exemple #2
0
 def read(self, filename):
     libsbol.readDocument(self.ptr, filename)
     # Instantiate python proxy objects for each C object in file
     for i in range(0, libsbol.getNumDNASequences(self.ptr)):
         ptr = libsbol.getNthDNASequence(self.ptr, i)
         uri = libsbol.getDNASequenceURI(ptr)
         seq = DNASequence(self, uri, ptr)
     for i in range(0, libsbol.getNumSequenceAnnotations(self.ptr)):
         ptr = libsbol.getNthSequenceAnnotation(self.ptr, i)
         uri = libsbol.getSequenceAnnotationURI(ptr)
         seq_annotation = SequenceAnnotation(self, uri, ptr)
     for i in range(0, libsbol.getNumDNAComponents(self.ptr)):
         ptr = libsbol.getNthDNAComponent(self.ptr, i)
         uri = libsbol.getDNAComponentURI(ptr)
         component = DNAComponent(self, uri, ptr)
     for i in range(0, libsbol.getNumCollections(self.ptr)):
         ptr = libsbol.getNthCollection(self.ptr, i)
         uri = libsbol.getCollectionURI(ptr)
         collection = SequenceAnnotation(self, uri, ptr)
Exemple #3
0
 def uri(self):
     return libsbol.getCollectionURI(self.ptr)
Exemple #4
0
 def uri(self):
     return libsbol.getCollectionURI(self.ptr)