[英]Error in match(x, table, nomatch = 0L) : 'match' requires vector arguments
I am trying to do some Bioconductor exercises on R studio cloud.我正在尝试在 R studio cloud 上做一些 Bioconductor 练习。 Running the first two codes (#1,#2) have been fine, but the last code(#3) gives the error message.
运行前两个代码 (#1,#2) 没问题,但最后一个代码 (#3) 给出了错误消息。 Please can anyone help?
请问有人可以帮忙吗?
#1 Transcribe dna_seq into an RNAString object and print it
dna_seq <- subseq(unlist(zikaVirus), end = 21)
dna_seq
21-letter "DNAString" instance
seq: AGTTGTTGATCTGTGTGAGTC
#2 Transcribe dna_seq into an RNAString object and print it
rna_seq <- RNAString(dna_seq)
rna_seq
21-letter "RNAString" instance
seq: AGUUGUUGAUCUGUGUGAGUC
#3 Translate rna_seq into an AAString object and print it
aa_seq <- translate(rna_seq)
aa_seq
aa_seq <- translate(rna_seq)
Error in match(x, table, nomatch = 0L) : 'match' requires vector arguments aa_seq Error: object 'aa_seq' not found
匹配错误(x,表,nomatch = 0L):“匹配”需要向量参数 aa_seq 错误:找不到对象“aa_seq”
Thank you.谢谢你。 I managed to solve the problem: I think there was a clash with the translate() function because it is used by both the seqinr and Biostring packages(I loaded both).
我设法解决了这个问题:我认为与 translate() 函数存在冲突,因为 seqinr 和 Biostring 包都使用了它(我都加载了)。 I had to unload seqinr, because the exercises I was doing were based on the Biostring package.
我不得不卸载 seqinr,因为我正在做的练习是基于 Biostring 包的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.