用的STRINGdb包,想把差异分析的结果放进string数据库分析。卡在string_db$map函数转换 string 数据库的蛋白ID这一步。
limma分析的结果:
> head(nrDEG)
logFC AveExpr t P.Value adj.P.Val B
MIR299 -2.450434 6.510163 -18.36545 3.262075e-29 7.602918e-25 55.61618
CLDN12 -2.442208 4.991015 -16.90376 4.614582e-27 5.377603e-23 50.85977
改成3列的data.frame
diff_exp_example1<-data.frame(pvalue,logFC,gene)
pvalue logFC gene
1 3.262075e-29 -2.450434 MIR299
2 4.614582e-27 -2.442208 CLDN12
3 4.643929e-24 -2.320411 IGSF6
4 4.858925e-23 -1.477989 KRTAP13-2
转化这一步代码:
> example1_mapped <- string_db$map(diff_exp_example1, diff_exp_example1$gene, removeUnmappedRows = TRUE)
Error in make.names(col.names, unique = TRUE) : 多字节字符串1有错
此外: Warning messages:1: In read.table(temp, sep = "\t", header = TRUE, stringsAsFactors = FALSE, : line 1 appears to contain embedded nulls2: In read.table(temp, sep = "\t", header = TRUE, stringsAsFactors = FALSE, : line 4 appears to contain embedded nulls
百度多字节字符串1有错是读取文件的问题?
重新编辑了下格式,求助


雷达卡


京公网安备 11010802022788号







