annotate tool/interactive_tool_rstudio_bioconductor.xml @ 1:f8bd7949ab54 draft default tip

planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
author enis
date Wed, 26 Nov 2025 17:30:55 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
1
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
2 <tool id="interactive_tool_rstudio_bioconductor" tool_type="interactive" name="RStudio" version="4.6.0+3.22" profile="22.01">
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
3 <icon src="bioconductor.png" />
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
4 <description>R 4.6.0 with Bioconductor 3.22</description>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
5 <requirements>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
6 <container type="docker">bioconductor/galaxy-rstudio:RELEASE_3_22</container>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
7 </requirements>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
8 <entry_points>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
9 <entry_point name="RStudio" requires_domain="False" requires_path_in_header_named="X-RStudio-Root-Path">
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
10 <port>8787</port>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
11 <url>/</url>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
12 </entry_point>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
13 </entry_points>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
14 <environment_variables>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
15 <environment_variable name="HISTORY_ID" strip="True">${__app__.security.encode_id($rstudio.history_id)}</environment_variable> <!-- FIXME: Warning: The use of __app__ is deprecated and will break backward compatibility in the near future -->
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
16 <environment_variable name="GALAXY_WEB_PORT">8080</environment_variable>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
17 <environment_variable name="GALAXY_URL">$__galaxy_url__</environment_variable>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
18 <environment_variable name="DEBUG">true</environment_variable>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
19 <environment_variable name="DISABLE_AUTH">true</environment_variable>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
20 <environment_variable name="API_KEY" inject="api_key" />
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
21 </environment_variables>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
22 <inputs>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
23 <param name="input" multiple="true" type="data" format="data" optional="true" label="Include data into the environment"/>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
24 </inputs>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
25 <command><![CDATA[
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
26 #import re
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
27 echo "[`date`] - Setting up for RStudio as \$(id)." &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
28 ## Match the container user id to the host user/group id if supplied
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
29 if [ -n "\$USERID" ]; then
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
30 echo "[`date`] - Setting user id to \$USERID." &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
31 usermod -u "\$USERID" rstudio;
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
32 fi &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
33 if [ -n "\$GROUPID" ]; then
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
34 echo "[`date`] - Setting user group to \$GROUPID." &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
35 groupmod -g "\$GROUPID" rstudio;
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
36 fi &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
37
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
38 ## This is where GalaxyConnector places files copied from Galaxy
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
39 mkdir -p /import &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
40 chown rstudio:rstudio /import &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
41 ln -s "/import" /home/rstudio/galaxy_imports &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
42 mkdir -p ./rstudio_outputs && chown rstudio:rstudio ./rstudio_outputs && ln -s "\$PWD/rstudio_outputs" /home/rstudio/galaxy_outputs &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
43
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
44 echo "[`date`] - Creating Rprofile" &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
45 cp '$__tool_directory__/Rprofile.R' /home/rstudio/.Rprofile &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
46
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
47 ## Required because of the above usermod command, but before linking the input files
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
48 chown -R rstudio:rstudio /home/rstudio/ &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
49 chown -R rstudio:rstudio /usr/local/lib/R/library &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
50 chown -R rstudio:rstudio /usr/local/lib/R/doc &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
51
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
52 #if $input:
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
53 echo "[`date`] - Linking input files to '/home/rstudio/galaxy_inputs/'" &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
54 mkdir -p /home/rstudio/galaxy_inputs/ &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
55 #for $count, $file in enumerate($input):
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
56 #set $cleaned_name = str($count + 1) + '_' + re.sub('[^\w\-\.\s]', '_', str($file.element_identifier))
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
57 echo "[`date`] - Linking '$file' to '/home/rstudio/galaxy_inputs/${cleaned_name}.${file.ext}'" &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
58 ln -sf '$file' '/home/rstudio/galaxy_inputs/${cleaned_name}.${file.ext}' &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
59 #end for
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
60 #else
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
61 echo "[`date`] - No input files provided, skipping file linking step." &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
62 #end if
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
63
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
64 echo "[`date`] - Starting container processes, including RStudio..." &&
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
65 /init
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
66 ]]>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
67 </command>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
68 <outputs>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
69 <data name="rstudio" format="txt" label="RStudio Interactive Tool"></data>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
70 <collection name="output_collection" type="list" label="RStudio outputs">
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
71 <discover_datasets pattern="__name_and_ext__" directory="rstudio_outputs/" assign_primary_output="true" recurse="true"/>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
72 </collection>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
73 </outputs>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
74 <stdio>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
75 <exit_code range="129" level="log" description="User shut down the container." />
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
76 </stdio>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
77 <tests>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
78 <test expect_num_outputs="1">
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
79 <param name="mode" value="previous" />
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
80 <param name="rstudio" value="test.txt" />
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
81 <param name="run_it" value="true" />
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
82 <output name="rstudio" file="test.txt" ftype="txt"/>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
83 </test>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
84 </tests>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
85 <help><![CDATA[
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
86 The RStudio Interactive Tool in Galaxy provides a user-friendly interface
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
87 for conducting statistical analysis, visualization, and scripting using the
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
88 R programming language. This tool is ideal for bioinformatics workflows
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
89 involving data exploration, statistical modeling, and custom script
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
90 development within the Galaxy ecosystem.
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
91
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
92 Use Cases
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
93 ---------
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
94 - Exploratory data analysis
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
95 - Custom script development
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
96 - Genomic and transcriptomic data visualization
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
97 - Statistical modeling and hypothesis testing
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
98
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
99 Galaxy Integration Functions
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
100 ----------------------------
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
101
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
102 To facilitate seamless data transfer between RStudio and Galaxy, the
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
103 following built-in functions are available:
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
104
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
105 Before launching the tool, you can select datasets from your history to include
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
106 in the RStudio environment. This allows you to work with your data directly
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
107 within RStudio without needing to manually transfer files. All files will be
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
108 located in the `~/galaxy_inputs/` directory. Note that files
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
109 mapped from a Galaxy history into RStudio like this are read only.
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
110
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
111 Any files that you store in the `~/galaxy_outputs/` directory will be
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
112 automatically transferred back to Galaxy when you finish your session and stop
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
113 the RStudio Interactive Tool.
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
114
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
115 In addition, you can use the following functions within your R session to
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
116 facilitate interactive data transfer. All imported files will be located in the
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
117 `~/galaxy_imports` directory.
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
118
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
119 **gx_get(history_dataset_number)** – Loads a dataset from your
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
120 Galaxy history into the R environment. Example:
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
121
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
122 .. code-block:: r
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
123
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
124 gx_get(1)
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
125 df <- read.csv("~/galaxy_imports/1")
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
126 head(df)
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
127
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
128 **gx_put("file_name", ["file_type"])** – Saves an R object as a
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
129 new dataset in your Galaxy history. Example:
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
130
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
131 .. code-block:: r
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
132
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
133 gx_put("/home/rstudio/output.csv")
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
134
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
135 **gx_save("session_name")** – Saves your R script to Galaxy for
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
136 reproducibility. Example:
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
137
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
138 .. code-block:: r
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
139
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
140 gx_save("analysis_script.R")
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
141
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
142 ]]></help>
f8bd7949ab54 planemo upload commit e2e44ba8b45bf21c9bf08e2d5e79a985d2c299c9-dirty
enis
parents:
diff changeset
143 </tool>