def __init__(self, fname=None, fileobj=None): if fileobj: self.bed = BedFile(fileobj=fileobj) self.fname = '*fileobj*' else: self.bed = BedFile(fname) self.fname = fname Model.__init__(self)
def __init__(self, fname): self.fname = fname Model.__init__(self) self.gtf = GTF(self.fname) gene_gen = self.gtf.genes gene = gene_gen.next() self.has_isoform = 'isoform_id' in gene.attributes self.has_biotype = 'gene_biotype' in gene.attributes
def __init__(self, fname): self.fname = fname Model.__init__(self)
def __init__(self, binsize): self.binsize = int(binsize) Model.__init__(self)