def create_new(cls, seqid, type, start, end, strand): from gt.extended.strand import strandchars if not strand in strandchars: gterror("Invalid strand '%s' -- must be one of %s" % (strand, strandchars)) s = Str(seqid) fn = gtlib.gt_feature_node_new(s, type, start, end, strandchars.index(strand)) n = cls.create_from_ptr(fn, True) return n
def create_new(cls, seqid, type, start, end, strand): from gt.extended.strand import strandchars if not strand in strandchars: gterror("Invalid strand '%s' -- must be one of %s" % (strand, strandchars)) s = Str(str(seqid.encode("utf-8"))) fn = gtlib.gt_feature_node_new(s._as_parameter_, type, start, end, \ strandchars.index(strand)) n = cls.create_from_ptr(fn, True) n.depth_first = True return n
def create_new(cls, seqid, type, start, end, strand): from gt.extended.strand import strandchars if not strand in strandchars: gterror("Invalid strand '%s' -- must be one of %s" % (strand, strandchars)) s = Str(str(seqid.encode("utf-8"))) fn = gtlib.gt_feature_node_new(s, type, start, end, \ strandchars.index(strand)) n = cls.create_from_ptr(fn, True) n.depth_first = True return n
def set_strand(self, strand): if not strand in strandchars: gterror("Invalid strand '%s' -- must be one of %s" % (strand, strandchars)) gtlib.gt_block_set_strand(self.block, strandchars.index(strand))
def set_strand(self, strand): from gt.extended.strand import strandchars if not strand in strandchars: gterror("Invalid strand '%s' -- must be one of %s" % (strand, strandchars)) gtlib.gt_feature_node_set_strand(self.gn, strandchars.index(strand))