Commit 556b97bfaf00fc921d3839f78598eab25ed40d4e
1 parent
c2f90a541f
Exists in
master
Update Now outputting the z-score file
Showing
1 changed file
with
13 additions
and
0 deletions
Show diff stats
RCleanDscret.R
... | ... | @@ -407,6 +407,19 @@ attr(scrawdat,"scaled:center") <- NULL |
407 | 407 | attr(scrawdat,"scaled:scale") <- NULL |
408 | 408 | colnames(scrawdat) <- rownames(tabRDATID) |
409 | 409 | |
410 | +#Outputting the Z-score file | |
411 | +nfnzsc <- strsplit(alz,"[\\]") %>% | |
412 | + .[[1]] %>% | |
413 | + .[length(.)] %>% | |
414 | + gsub("\\D","",.) %>% | |
415 | + c("GSE",.,"zscore.txt") %>% | |
416 | + paste(collapse = "") | |
417 | +zscraw <- scrawdat %>% | |
418 | + t()%>% | |
419 | + as.data.frame(.,stringsAsFactors = FALSE) | |
420 | +colnames(zscraw) <- subjnam | |
421 | +write.table(zscraw, file = nfnzsc, sep = "\t",col.names = TRUE,row.names = TRUE) | |
422 | + | |
410 | 423 | ##Discretized the Data |
411 | 424 | dialzdat <- scrawdat %>% |
412 | 425 | dndat(.) %>% |