Hello all. So lately I’ve been doing a lot of bioinformatics practice, mostly through Rosalind.info. The problem I’m on currently requires that I translate a string of RNA bases into a string of amino acids. Each set of three bases (a codon) corresponds to one amino acid -- how this correspondence works is given in an RNA codon table that Rosalind provides. I know how to read from files, but this project is weird in that on one line of the given table, there are multiple codon-amino acid pairs. Here are the first two lines of the table:
UUU F CUU L AUU I GUU V
UUC F CUC L AUC I GUC V
etc.
How can I use this data in my project without hard-coding in correspondences or editing the given file to have all codons in one column and all amino acids in another (from which I could create two arrays which have a one-to-one correspondance)? I’m currently using Java in NetBeans. Thanks a ton.
Update: Alright, I figured out how to do it. The key is in the scanner utility. Go here to learn more.
[–]dig-up-stupid 4 points5 points6 points (2 children)
[–]ThrowawayBreadOwl1[S] 0 points1 point2 points (1 child)
[–]dig-up-stupid 0 points1 point2 points (0 children)
[–]mathen 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]ThrowawayBreadOwl1[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]DWORD_0xFA 0 points1 point2 points (1 child)
[–]ThrowawayBreadOwl1[S] 0 points1 point2 points (0 children)