Can Bwa Trim Barcode From 3 End?
2
1
Entering edit mode
12.8 years ago
Yunfei Li ▴ 310

"-B" can trim given length barcode from 5'. Does BWA can do similar trimming from 3'?

bwa • 2.8k views
ADD COMMENT
2
Entering edit mode
12.0 years ago
dfornika ★ 1.1k

I don't think that BWA supports trimming a fixed-length barcode from the 3' end of reads, but if your reads are in fasta or fastq format, you can use the fastx toolkit:

http://hannonlab.cshl.edu/fastx_toolkit/commandline.html#fastx_trimmer_usage

for example, to trim the last 6 bases of a 50-base read:

fastx_trimmer -l 44 -i untrimmed.fa -o trimmed.fa
ADD COMMENT
0
Entering edit mode
12.0 years ago
Joseph Hughes ★ 3.0k

Yes, you can optionally trim the 3'-end in BWA using the -q option but this is based on quality rather than a given length.

ADD COMMENT

Login before adding your answer.

Traffic: 1331 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