-
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
allow gap characters in translate and codons functions? #30
Comments
PS no need to hurry to implement this for my benefit - I made my own functions that (I think) do what I want. Not elegant, and I'm sure not robust to the user doing unintended things, but they work at least on my own alignments. Still might be a useful thing to implement in Biostrings (although maybe I should be using some other package for this?) if you're curious:
|
I now see that there's another class that I could have use for my alignments: |
Hi Janet, I'll look at this after the next BioC release (next week). Thanks! H. |
Any update on getting codons and translations from sequences with gaps? I'm having the same issue. |
hi @sdalin, I don't know if Herve had time to add anything to Biostrings, but in the meantime here is an ad hoc solution I used. I only accounted for the usual 20 codons plus "---", so if you have others present you might need to modify, depending on what you want the output to look like. "---" translates to "-", and you can choose what unknown codons translate to (default is "-"). Janet
|
This issue has been open a while, but I do have an update: I'm currently working on resolving this, hoping to have a final solution by end of next week. Currently have a working first implementation for Current implementation converts
Adding in an option to convert partial matches something else (ex. |
hi there,
I've been reading in some multiple sequence alignments, as DNAStringSet objects. They're nucleotide alignments that encode proteins. I've been playing with using 'translate', but it looks like it's not set up to deal with gap characters.
I might be missing some nice alternative way to do this, but if not, I guess I'd like to suggest enhancement to better deal with in-frame nucleotide alignments of coding sequences. I think the code below will show you what I mean, but if it's not clear please let me know.
thanks!
Janet
Dr. Janet Young
Malik lab
http://research.fhcrc.org/malik/en.html
Division of Basic Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Avenue N., A2-025,
P.O. Box 19024, Seattle, WA 98109-1024, USA.
tel: (206) 667 4512
email: jayoung ...at... fredhutch.org
The text was updated successfully, but these errors were encountered: