def sniffer(filename): try: if is_sam(filename): return "SAM" except: pass try: if is_bam(filename): return "BAM" except: pass try: if is_cram(filename): return "CRAM" except: pass try: if is_fastq(filename): return "FASTQ" except: pass try: if is_fasta(filename): return "FASTA" except: pass
def test_is_cram(): datatest = sequana_data("test_measles.cram", "testing") assert is_cram(datatest) is True