def convertGenomicToBlockCoords(domain, chrLen, blockSize=5000000, delimiter='.'): domain.accession, domain.sStart, domain.sEnd = \ blast.genomeToBlock( domain.accession, domain.sStart, domain.sEnd, L=chrLen, blockSize=blockSize, delimiter=delimiter) return domain
def toBlockCoords(self, L=1e99, blockSize=5000000, delimiter='.'): self.accession, self.sStart, self.sEnd = \ blast.genomeToBlock( self.accession, self.sStart, self.sEnd, L=L, blockSize=blockSize, delimiter=delimiter)