convert fasta/qual into fastq files via terminal linux?
2
0
Entering edit mode
15 months ago
Kárita • 0

How can I convert two files one fasta and one which into a single fastq file via linux terminal, if anyone can help me I'll be grateful!

linux fastq • 1.4k views
ADD COMMENT
1
Entering edit mode

two files one fasta and one which into

I don't understand.

Otherwise see fasta to fastq without quality scores

ADD REPLY
0
Entering edit mode

sorry you cut the sentence, it was a .fasta file and a .qual

ADD REPLY
0
Entering edit mode

show us the header of each files.

ADD REPLY
0
Entering edit mode

.fasta

>IBN2P8H01DK86M length=51 xy=1355_0556 region=1 run=R_2013_06_25_14_33_34_
GGGTGATGATCGCAACATCAGCTGTACATCGAGTAGACGTTCTGCGAACAC

.qual

>IBN2P8H01DK86M length=51 xy=1355_0556 region=1 run=R_2013_06_25_14_33_34_
40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 40 33 33 33 33 33 40 40 40 40 40 40 40 40 40 40 40 38 35 31 29 28 31 37 34 34 25 25 18 16 16
ADD REPLY
1
Entering edit mode
ADD COMMENT
0
Entering edit mode

thank you, I will test it!

ADD REPLY
0
Entering edit mode
15 months ago

not tested, but it should be:

paste <(cat file1 | paste - - | sed 's/^/@/') \
          <(cat file2 | paste - - | cut -f2 )  |\
          awk -F '\t' '{printf("%s\n%s\n+\n%s\n",$1,$2,$3);}'
ADD COMMENT
0
Entering edit mode

Pierre Lindenbaum Qual values will need to be encoded. They are numeric now.

ADD REPLY
0
Entering edit mode

ah yes, sorry , that's too much for a saturday ! :-¨P

ADD REPLY
0
Entering edit mode

thanks anyway!

ADD REPLY
0
Entering edit mode

does not recognize -F command

ADD REPLY

Login before adding your answer.

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