Example #1
0
 def from_index(feature_index, seqid, rng, style):
     from ctypes import byref
     err = Error()
     if rng.start > rng.end:
         gterror("range.start > range.end")
     diagram = gtlib.gt_diagram_new(feature_index, seqid, byref(rng),
             style, err)
     if err.is_set():
         gterror(err)
     return Diagram(diagram)
Example #2
0
 def from_index(feature_index, seqid, rng, style):
     from ctypes import byref
     err = Error()
     if rng.start > rng.end:
         gterror("range.start > range.end")
     diagram = gtlib.gt_diagram_new(feature_index, seqid, byref(rng), style,
                                    err)
     if err.is_set():
         gterror(err)
     return Diagram(diagram)
Example #3
0
    def from_index(feature_index, seqid, rng, style):
        from ctypes import byref
        FeatureIndex.from_param(feature_index)
        Style.from_param(style)

        err = Error()
        if rng.start > rng.end:
            gterror("range.start > range.end")
        diagram = gtlib.gt_diagram_new(feature_index._as_parameter_, seqid,
                byref(rng), style._as_parameter_, err._as_parameter_)
        if err.is_set():
            gterror(err)
        return Diagram(diagram)