annotate r-sleuth.xml @ 2:a049d0d5a05e draft

Uploaded
author youyuh48
date Fri, 08 Dec 2017 22:15:41 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
1 <tool id="r-sleuth" name="r-sleuth" version="0.29.0">
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
2 <description>Sleuth is an R library for analysis of RNA-Seq experiments for which transcript abundances have been quantified with kallisto.</description>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
3 <requirements>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
4 <requirement type="package" version="1.20.0">r-getopt</requirement>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
5 <requirement type="package" version="0.29.0">r-sleuth</requirement>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
6 <requirement type="package" version="2.34.0">bioconductor-biomart</requirement>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
7 </requirements>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
8 <version_command>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
9 <![CDATA[
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
10 echo $(R --version | grep version | grep -v GNU)", r-sleuth version" $(R --vanilla --slave -e "library(sleuth); cat(sessionInfo()\$otherPkgs\$sleuth\$Version)" 2> /dev/null | grep -v -i "WARNING: ")
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
11 ]]>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
12 </version_command>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
13 <command detect_errors="aggressive">
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
14 <![CDATA[
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
15 #import re
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
16 ## create symlinks to input datasets
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
17 #for $file in $input_files
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
18 #set $sname = re.sub('\.h5$', '', str($file.element_identifier))
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
19 mkdir -p 'data/${sname}/kallisto' &&
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
20 ln -s '$file' 'data/${sname}/kallisto/abundance.h5' &&
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
21 #end for
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
22
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
23 Rscript '${__tool_directory__}/r-sleuth.R'
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
24 --indir 'data'
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
25 --metadata '$metadata'
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
26 --full_model '~${full_model}'
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
27 --reduced_model '~${reduced_model}'
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
28 --gene_anno_name 'hsapiens_gene_ensembl' &&
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
29 tar zcvf sleuth_shiny.tar.gz data/app.R data/so.rds
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
30 ]]>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
31 </command>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
32 <inputs>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
33 <param name="input_files" type="data" format="h5" label="Select Abundance(HDF5) Datasets" min="2" multiple="True"/>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
34 <param name="metadata" type="data" format="txt,tsv,tabular" label="Metadata file"/>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
35 <param name="full_model" type="text" value="condition" label="Full model"/>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
36 <param name="reduced_model" type="text" value="1" label="Reduced model"/>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
37 <param name="gene_anno_name" type="select" label="BioMart dataset">
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
38 <option value="hsapiens_gene_ensembl" selected="true">homo_sapiens</option>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
39 </param>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
40 </inputs>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
41 <outputs>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
42 <data name="output" format="tar" label="${tool.name} on ${on_string}: R Shiny app" from_work_dir="sleuth_shiny.tar.gz"/>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
43 </outputs>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
44 <tests>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
45 <test>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
46 <param name="input_files" value="SRR1867792.h5,SRR1909613.h5,SRR1909637.h5"/>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
47 <param name="metadata" value="metadata.txt"/>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
48 <output name="output" file="sleuth_shiny.tar.gz" ftype="tar"/>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
49 </test>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
50 </tests>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
51 <help>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
52 <![CDATA[
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
53 This is a Galaxy wrapper for the Sleuth package.
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
54
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
55 **Input file format of metadata**
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
56
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
57 sample condition
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
58 ---------------------
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
59 SRR1867792 ESC
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
60 SRR1909613 BM-MSC
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
61 SRR1909637 BM-MSC
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
62
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
63 **Output**
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
64
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
65 This wrapper script generates Shiny web application files for RStudio.
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
66 Unzip sleuth_shiny.tar.gz file, then run app.R file in RStudio.
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
67 ]]>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
68 </help>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
69 <citations>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
70 <citation type="bibtex">
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
71 @misc{githubsleuth,
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
72 title = {sleuth},
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
73 publisher = {GitHub},
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
74 journal = {GitHub repository},
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
75 url = {https://pachterlab.github.io/sleuth/},
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
76 }
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
77 </citation>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
78 </citations>
a049d0d5a05e Uploaded
youyuh48
parents:
diff changeset
79 </tool>