Question: Fasta file modification
0
gravatar for misayabin
7 weeks ago by
misayabin0
misayabin0 wrote:

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 • 161 views
ADD COMMENTlink modified 7 weeks ago by shenwei3565.7k • written 7 weeks ago by misayabin0
1
gravatar for shenwei356
7 weeks ago by
shenwei3565.7k
China
shenwei3565.7k wrote:

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 COMMENTlink written 7 weeks ago by shenwei3565.7k
0
gravatar for Pierre Lindenbaum
7 weeks ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum133k wrote:

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

ADD COMMENTlink modified 7 weeks ago • written 7 weeks ago by Pierre Lindenbaum133k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 2696 users visited in the last hour
_