Fastq Trimmer problem
1
0
Entering edit mode
9.5 years ago

I have a set of fastq files and I want to trim from the adaptor sequence to the 3' end, are there any trimmers that can do this?

Example:

5' -> AAATTAACGGGG ATCGATCGATCG TTGGGGTGGGTG <- 3'

Adaptor Sequence -> ATCGATCGATCG

What I want extracted -> AAATTAACGGGG

RNA-seq fastq • 1.9k views
ADD COMMENT
1
Entering edit mode

yes that's the most common situation in which you have to trim adapter sequences. see for example Trimmomatic or cutadapt. I guess you could have found such tools by searching biostars

ADD REPLY
0
Entering edit mode

if I remember correctly, you could set what part od read you want and which you want to discard with -a and -g options

ADD REPLY
2
Entering edit mode
9.5 years ago
Dan D 7.4k

As Martombo indicated, cutadapt can do this. You will need to use the -a option. So your command would look like this:

cutadapt -a ATCGATCGATCG -o [output FASTQ file] [input FASTQ file]

By default, it will trim any adapter that matches at least 3 bases of your sequence. I think this is too stringent, and I usually change this behavior using the -O parameter.

ADD COMMENT

Login before adding your answer.

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