INNER CODE UNIT · Python

open_fastq

timoast/sinto · sinto/addbarcodes.py:172

def open_fastq(f):
    if os.path.isfile(f):
        if f.endswith(".gz"):
            f_open = gzip.open(f, "rb")
        else:
            f_open = open(f, "r")
        return(f_open)
    else:
        raise Exception("File not found")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…