anikng has asked for the wisdom of the Perl Monks concerning the following question:
Hi Members... I am in confusion that how to integrate R codes in PERL program using system command (not through any additional packages). Specifically my PERL code generate microarray data (in .csv format) and save the data in a file "array_data.csv". I wanted following R code to generate a microarray heatmap. I have attached R scrip to generate hetamap. I am working on Ubuntu 14.04 Desktop. Perl V 5.18. If someone can just show an example, it would be helpful for me. Thanks, anikng, ROK
>library(gplots) >library(RColorBrewer) >all.data <- read.csv("C:/Users/Anil/Desktop/sam.csv") >row.names(all.data) <- all.data$sample >all.data <- all.data[, -1] >data.prop <- all.data/rowSums(all.data) >scaleyellowred <- colorRampPalette(c("lightyellow", "red"), space = " +rgb")(100) >heatmap(as.matrix(data.prop), Rowv = NA, Colv = NA, col = scaleyellow +red)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Calling R codes from PERL using system coomand
by AppleFritter (Vicar) on Jul 21, 2014 at 13:34 UTC | |
by anikng (Initiate) on Jul 25, 2014 at 01:54 UTC | |
|
Re: Calling R codes from PERL using system coomand
by Anonymous Monk on Jul 21, 2014 at 13:55 UTC |