-
Notifications
You must be signed in to change notification settings - Fork 16
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
Amino Acid sequence to letter function #93
Comments
Hmm.. interesting! I've never seen amino acid sequences in that format. Out of curiosity, may I ask how/where people retrieve amino acid sequences that are in the "MetThrGly" format? |
I don't have a good answer. Perhaps Laurent @lgatto or Johannes @jorainer can provide some insight? FWIW, this type of functionality is available on webpages and even in matlab: I don't think it would hurt to include it out of convenience given that |
I don't know any such functionality and I have never had a need for it. AA codes and other info is available from |
Good to know about PSMatch. I'd rather have some good use case before adding something like this to Biostrings, or at least have some user requests it. I agree that in theory it doesn't hurt to have it, but still, I'm not a big fan of adding functionalities that nobody is going to use. Anyways, since I just spent some time playing with this a little, I'll put what I came up with here, for the record:
Thanks guys. |
Thanks for your work on this. Any updates for this issue based on #97? From what I read, it should be easier to implement with the encoding framework. |
I'm not sure, it's quite a bit more work than I had initially expected-- I'd echo Hervé's point that the functionality doesn't seem to be requested by users aside from just having it to have it. If you have a use case that it would be relevant for please let me know, or if you have an implementation feel free to open a PR. End-users can already get this functionality with something simple like:
Hervé's function is definitely a lot safer with regard to error checking. Implementing it in a robust and clean way within Biostrings would be a lot harder; it would likely require a custom method since these characters will all map to amino acids (ex. |
On second thought, it could be pretty simple to just add an optional argument like At that point though, I guess the question is if people are actually doing that, and if so, if that functionality is needed in Biostrings or if end-users can just preprocess it themselves. |
Sorry for the slow follow up--I think for now I'm going to leave this as unimplemented. I'm not sure it makes sense to change the constructor |
Thanks for following up. I'm okay with leaving it unimplemented since there are no follow ups from the community. |
I added this to the |
Hi Hervé, @hpages
Is there a function that takes a string, e.g.,
MetThrGly
and converts to "MTG"?If not and within scope, I can work on implementing one using
AMINO_ACID_CODE
.Best,.
Marcel
The text was updated successfully, but these errors were encountered: