Mercurial > repos > dlalgroup > pmids_to_pubtator_matrix
comparison pmids_to_pubtator_matrix.xml @ 0:3f4adc85ba5d draft
"planemo upload for repository https://github.com/dlal-group/simtext commit fd3f5b7b0506fbc460f2a281f694cb57f1c90a3c-dirty"
author | dlalgroup |
---|---|
date | Thu, 24 Sep 2020 02:01:50 +0000 |
parents | |
children | ada4c7b3fc39 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3f4adc85ba5d |
---|---|
1 <tool id="pmids_to_pubtator_matrix" name="pmids_to_pubtator_matrix" version="@VERSION@"> | |
2 <description>Per row, extract scientific terms from PMIDs susing PubTator and generate a binary matrix</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements"> | |
7 <requirement type="package" version="2.0.1">r-argparse</requirement> | |
8 <requirement type="package" version="1.4.0">r-stringr</requirement> | |
9 <requirement type="package" version="1.95_4.12">r-rcurl</requirement> | |
10 <requirement type="package" version="1.4.3">r-stringi</requirement> | |
11 </expand> | |
12 <expand macro="stdio"/> | |
13 <command><![CDATA[Rscript | |
14 '${__tool_directory__}/pmids_to_pubtator_matrix.R' | |
15 --input '$input' | |
16 --output '$output' | |
17 --number '$number' | |
18 $byid | |
19 #for $category in $categories: | |
20 --categories '$category' | |
21 #end for | |
22 ]]> | |
23 </command> | |
24 <inputs> | |
25 <param argument="--input" label="Input file" name="input" optional="false" type="data" format="tabular" help="input"/> | |
26 <param argument="--categories" name="categories" type="select" label="categories" multiple="true" > | |
27 <option value="Gene">Genes</option> | |
28 <option value="Disease">Diseases</option> | |
29 <option value="Mutation">Mutations</option> | |
30 <option value="Chemical">Chemicals</option> | |
31 <option value="Species">Species</option> | |
32 </param> | |
33 <param argument="--byid" label="If you want to find common gene IDs / mesh IDs instead of specific scientific terms." name="byid" type="boolean" truevalue="--byid" falsevalue="" help="byid" checked="false"/> | |
34 <param argument="--number" label="Number of most frequent terms/IDs to extract." name="number" optional="true" type="integer" help="number" value="50"/> | |
35 </inputs> | |
36 <outputs> | |
37 <data format="tabular" name="output" /> | |
38 </outputs> | |
39 <tests> | |
40 <test> | |
41 <param name="input" value="pubmed_by_queries_output" ftype="tabular"/> | |
42 <output name="output" value="pmids_to_pubtator_matrix_output"/> | |
43 </test> | |
44 </tests> | |
45 <help><![CDATA[ | |
46 | |
47 The tool uses all PMIDs per row and extracts "Gene", "Disease", "Mutation", "Chemical" and "Species" terms of the corresponding abstracts, using PubTator annotations. The user can choose from which categories terms should be extracted. The extracted terms are united in one large binary matrix, with 0= term not present in abstracts of that row and 1= term present in abstracts of that row. The user can decide if the scientific terms should be extracted and used as they are or if they should be grouped by their geneIDs/ meshIDs (several terms are often grouped into one ID). The the user can specify a number of most frequent words to extract per row. | |
48 | |
49 Input: Output of 'abstracts_by_pmids' tool, or tab-delimited table with columns containing PMIDs. The names of the PMID columns should start with "PMID", e.g. "PMID_1", "PMID_2" etc. | |
50 | |
51 Output: Binary matrix in that each column represents one of the extracted terms. | |
52 | |
53 ]]></help> | |
54 <expand macro="citations"/> | |
55 </tool> |