if(!sampling == FALSE & length(DMP_IDs) >= sampling){
- DMP_IDs <- DMP_IDs[floor(runif(sampling,1,length(DMP_IDs)))]
- }
allProbe_IDs <- rownames(selDataMatrix)
if(version=="450"){
- target_position <- na.omit(probeID2position(probe_IDs=DMP_IDs,anno_info=Methyl450anno))
- library(dplyr)
- anno_info <- Methyl450anno
- CHR37 <- unlist(anno_info %>% select("CHR"))
- CHR37 <- paste("chr", CHR37, sep="")
- CPG37 <- anno_info %>% select("MAPINFO")
- bg_position <- na.omit(cbind(CHR37,CPG37))
- positionsList <- list("target" = target_position, "background" = bg_position)
- }else if ((version=="EPIC")||(version=="850")){
- target_position <- na.omit(probeID2position(probe_IDs = DMP_IDs, anno_info = EPICanno))
- library(dplyr)
- anno_info <- EPICanno
- CHR37 <- unlist(anno_info %>% select("CHR"))
- print(CHR37)
- CHR37 <- paste("chr", CHR37, sep="")
- print(CHR37)
- CPG37 <- anno_info %>% select("MAPINFO")
- bg_position <- na.omit(cbind(CHR37, CPG37))
- positionsList <- list("target" = target_position, "background" = bg_position)
- }
data.frame(CHR37, CPG37) でエラー:
arguments imply differing number of rows: 1, 0
traceback()
4: stop(gettextf("arguments imply differing number of rows: %s",
paste(unique(nrows), collapse = ", ")), domain = NA)
3: data.frame(CHR37, CPG37)
2: probeID2position(probe_IDs = DMP_IDs, anno_info = EPICanno)
1: na.omit(probeID2position(probe_IDs = DMP_IDs, anno_info = EPICanno)) at #11
このようなエラーが出てしまうのですが、エラー1から4の意味と解除方法を教えて頂けますでしょうか?
if内とelse if内のコードを一つづつ分解して入力する方法も教えて頂きたいです。
回答1件
あなたの回答
tips
プレビュー