Exemple #1
0
 def get_range_for_seqid(self, seqid):
     from ctypes import byref
     if gtlib.gt_feature_index_has_seqid(self.fi, seqid) == 0:
         gterror("feature_index does not contain seqid")
     range = Range()
     gtlib.gt_feature_index_get_range_for_seqid(self.fi, byref(range),
             seqid)
     return range
Exemple #2
0
 def has_seqid(self, seqid):
     from ctypes import c_int, byref
     val = c_int()
     err = Error()
     ret = gtlib.gt_feature_index_has_seqid(self.fi, byref(val), seqid, err)
     if ret != 0:
         gterror(err)
     else:
         return (val.value > 0)
Exemple #3
0
 def has_seqid(self, seqid):
     from ctypes import c_int, byref
     val = c_int()
     err = Error()
     ret = gtlib.gt_feature_index_has_seqid(self.fi, byref(val),
             seqid, err)
     if ret != 0:
         gterror(err)
     else:
       return (val.value > 0)
 def has_seqid(self, seqid):
     from ctypes import c_int, byref
     val = c_int()
     err = Error()
     ret = gtlib.gt_feature_index_has_seqid(self.fi, byref(val),
                                            seqid.encode('UTF-8'), err._as_parameter_)
     if ret != 0:
         gterror(err)
     else:
         return (val.value > 0)
Exemple #5
0
 def has_seqid(self, seqid):
     from ctypes import c_int, byref
     val = c_int()
     err = Error()
     ret = gtlib.gt_feature_index_has_seqid(self.fi, byref(val),
                                            seqid.encode('UTF-8'),
                                            err._as_parameter_)
     if ret != 0:
         gterror(err)
     else:
         return (val.value > 0)