Kyl*_*ise 3 hash r bioinformatics bioconductor
我想创建一个 R 脚本,其中有一个哈希表,我可以在其中查找密码子并获取其关联的氨基酸。例如,
library(hash)
hashTable <- hash(...) #insert all codon-to-amino acid pairs
hashTable['TTT']
Run Code Online (Sandbox Code Playgroud)
将返回
[1] Phe
Run Code Online (Sandbox Code Playgroud)
有谁知道我会怎么做?或者也许我可以安装一个包(Bioconductor?)让这更容易?
对于这个问题,几乎可以肯定有一个预先存在的解决方案。一种可能性是 Bioconductor 的Biostrings,例如:
library(Biostrings)
GENETIC_CODE[["ATG"]]
[1] "M"
Run Code Online (Sandbox Code Playgroud)