Skip to content

Instantly share code, notes, and snippets.

@danielecook
Last active August 15, 2020 14:14
Show Gist options
  • Save danielecook/bd57aff1f78074be206b8dde3843d3bc to your computer and use it in GitHub Desktop.
Save danielecook/bd57aff1f78074be206b8dde3843d3bc to your computer and use it in GitHub Desktop.
Check integrity of BAMs
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