Fasta file modification
2
0
Entering edit mode
3.4 years ago
misayabin • 0

I'd like to add a short peptide to the C terminus of each protein (around 1000 in total) in the fasta file from Uniprot database. Could you give me some clues how to do that? Thank you so much!

sequence • 620 views
ADD COMMENT
1
Entering edit mode
3.4 years ago

Try seqkit mutate.

$  echo -ne ">a\nATCG\n>b\ngcat\n"
>a
ATCG
>b
gcat

$ echo -ne ">a\nATCG\n>b\ngcat\n" | seqkit mutate -i -1:NNNN    
[INFO] edit seq: a
[INFO] edit seq: b
>a
ATCGNNNN
>b
gcatNNNN
ADD COMMENT
0
Entering edit mode
3.4 years ago

linearize the fasta and add the suffix with sed 's/$/blablabal/'

ADD COMMENT

Login before adding your answer.

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