Exemple #1
0
def test_is_sam_bam():

    datatest = sequana_data("test_measles.sam", "testing")
    assert is_sam(datatest) is True

    datatest = sequana_data("test_measles.bam", "testing")
    assert is_bam(datatest) is True
Exemple #2
0
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
Exemple #3
0
def test_is_sam_bam():

    datatest = sequana_data("test_measles.sam", "testing")
    assert is_sam(datatest) is True

    datatest = sequana_data("test_measles.bam", "testing")
    assert is_bam(datatest) is True
Exemple #4
0
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