[英]deconstructSigs error
I am using the deconstructSigs package and when I try to convert the mutation list to the correct input format I get this error: 我正在使用deconstructSigs软件包,当我尝试将突变列表转换为正确的输入格式时,出现此错误:
Error in .local(x, ...) : 'start', 'end' and 'width' can only be specified when 'names' is either missing, a character vector/factor, a character-Rle, or a factor-Rle .local(x,...)中的错误:仅当缺少“名称”,字符向量/因数,字符-Rle或因数-时,才能指定“开始”,“结束”和“宽度” RLE
This is my code: 这是我的代码:
library(deconstructSigs)
sigs.input <- mut.to.sigs.input(mut.ref = data,
sample.id = "Gene_Symbol",
chr = "Chromosome",
pos = "Position",
ref = "Reference_Base",
alt = "Alternate_Base")
Does anyone know how to deal with it? 有人知道如何处理吗? Thanks in advance. 提前致谢。
Not sure if this will match your issue, but I had the same problem when reading in a dataframe in "tibble" format. 不知道这是否可以解决您的问题,但是在读取“ tibble”格式的数据帧时遇到了同样的问题。 For me, the following solved the problem: 对我来说,以下解决了问题:
library(deconstructSigs)
sigs.input <- mut.to.sigs.input(mut.ref = data %>% as.data.frame(),
sample.id = "Gene_Symbol",
chr = "Chromosome",
pos = "Position",
ref = "Reference_Base",
alt = "Alternate_Base")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.