annotate naivestates.xml @ 1:a62b0c62270e draft default tip

"planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 86b0cc490d7a4fe44c9c75f857a0609bd3fa82d3-dirty"
author perssond
date Tue, 06 Apr 2021 21:12:31 +0000
parents 1fb6181c2c64
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
a62b0c62270e "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 86b0cc490d7a4fe44c9c75f857a0609bd3fa82d3-dirty"
perssond
parents: 0
diff changeset
1 <tool id="naivestates" name="naivestates" version="@VERSION@.3" profile="17.09">
0
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
2 <description> Inference of cell states using Naive Bayes</description>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
3 <macros>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
4 <import>macros.xml</import>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
5 </macros>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
6
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
7 <expand macro="requirements"/>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
8 @VERSION_CMD@
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
9
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
10 <command detect_errors="exit_code"><![CDATA[
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
11
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
12 @CMD_BEGIN@
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
13 -i '$counts'
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
14
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
15 #if $markers
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
16 -m $markers
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
17 #end if
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
18
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
19 --mct $mct
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
20 -p $plots
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
21
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
22 #if $id
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
23 --id $id
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
24 #end if
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
25
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
26 --log $log
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
27
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
28 #if $sfx
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
29 --sfx $sfx
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
30 #end if
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
31
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
32 #if $umap
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
33 --umap
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
34 #end if
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
35 -o .
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
36
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
37 &&
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
38
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
39 mv *-states.csv states.csv;
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
40
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
41 #if $plots != "off"
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
42 mv plots/*-probs.${plots} plots/probs.${plots};
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
43 mv plots/*-summary.${plots} plots/summary.${plots};
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
44 mv plots/*-allfits.${plots} plots/allfits.${plots};
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
45 #end if
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
46
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
47 ]]></command>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
48
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
49
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
50 <inputs>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
51 <param name="counts" type="data" format="csv" label="Quantified Cell Matrix"/>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
52 <param name="markers" type="data" format="txt" optional="true" label="Markers to model"/>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
53 <param name="mct" type="data" format="csv" label="Marker-State Association Map"/>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
54 <param name="plots" type="select" label="Generate plots showing the fit">
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
55 <option selected="true" value="png">png</option>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
56 <option value="pdf">pdf</option>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
57 <option value="off">off</option>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
58 </param>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
59 <param name="id" type="text" value="" label="Column name containing cell IDs"/>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
60 <param name="log" type="select" label="Log Transform" help="Whether to apply a log transform">
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
61 <option selected="true" value="auto">auto</option>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
62 <option value="yes">yes</option>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
63 <option value="no">no</option>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
64 </param>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
65 <param name="sfx" type="text" value="_cellMask" optional="true" label="Common suffix" help="Common suffix on marker columns (e.g., _cellMask)"/>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
66 <param name="umap" type="boolean" checked="true" label="Generate UMAP plots"/>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
67 </inputs>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
68
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
69 <outputs>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
70 <data format="csv" name="states" from_work_dir="states.csv" label="${tool.name} on ${on_string}: States CSV"/>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
71 <data format="png" name="probs-png" from_work_dir="plots/probs.png" label="${tool.name} on ${on_string}: Probabilities">
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
72 <filter>plots == 'png'</filter>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
73 </data>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
74 <data format="png" name="summary-png" from_work_dir="plots/summary.png" label="${tool.name} on ${on_string}: Summary">
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
75 <filter>plots == 'png'</filter>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
76 </data>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
77 <data format="png" name="allfits-png" from_work_dir="plots/allfits.png" label="${tool.name} on ${on_string}: AllFits">
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
78 <filter>plots == 'png'</filter>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
79 </data>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
80 <data format="pdf" name="probs-pdf" from_work_dir="plots/probs.pdf" label="${tool.name} on ${on_string}: Probabilities">
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
81 <filter>plots == 'pdf'</filter>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
82 </data>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
83 <data format="pdf" name="summary-pdf" from_work_dir="plots/summary.pdf" label="${tool.name} on ${on_string}: Summary">
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
84 <filter>plots == 'pdf'</filter>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
85 </data>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
86 <data format="pdf" name="allfits-pdf" from_work_dir="plots/allfits.pdf" label="${tool.name} on ${on_string}: AllFits">
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
87 <filter>plots == 'pdf'</filter>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
88 </data>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
89 </outputs>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
90 <help><![CDATA[
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
91 naivestates - Inference of cell states using Naive Bayes
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
92 This work is supported by the NIH Grant 1U54CA225088: Systems Pharmacology of Therapeutic and Adverse Responses to Immune Checkpoint and Small Molecule Drugs and by the NCI grant 1U2CCA233262: Pre-cancer atlases of cutaneous and hematologic origin (PATCH Center).
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
93
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
94 Introduction
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
95 naivestates is a label-free, cluster-free tool for inferring cell types from quantified marker expression data, based on known marker <-> cell type associations. The tool is designed to be run as a Docker container, but can also be installed in a Conda environment or as an R package. naivestates expects as input information about marker expression on a per-cell basis, provided in .csv format. One of the columns must contain cell IDs. An example input file may look as follows:
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
96
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
97 CellID,KERATIN,FOXP3,SMA
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
98 1,64.18060200668896,193.00334448160535,303.5016722408027
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
99 2,54.850202429149796,151.19433198380565,176.3846153846154
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
100 3,63.94712643678161,210.43218390804597,483.9448275862069
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
101 4,142.01320132013203,227.85808580858085,420.76897689768975
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
102 5,56.66379310344828,197.01896551724138,343.7810344827586
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
103 6,69.97454545454545,187.59636363636363,267.9709090909091
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
104 7,67.57754010695187,185.63368983957218,351.7914438502674
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
105 8,64.012,190.02,349.348
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
106 9,56.9622641509434,159.79245283018867,236.43867924528303
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
107 ...
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
108 Installation
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
109 Download the container image
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
110 Pull the latest version with
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
111
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
112 docker pull labsyspharm/naivestates
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
113 Alternatively, you can pull a specific version, which is recommended to ensure reproducibility of your analyses. For example, v1.2.0 can be pulled with
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
114
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
115 docker pull labsyspharm/naivestates:1.2.0
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
116 Examine the tool usage instructions
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
117 docker run --rm labsyspharm/naivestates:1.2.0 /app/main.R -h
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
118 replacing 1.2.0 with the version you are working with. Omit :1.2.0 entirely if you pulled the latest version above. The flag --rm tells Docker to delete the container instance after it finishes displaying the help message.
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
119
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
120 Basic usage
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
121 At minimum, the tool requires an input file and the list of marker names:
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
122
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
123 docker run --rm -v /path/to/data/folder:/data labsyspharm/naivestates:1.2.0 \
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
124 /app/main.R -i /data/myfile.csv -m aSMA,CD45,panCK
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
125 where we can make a distinction between Docker-level arguments:
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
126
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
127 --rm once again cleans up the container instance after it finishes running the code
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
128 -v /path/to/data/folder:/data maps the local folder containing your data to /data inside the container
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
129 :1.2.0 specifies the container version that we pulled above
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
130 and tool-level arguments:
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
131
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
132 -i /data/myfile.csv specifies which data file to process
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
133 -m aSMA,CD45,panCK specifies the markers of interest (NOTE: comma-delimited, no spaces)
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
134 If there is a large number of markers, place their names in a standalone file markers.txt with one marker per line. Ensure that the file lives in /path/to/data/folder/ and modify the Docker call to use the new file:
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
135
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
136 docker run --rm -v /path/to/data/folder:/data labsyspharm/naivestates:1.2.0 \
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
137 /app/main.R -i /data/myfile.csv -m /data/markers.txt
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
138 Additional parameters
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
139 The following parameters are optional, but may be useful in certain scenarios:
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
140
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
141 --plots <off|pdf|png> - (default: off) Produces QC plots of individual marker fits and summary UMAP plots in .png or .pdf format.
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
142 --id - (default: CellID) Name of the column that contains cell IDs
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
143 --log <yes|no|auto> - (default: auto) When a log10 transformation should be applied prior to fitting the data. The tool will do this automatically if it detects large values. Use --log no to force the use of original, non-transformed values instead.
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
144 -o - (default: /data) Alternative output directory. (Note that any file written to a directory that wasn't mapped with docker -v will not persist when the container is destroyed.)
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
145 --mct - The tool has a basic marker -> cell type (mct) mapping in typemap.csv. More sophisticated mct mappings can be defined by creating a custom-map.csv file with two columns: Marker and State. Ensure that custom-map.csv is in /path/to/data/folder and point the tool at it with --mct (e.g., /app/main.R -i /data/myfile.csv --mct /data/custom-map.csv -m aSMA,CD45,panCK)
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
146 Alternative execution environments
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
147 Running in a Conda environment
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
148 If you are working in a computational environment that doesn't support Docker, the repository provides a Conda-based alternative. Ensure that conda is installed on your system, then 1) clone this repository, 2) instantiate the conda environment and 3) install the tool.
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
149
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
150 git clone https://github.com/labsyspharm/naivestates.git
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
151 cd naivestates
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
152 conda env create -f conda.yml
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
153 conda activate naivestates
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
154 R -s -e "devtools::install_github('labsyspharm/naivestates')"
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
155 The tool can now be used as above by running main.R:
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
156
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
157 ./main.R -h
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
158 ./main.R -i /path/to/datafile.csv -m aSMA,CD45,panCK
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
159 Running as an R package
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
160 The tool can also be installed as an R package directly from GitHub:
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
161
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
162 if( !require(devtools) ) install.packages("devtools")
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
163 devtools::install_github( "labsyspharm/naivestates" )
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
164 Example usage:
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
165
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
166 library( tidyverse )
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
167 library( naivestates )
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
168
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
169 # Load the original data
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
170 X <- read_csv( "datafile.csv" )
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
171
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
172 # Fit models to channels aSMA, CD45 and panCK
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
173 # Specify that cell IDs are in column CellID
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
174 GMM <- GMMfit( X, CellID, aSMA, CD45, panCK )
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
175
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
176 # Plot a fit to one of the markers
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
177 plotFit( GMM, "CD45" )
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
178
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
179 # Write out the results to results.csv
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
180 GMMreshape(GMM) %>% write_csv( "results.csv" )
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
181
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
182 OHSU Wrapper Repo: https://github.com/ohsu-comp-bio/naivestates
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
183 ]]></help>
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
184 <expand macro="citations" />
1fb6181c2c64 "planemo upload for repository https://github.com/ohsu-comp-bio/naivestates commit 392f57d212a7499bf1d3e421112a32a56635bc67-dirty"
perssond
parents:
diff changeset
185 </tool>