Last active
August 15, 2020 14:14
-
-
Save danielecook/bd57aff1f78074be206b8dde3843d3bc to your computer and use it in GitHub Desktop.
Check integrity of BAMs
This file contains hidden or 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
function check_bam { | |
samtools quickcheck ${1} | |
if [ $? -ne "0" ]; then | |
echo ${1} | |
fi | |
} | |
export -f check_bam | |
parallel check_bam ::: *.bam |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment