Skip to content
New issue

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

Filter out bwa mem PE poor alignments #94

Open
5 tasks
colindaven opened this issue Nov 25, 2022 · 0 comments
Open
5 tasks

Filter out bwa mem PE poor alignments #94

colindaven opened this issue Nov 25, 2022 · 0 comments

Comments

@colindaven
Copy link
Contributor

colindaven commented Nov 25, 2022

Related to the problems with softclipping - #88

There is a new (since samtools 1.12 ) set of filter expressions in samtools.

http://www.htslib.org/doc/samtools.html#FILTER_EXPRESSIONS

  • samtools upgrade in conda env needed - created
  • add env via new branch and PR to wochenende
  • implement filter methods, possibly combine others to increase performance ?
  • test
  • check of rlen >150 would work for PE reads, ie is the ref length per read or per read pair?

rlen | int | Alignment length: no. reference bases

If we use say rlen 70+ for PE reads we can force good alignments without modifying the score too much.

eg

samtools view -e 'rlen>70' -O BAM -o out.bam in.bam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant