Hard clip fastq
2
0
Entering edit mode
21 months ago
samuel ▴ 260

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 • 878 views
ADD COMMENT
2
Entering edit mode
21 months ago
ATpoint 86k

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
21 months ago
GenoMax 148k

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: 2013 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