Convert protein name to letter e.g. p.Arg135Trp to p.R135W

1

How to convert snpeff output of protein change from p.Arg135Trp to p.R135W? so that I can import into maftools,

How can it be done in R or bash?

Thanks


aminoacid

• 49 views

updated 23 minutes ago by

15k

written 2 hours ago by

▴

10

Create a text file with all the input (Your_file.txt) and this will help you to get the desired output.

sed 's/Ala/A/g;s/Cys/C/g;s/Asp/D/g;s/Glu/E/g;s/Phe/F/g;s/Gly/G/g;s/His/H/g;s/Hid/H/g;s/Hie/H/g;s/Ile/I/g;s/Lys/K/g;s/Leu/L/g;s/Met/M/g;s/Asn/N/g;s/Pro/P/g;s/Gln/Q/g;s/Arg/R/g;s/Ser/S/g;s/Thr/T/g;s/Val/V/g;s/Trp/W/g;s/Tyr/Y/g;s/Mse/X/g' < Your_file.txt > desired_output.txt


Login
before adding your answer.



Source link