Question: Display data summary from R code in my galaxy tool
gravatar for Sara Mohammadi
13 months ago by
United States
Sara Mohammadi50 wrote:

I have created a galaxy tool, which get the gene expression data. I want to do some gene expression analysis on this data and display the summary of it. The output file data format which I saved is .tabular.

I do not know how to use this data in the same R code to do and display some statistics summary on it.


ADD COMMENTlink written 13 months ago by Sara Mohammadi50

Can you show us your code?

ADD REPLYlink written 13 months ago by Bjoern Gruening4.8k

Thank you so much for your response,

Here is xml wrapper:

 <tool id="get_data" name="Get Study version="0.1.0">
    <description>Get a specific study</description>
     <command detect_errors="exit_code" interpreter="Rscript --vanilla">
        getData.R ${studyid} ${output}
        <param name="studyid" type="select" label="Study ID">
          <option value="SDY269">SDY269</option>
          <option value="SDY270">SDY270</option>
        <data name="output" format="tabular" label="${studyid}" />
    Obtain a study expression matrix.

and R code:

args = commandArgs(trailingOnly=TRUE) <- args[1]
out.file <- args[2]
sdy <- CreateConnection(
exprEset <- sdy$getGEMatrix(c("TIV_2008"))
expr <- exprs(exprEset)
probes <- rownames(expr)
saveExpr <- cbind(probes, expr)
colnames(saveExpr) <- c("ProbeID", colnames(expr))
write.table(saveExpr, file=out.file, sep="\t", quote=FALSE, 
              row.names=FALSE, col.names=TRUE) 

I want to display the some other information like: dim(), column names, number of samples and other information in the same page as text after getting the data.

Thanks again,

ADD REPLYlink modified 13 months ago • written 13 months ago by Sara Mohammadi50
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 95 users visited in the last hour