I want give each line a unique id. Here is the
inpute data:
TGAGGTATTATGTTCGAT 1
GGGGGCGACTCTGGGATG 3
CGGAGCGGGCTTCTCTTC 1
AGGGGGATGGTGGAAAAA 1
TGGCTCAGGGCAGAAGGA 2
TACTACAGGGTAGAACC 49
I want to give each line an id looks like this
>xxx_1_x1 TGAGGTATTATGTTCGAT
>xxx_2_x3 GGGGGCGACTCTGGGATG
>xxx_3_x1 CGGAGCGGGCTTCTCTTC
Then I want to covert to fasta file
using awk '{print $1; print $2}' the above output file
If you incorprate the above script line:
The final file I need is this
>xxx_1_x1
TGAGGTATTATGTTCGAT
>xxx_2_x3
GGGGGCGACTCTGGGATG
Dereje
inpute data:
TGAGGTATTATGTTCGAT 1
GGGGGCGACTCTGGGATG 3
CGGAGCGGGCTTCTCTTC 1
AGGGGGATGGTGGAAAAA 1
TGGCTCAGGGCAGAAGGA 2
TACTACAGGGTAGAACC 49
I want to give each line an id looks like this
>xxx_1_x1 TGAGGTATTATGTTCGAT
>xxx_2_x3 GGGGGCGACTCTGGGATG
>xxx_3_x1 CGGAGCGGGCTTCTCTTC
Then I want to covert to fasta file
using awk '{print $1; print $2}' the above output file
If you incorprate the above script line:
The final file I need is this
>xxx_1_x1
TGAGGTATTATGTTCGAT
>xxx_2_x3
GGGGGCGACTCTGGGATG
Dereje