Hard clip fastq
2
0
Entering edit mode
10 weeks ago
samuel ▴ 230

I hope this is not a silly question. I have 2x 200bp fastqs generated from MGI G400 sequencer.

I would like to do a comparison with Illumina but these only come as 2x 150bp fastqs.

Is it possible to hard clip the 2x 200bp fastqs down to 2x150bp in order to do this comparison? If so, would this have to be done AFTER adapter trimming? Also, if it is possible, what is the recommended tool to use?

Many thanks.

fastq • 303 views
ADD COMMENT
2
Entering edit mode
10 weeks ago
ATpoint 73k

Use seqtk trimfq. It makes sense to trim first to your desired length and then run identical downstream processing for a fair comparison.

https://github.com/lh3/seqtk

ADD COMMENT
0
Entering edit mode

@ATpoint, so no adapter trimming first? Just trim the raw fastq?

ADD REPLY
1
Entering edit mode

If you simply want the reads to be compatible in length then do not adapter trim.

ADD REPLY
1
Entering edit mode
10 weeks ago
GenoMax 130k

You can also use reformat.sh from BBMap suite as follows

reformat.sh -Xmx2g in1=R1.fq.gz in2=R2.fq.gz out1=R1_trim.fq.gz out2=R2_trim.fq.gz forcetrimright=50
ADD COMMENT

Login before adding your answer.

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