cutadapt -u 5 is also do the same job!!!
• 0 views
•
link
Hi all,
I have 75bp RNA-seq reads. I would like to split it to 38*37 bp. Is somebody know how is the easiest way to do that? The reads files are in *.gz format and I don't want to unzip it. Thanks Morteza
gunzip -c fastq.gz | awk '{if(NR%4==1 || NR%4==3) {print;} else {printf("%s\n",substr($0,1,38));}}' | gzip > 38.fq.gz
gunzip -c fastq.gz | awk '{if(NR%4==1 || NR%4==3) {print;} else {printf("%s\n",substr($0,39));}}' | gzip > 37.fq.gz
Log in to answer this question.