Mercurial > repos > galaxyp > qupath_roi_splitter
annotate qupath_roi_splitter.xml @ 0:bd60d4542fd4 draft
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
| author | galaxyp |
|---|---|
| date | Tue, 25 Apr 2023 09:29:53 +0000 |
| parents | |
| children | f955895aed01 |
| rev | line source |
|---|---|
|
0
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
1 <tool id="qupath_roi_splitter" name="QuPath ROI Splitter" version="0.1.0"> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
2 <description>Split ROI coordinates of QuPath TMA annotation by cell type (classification)</description> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
3 <requirements> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
4 <requirement type="package" version="3.0.1">geojson</requirement> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
5 <requirement type="package" version="1.24.2">numpy</requirement> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
6 <requirement type="package" version="4.7.0">opencv</requirement> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
7 <requirement type="package" version="2.0.0">pandas</requirement> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
8 </requirements> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
9 <command detect_errors="exit_code"><![CDATA[ |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
10 #for $input in $input_collection |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
11 python3 '$__tool_directory__/qupath_roi_splitter.py' --qupath_roi '$input' && |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
12 #end for |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
13 mkdir out && |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
14 mv *.txt out/ |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
15 ]]></command> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
16 <inputs> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
17 <param name="input_collection" type="data_collection" format="geojson" label="Input QuPath annotation" help="Collection containing GeoJSON files"/> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
18 </inputs> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
19 <outputs> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
20 <collection name="output_txts" type="list" label="${tool.name} on ${on_string}: ROI data"> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
21 <discover_datasets pattern="__name_and_ext__" directory="out" visible="false" format="txt"/> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
22 </collection> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
23 </outputs> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
24 <tests> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
25 <test> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
26 <param name="input_collection"> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
27 <collection type="list"> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
28 <element name="annotations_TMA_E-5.geojson" value="annotations_TMA_E-5.geojson" /> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
29 <element name="annotations_TMA_F-5.geojson" value="annotations_TMA_F-5.geojson" /> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
30 </collection> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
31 </param> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
32 <output_collection name="output_txts" type="list" count="4"> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
33 <element name="F-5_Stroma"> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
34 <assert_contents> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
35 <has_text text="x"/> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
36 <has_text text="y"/> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
37 <has_text text="14240"/> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
38 <has_text text="21008"/> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
39 </assert_contents> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
40 </element> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
41 </output_collection> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
42 </test> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
43 </tests> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
44 <help><![CDATA[ |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
45 **QuPath ROI Splitter** |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
46 |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
47 This tool extracts ROI coordinates of QuPath TMA annotation by cell type. |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
48 |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
49 Input: A collection containing GeoJSON files with QuPath annotation data. You need to run the QuPath TMA annotation script first which can be found at https://github.com/npinter/ROIsplitter. |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
50 |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
51 Output: A list of text files containing the ROI coordinates for each cell type. |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
52 |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
53 https://github.com/npinter/ROIsplitter |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
54 ]]></help> |
|
bd60d4542fd4
planemo upload for repository hhttps://github.com/npinter/ROIsplitter commit cdf3e9652b10c7a0b179202129a797e32fd95909
galaxyp
parents:
diff
changeset
|
55 </tool> |
