Mercurial > repos > youyuh48 > sleuth
comparison sleuth.xml @ 3:172091d47f5a draft default tip
planemo upload for repository https://github.com/youyuh48/galaxy-sleuth/tree/master/ commit 8d9ff6181e933951e015e67f1719588bab2b3ab5-dirty
author | youyuh48 |
---|---|
date | Tue, 12 Jun 2018 17:58:47 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:a049d0d5a05e | 3:172091d47f5a |
---|---|
1 <tool id="sleuth" name="sleuth" version="0.30.0"> | |
2 <description>Sleuth is an R library for analysis of RNA-Seq experiments for which transcript abundances have been quantified with kallisto.</description> | |
3 <requirements> | |
4 <container type="docker">youyuh48/sleuth:0.30.0</container> | |
5 </requirements> | |
6 <version_command> | |
7 <![CDATA[ | |
8 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: ") | |
9 ]]> | |
10 </version_command> | |
11 <command detect_errors="aggressive"> | |
12 <![CDATA[ | |
13 #import re | |
14 ## create symlinks to input datasets | |
15 #for $file in $input_files | |
16 #set $sname = re.sub('\.h5$', '', str($file.element_identifier)) | |
17 mkdir -p 'data/${sname}/kallisto' && | |
18 ln -s '$file' 'data/${sname}/kallisto/abundance.h5' && | |
19 #end for | |
20 | |
21 Rscript '${__tool_directory__}/sleuth.R' | |
22 --indir 'data' | |
23 --metadata '$metadata' | |
24 --full_model '~${full_model}' | |
25 --reduced_model '~${reduced_model}' | |
26 #if $anno.biomart == "Yes" | |
27 --gene_anno_name '$anno.gene_anno_name' | |
28 #end if | |
29 && tar zcvf sleuth_shiny.tar.gz data/app.R data/so.rds | |
30 ]]> | |
31 </command> | |
32 <inputs> | |
33 <param name="input_files" type="data" format="h5" label="Select Abundance(HDF5) Datasets" min="2" multiple="True"/> | |
34 <param name="metadata" type="data" format="txt,tsv,tabular" label="Metadata file"/> | |
35 <param name="full_model" type="text" value="condition" label="Full model"/> | |
36 <param name="reduced_model" type="text" value="1" label="Reduced model"/> | |
37 <conditional name="anno"> | |
38 <param name="biomart" type="select" label="Use BioMart?" help=""> | |
39 <option value="Yes">Yes</option> | |
40 <option value="No">No</option> | |
41 </param> | |
42 <when value="Yes"> | |
43 <param name="gene_anno_name" type="select" label="BioMart dataset"> | |
44 <option value="hsapiens_gene_ensembl" selected="true">homo_sapiens</option> | |
45 </param> | |
46 </when> | |
47 <when value="No"></when> | |
48 </conditional> | |
49 </inputs> | |
50 <outputs> | |
51 <data name="output" format="tar" label="${tool.name} on ${on_string}: R Shiny app" from_work_dir="sleuth_shiny.tar.gz"/> | |
52 </outputs> | |
53 <tests> | |
54 <test> | |
55 <param name="input_files" value="SRR1867792.h5,SRR1909613.h5,SRR1909637.h5"/> | |
56 <param name="metadata" value="metadata.txt"/> | |
57 <output name="output" file="sleuth_shiny.tar.gz" ftype="tar"/> | |
58 </test> | |
59 </tests> | |
60 <help> | |
61 <![CDATA[ | |
62 This is a Galaxy wrapper for the Sleuth package. | |
63 | |
64 **Input file format of metadata** | |
65 | |
66 sample condition | |
67 --------------------- | |
68 SRR1867792 ESC | |
69 SRR1909613 BM-MSC | |
70 SRR1909637 BM-MSC | |
71 | |
72 **Output** | |
73 | |
74 This wrapper script generates Shiny web application files for RStudio. | |
75 Unzip sleuth_shiny.tar.gz file, then run app.R file in RStudio. | |
76 ]]> | |
77 </help> | |
78 <citations> | |
79 <citation type="bibtex"> | |
80 @misc{githubsleuth, title = {sleuth}, publisher = {GitHub}, journal = {GitHub repository}, url = {https://pachterlab.github.io/sleuth/}, } | |
81 </citation> | |
82 </citations> | |
83 </tool> |