1
|
1 <tool id="hitsandclusters" name="Count hits per gene and cluster" version="0.1.1">
|
|
2 <description> given a bam file and list with clusters.</description>
|
0
|
3 <requirements>
|
|
4 <requirement type="package" version="3.6.7">python</requirement>
|
|
5 <requirement type="package" version="0.15.2">pysam</requirement>
|
|
6 <requirement type="package" version="0.24.1">pandas</requirement>
|
|
7 <requirement type="package" version="1.15.4">numpy</requirement>
|
|
8 </requirements>
|
|
9 <command detect_errors="exit_code"><![CDATA[
|
|
10 python '$__tool_directory__/countandcluster.py' -c '$clusters' -b '$bam' -p '$prop' -g '$out1' -i '${bam.metadata.bam_index}' -o '$out2'
|
|
11 ]]></command>
|
|
12 <inputs>
|
|
13 <param type="data" name="clusters" format="tabular" />
|
|
14 <param type="data" name="bam" format="bam" />
|
|
15 <param type="float" name="prop" value="0.9" />
|
|
16 </inputs>
|
|
17 <outputs>
|
|
18 <data name="out1" format="tabular" />
|
|
19 <data name="out2" format="tabular" />
|
|
20 </outputs>
|
|
21 <tests>
|
|
22 <test>
|
|
23 <param name="clusters" value="megares_subset.tsv"/>
|
|
24 <param name="bam" value="test.bam"/>
|
|
25 <param name="prop" value="0.5"/>
|
|
26 <output name="out1" file="geneout.tsv"/>
|
|
27 <output name="out2" file="clusterout.tsv"/>
|
|
28 </test>
|
|
29 </tests>
|
|
30 <help><![CDATA[
|
|
31 usage: countandcluster.py [-h] [-b BAM] [-i INDEX] -c CLUSTERS [-p MINPROP] [-g GENEOUT] [-o CLUSTEROUT]
|
|
32
|
|
33 optional arguments:
|
|
34 -h, --help show this help message and exit
|
|
35 -b BAM bam alignment file
|
|
36 -i INDEX bam index
|
|
37 -c CLUSTERS Tab-delimited file with genes and clusters
|
|
38 -p MINPROP minimum proportion of cluster covered
|
|
39 -g GENEOUT output file for gene counts
|
|
40 -o CLUSTEROUT output file for cluster counts
|
|
41
|
|
42 ]]></help>
|
|
43 <citations>
|
|
44 <citation type="bibtex">
|
|
45 @misc{githubhitsandclusters,
|
1
|
46 author = {Shay, Julie},
|
|
47 year = {2019},
|
0
|
48 title = {hitsandclusters},
|
|
49 publisher = {GitHub},
|
|
50 journal = {GitHub repository},
|
|
51 url = {https://github.com/jashay90/galaxytools},
|
|
52 }</citation>
|
|
53 </citations>
|
|
54 </tool>
|
|
55
|