Download this file

15 lines (10 with data), 363 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
from pysamiterators import CachedFasta
from pysam import FastaFile
class CachedFastaNoHandle(CachedFasta):
def __init__(self, path: str):
handle = FastaFile(path)
CachedFasta.__init__(self, handle)
class FastaNoHandle(FastaFile):
def __init__(self, path: str):
handle = FastaFile(path)
FastaFile.__init__(self, handle)