BioSymbols.jl icon indicating copy to clipboard operation
BioSymbols.jl copied to clipboard

Getting string name of amino acids or other symbols (dna/rna)

Open anandijain opened this issue 3 years ago • 2 comments

I have a table of the masses of each amino acid and their names but there doesn't seem to be any easy way of getting the table in https://biojulia.net/BioSequences.jl/stable/symbols/#Amino-acids-1. So I have to create the mapping between these weird AA_M things and "Methionine" manually, mainly doing this by accessing the docstrings 🤣. Is there functionality to make this easier?

Could there be the table or a function to access the real names of these things?

Just noticed that string(AA_M) at least gives me the 1-char representation.

thanks

anandijain avatar Jul 06 '22 21:07 anandijain

There is currently no way to get the name from BioSymbols. It would be quite easy to add a way to do this. Of course, some amino acids don't just have one name. Is E glutamate or glutamic acid? But we could just pick one. I think that's a good idea.

By the way, the most efficient way of getting the Char representation of a BioSymbol is Char(AA_M).

jakobnissen avatar Jul 07 '22 08:07 jakobnissen

Thanks. Shouldn't we just use the IUPAC table names?

anandijain avatar Jul 07 '22 13:07 anandijain