Tools for hard trimming?
3
0
Entering edit mode
4.1 years ago

Hello I need help to apply hard trimming to my Paired-end reads, (20nt at 5´and same nts for 3´ across all my reads)

looking in a paper it seems that bbmap could be useful for this but I'm not sure and cannot find a tutorial on hard trimming reads

If someone can list some tools for this purpose and/or well-explained tutorials ill be so thankful :D

bbmap trimming • 2.0k views
ADD COMMENT
1
Entering edit mode
4.1 years ago
h.mon 35k

You want bbduk with the "force trim" parameters:

forcetrimleft=0     (ftl) If positive, trim bases to the left of this position
                    (exclusive, 0-based).
forcetrimright=0    (ftr) If positive, trim bases to the right of this position
                    (exclusive, 0-based).
forcetrimright2=0   (ftr2) If positive, trim this many bases on the right end.

Why do you need this hard trimming? If you want to remove primers, this is not the best way to proceed.

ADD COMMENT
0
Entering edit mode

yesss i used this and worked for me!

Thanks

ADD REPLY
0
Entering edit mode

the primers are part of the read? didnt know that, I was concerned about the adapters, but the fastqc report show no info of adapter sequences, nevertheless at the end of the sequences I got an irregular "per base sequence content" line patterns. So hard trimming is what I thought that could help on this,

ADD REPLY
1
Entering edit mode
4.1 years ago
igor 13k

If you want to trim a specific number of bases, you can try FASTX-Toolkit or seqtk which are designed for simple FASTQ manipulations like that.

ADD COMMENT
1
Entering edit mode
4.1 years ago
5heikki 11k

I would just use awk for this..

ADD COMMENT
0
Entering edit mode

It's possible to have multi-line FASTA/FASTQ files. In that case, this becomes substantially more challenging.

ADD REPLY
0
Entering edit mode

Sure, however, in +10 years I'm yet to see a single fastq file that doesn't follow the 4 lines per sequence format..

ADD REPLY
0
Entering edit mode

Consider yourself lucky.

ADD REPLY

Login before adding your answer.

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