简体   繁体   English

匹配错误(x,表,nomatch = 0L):“匹配”需要向量参数

[英]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.

相关问题 修拉中的 FindVariableFeatures Function 产生“匹配错误(x,表,nomatch = 0L):'匹配'需要向量参数” - FindVariableFeatures Function in Seurat Producing “Error in match(x, table, nomatch = 0L) : 'match' requires vector arguments” dcast错误:`匹配错误(x,表,nomatch = 0L)` - dcast error: `Error in match(x, table, nomatch = 0L)` 匹配错误(el,set,0L):“匹配”需要向量参数? - Error in match(el, set, 0L) : 'match' requires vector arguments? 使用ggsurplot时匹配错误(x,表,不匹配= 0L - Error in match(x, table, non match =0L when using ggsurplot “匹配错误:‘匹配’需要 R Shiny 中的向量 arguments - "Error in match: 'match' requires vector arguments in R Shiny 非等值内部联接(nomatch = 0L)是否应该是双向的? - Should non-equi inner join (nomatch=0L) be bidirectional? Foverlaps 错误: if (any(x[[xintervals[2L]]] - x[[xintervals[1L]]] &lt; 0L)) 中的错误停止 - Foverlaps error: Error in if (any(x[[xintervals[2L]]] - x[[xintervals[1L]]] < 0L)) stop 我不断收到错误“Y %*% X 中的错误:需要数字/复数矩阵/向量参数” - I keep getting error “Error in Y %*% X : requires numeric/complex matrix/vector arguments” 错误:“mutate()”输入“Value”有问题。 x 需要数字/复数矩阵/向量参数? - Error: Problem with `mutate()` input `Value`. x requires numeric/complex matrix/vector arguments? if(REML)p else 0L时出错:参数长度为零 - Error in if (REML) p else 0L : argument is of length zero
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM