This is a test version of Biostars. For the public version, visit https://www.biostars.org.
commandlines and sequences

Guy, I have a fastq file and I need to write a command to shorten each sequence to just 10 nucleotides while keeping the sequence ID unchanged. I have been trying this for days but with no success. I need help from some gurus here. For your info, a fastq file consists of the seq ID starting with @, the sequence, then a separator between the sequence and it its quality scores and sequence quality scores which in my file start with 2. Thanks

sequence

I have been trying this for days but with no success.

And what have you tried? And what was the problem?

fin swimmer

commandlines and sequences

Could you perhaps write a more specific title for your thread? This one doesn't say anything about the content.
Did you delete your previous thread commandlines and sequences after receiving suggestions there?

Hello Charles Olweny !

Questions similar to yours can already be found at:

We have closed your question to allow us to keep similar content in the same thread.

If you disagree with this please tell us why in a reply below. We'll be happy to talk about it.

Cheers!

You can use reformat.sh from BBMap suite to do this.

reformat.sh in=infile.fq out=outfile.fq ftr=9

If you have paired-end data then you would want to use something like this

reformat.sh in1=infile_R1.fq in2=infile_R2.fq out1=outfile_R1.fq out2=outfile_R2.fq  ftr=9

0 answers

No answers yet.

Log in to answer this question.