Pipeline BWA aln+samse
1
0
Entering edit mode
4.2 years ago
Mick ▴ 30

Hi I'm trying to pipeline the bwa aln and samse commands.

This works:

bwa samse reference.fa <(bwa aln reference.fa test.fq) test.fq > test.sam

But this doesn't:

bwa aln reference.fa test.fq | bwa samse reference.fa test.fq > test.sam

Why is that, what is the difference? Thank you.

bwa • 1.5k views
ADD COMMENT
1
Entering edit mode
4.2 years ago
ATpoint 81k

Wrong order of arguments or rather the sai argument missing:

$ bwa samse
Usage: bwa samse [-n max_occ] [-f out.sam] [-r RG_line] <prefix> <in.sai> <in.fq>

bwa aln reference.fa test.fq | bwa samse reference.fa - test.fq > test.sam

By the way, doesn't work is no error message.

ADD COMMENT
0
Entering edit mode

Ah ok, I had no idea you could use the dash that way. Now it makes sense. Thank you!

ADD REPLY
0
Entering edit mode

You can also use /dev/stdin instead in this case but most tools where Heng Li had his hands on, e.g. bwa, samtools, seqtk interpret - as read from stdin.

ADD REPLY

Login before adding your answer.

Traffic: 2465 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6