We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd like to filter out alignments with an alignment score (AS:i) less than some threshold.
AS:i
The text was updated successfully, but these errors were encountered:
me 2
Sorry, something went wrong.
did you found a way to do it?
Yes, using awk. The following is a Makefile snippet.
awk
Makefile
# Remove alignments with an alignment score below a threshold. %.as100.bam: %.bam samtools view -h -F4 $< | gawk -F'\t' ' \ /^@/ { print; next } \ { as = 0 } \ match($$0, "AS:.:([^\t]*)", x) { as = x[1] } \ as >= 100' \ | samtools view -@$t -b -o $@
https://github.com/sjackman/picea-sitchensis-mitochondrion/blob/master/Makefile#L288
No branches or pull requests
I'd like to filter out alignments with an alignment score (
AS:i
) less than some threshold.The text was updated successfully, but these errors were encountered: