Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anandijain opened this issue Jul 6, 2022 · 2 comments
Open

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

anandijain opened this issue Jul 6, 2022 · 2 comments

Comments

@anandijain
Copy link

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

@jakobnissen
Copy link
Member

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).

@anandijain
Copy link
Author

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

@jakobnissen jakobnissen transferred this issue from BioJulia/BioSequences.jl Jul 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants