def genomeCoor2geneCoor(self, chrID, start, end, strand): """ chrID -- Chromosome id start -- Chromosome-based start position end -- Chromosome-based end position strand -- Chromosome strand Convert genome-based coordinates to gene-based coordinates Return [ [chrID, chrStart, chrEnd, geneID, geneStart, geneEnd], ... ] """ GeneBin = self.getGeneBin() return CoorFunc.genomeCoor2geneCoor(GeneBin, self, chrID, start, end, strand)
def genomeCoor2geneCoor(self, Chr, Start, End, Strand): GeneBin = self.getGeneBin() return CoorFunc.genomeCoor2geneCoor(GeneBin, self, Chr, Start, End, Strand)