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

Which command can I use to grab the first 10 nucleotides in each line of my nucleotide sequence in a file?

sequence

What have you tried? Otherwise this is a pure programming question.

Refer to tips and tricks on trimming ngs data online.

Use google please! enter image description here

1 answer

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

Log in to answer this question.