annotate gprofiler_snpense.xml @ 1:74385d563652 draft default tip

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit 4d4576623a85b58137f9e8c5a7747cb2f484c8b6"
author iuc
date Mon, 18 Nov 2019 17:55:27 -0500
parents f83a08dff6f0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
1 <?xml version="1.0"?>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
2 <tool id="gprofiler_snpense" name="gProfiler SNPense" version="@VERSION@">
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
3 <description>maps SNP rs-codes to gene names, chromosomal coordinates and variant effects</description>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
4 <macros>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
5 <import>macros.xml</import>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
6 </macros>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
7 <expand macro="requirements"></expand>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
8 <expand macro="version_command" />
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
9 <command detect_errors="aggressive">Rscript $script_file</command>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
10 <configfiles>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
11 <configfile name="script_file"><![CDATA[
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
12
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
13 options( show.error.messages=F, error = function () { cat( geterrmessage(), file=stderr() ); q( "no", 1, F ) } )
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
14 loc <- Sys.setlocale("LC_MESSAGES", "en_US.UTF-8")
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
15
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
16 suppressPackageStartupMessages({
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
17 library("gprofiler2")
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
18 })
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
19
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
20 set_user_agent(paste(get_user_agent(), "galaxy"))
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
21 sessionInfo()
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
22
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
23 #if $tool_settings.base_url
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
24 set_base_url('${tool_settings.base_url}')
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
25 #end if
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
26
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
27 query <- scan('${input.file_name}', character(), quote = "")
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
28
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
29 response <- gsnpense( query
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
30 , filter_na = ${filter_na}
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
31 )
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
32
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
33 output <- response
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
34 output[['ensgs']] <- vapply(output[['ensgs']], paste, collapse = ",", character(1L))
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
35 output[['gene_names']] <- vapply(output[['gene_names']], paste, collapse = ",", character(1L))
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
36
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
37 output.colnames = append(colnames(output)[1:(length(colnames(output))-1)], colnames(output[['variants']]))
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
38 write.table(output, file='${output}', quote=FALSE, sep='\t', row.names = FALSE, col.names = output.colnames)
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
39
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
40 ]]></configfile>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
41 </configfiles>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
42 <inputs>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
43 <param name="input" type="data" format="txt" label="Input is whitespace-separated list of SNP IDs to be translated (should start with prefix ’rs’)." />
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
44 <expand macro="filter_na" />
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
45 <expand macro="tool_settings"></expand>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
46 </inputs>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
47 <outputs>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
48 <data name="output" format="tabular" label="${tool.name} on ${on_string}" />
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
49 </outputs>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
50 <tests>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
51 <test>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
52 <param name="input" ftype="txt" value="example_snpense_query.txt" />
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
53 <param name="base_url" value="http://biit.cs.ut.ee/gprofiler_archive3/e94_eg41_p11" />
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
54 <output name="output" ftype="tabular" file="example_snpense_results.txt" sort="true" />
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
55 </test>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
56 <test>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
57 <param name="input" ftype="txt" value="example_snpense_query.txt" />
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
58 <param name="base_url" value="http://biit.cs.ut.ee/gprofiler_archive3/e94_eg41_p11" />
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
59 <param name="filter_na" value="T" />
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
60 <output name="output" ftype="tabular" file="example_snpense_results_2.txt" sort="true" />
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
61 </test>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
62 </tests>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
63
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
64 <help><![CDATA[
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
65
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
66 **What it does**
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
67 This tool wraps gprofiler2 R package which performs a request to g:Profiler g:SNPense tool through its API.
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
68 g:Profiler g:SNPense maps SNP rs identifiers to chromosome positions, genes and variant effects. Available only
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
69 for human SNPs.
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
70
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
71 -----
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
72
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
73 @REFERENCES@
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
74
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
75 ]]></help>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
76 <expand macro="citations"></expand>
f83a08dff6f0 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/gprofiler/ commit ed9b518a6aaf6a5aada47e39c039f6936e41b290"
iuc
parents:
diff changeset
77 </tool>