INNER CODE UNIT · Python

linediff

Gabaldonlab/redundans · bin/FastaIndex.py:165

        linediff = linebytes - linebases
        seqid = key
        # get sequence slice
        if start and stop:
            reverse_complement = 0
            if start<1:
                start = 1
            seqid = "%s:%s-%s"%(key, start, stop)
            if start>stop:
                reverse_complement = 1
                start, stop = stop, start
            if stop > size:
                stop = size
            # 1-base, inclusive end
            start -= 1
            # get bytesize and update offset
            offset += int(int(start / linebases) * linebytes) + start % linebases
            realsize = stop-start

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…