Created
December 12, 2016 00:28
-
-
Save hbeale/16429cd113b45c1d85574c349768ac44 to your computer and use it in GitHub Desktop.
check bam for EOF error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in *.bam ; do echo -n $i; samtools view -h $i | head -1 ; done 2>&1 | grep '\[' | |
# for malformed bams, the output is "EGAD00001001620_ICGC_MB110.sorted.bam[bam_header_read] EOF marker is | |
absent. The input is probably truncated." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment