Hi,
I'd like to write a python function that checks if a file is in the correct bam format, or in the correct fastq format.
I'd probably like to write two functions:
check_bam(bam_in) check_fastq(fastq_in)
that'd exit the script is bam_in or fastq_in are not in the correct format.
Any suggestions regarding these checks?