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