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

samtools view -bSu in pipe is now redundant #17

Open
tseemann opened this issue Apr 20, 2019 · 1 comment
Open

samtools view -bSu in pipe is now redundant #17

tseemann opened this issue Apr 20, 2019 · 1 comment

Comments

@tseemann
Copy link

FYI, the samtools view is not needed since version 1.3 (or earlier possibly)

java -jar build/libs/bazam.jar -bam my.bam | \
         bwa mem -p ref.fa  - | \
         samtools view -bSu - | \
         samtools sort -o out.bam 

Can be done as:

java -jar build/libs/bazam.jar -bam my.bam | \
         bwa mem -p ref.fa  - | \
         samtools sort > out.bam 

Much speed can be gained by using sort --threads X and --memory Xm too.

@ssadedin
Copy link
Owner

Thanks - will update docs!

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

2 participants