Skip to content

Commit 5f47e87

Browse files
authored
Merge branch 'master' into add-credential-support-to-chatgpt-tool
2 parents 2e4f75b + ff5396c commit 5f47e87

95 files changed

Lines changed: 13198 additions & 986 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
categories:
2+
- Data Managers
3+
- Metagenomics
4+
homepage_url: https://github.com/gdefazio/kMetaShot
5+
description: Data manager for kMetaShot reference data
6+
long_description: Data manager for kMetaShot reference data
7+
name: kmetashot_build_database
8+
owner: bgruening
9+
remote_repository_url: https://github.com/galaxyproject/tools-iuc/tree/main/data_managers/data_manager_kmetashot
10+
type: unrestricted
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
<tool id="kmetashot_build_database" name="kMetaShot" tool_type="manage_data" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2+
<description>database builder</description>
3+
<macros>
4+
<token name="@TOOL_VERSION@">2.0</token>
5+
<token name="@VERSION_SUFFIX@">0</token>
6+
<token name="@PROFILE@">24.1</token>
7+
</macros>
8+
<requirements>
9+
<requirement type="package" version="@TOOL_VERSION@">kmetashot</requirement>
10+
</requirements>
11+
<command><![CDATA[
12+
mkdir -p "$out_file.extra_files_path" &&
13+
#if $test != "true":
14+
#if $release == "1":
15+
wget "https://zenodo.org/records/17591095/files/kMetaShot_reference.h5" &&
16+
mv "kMetaShot_reference.h5" "$out_file.extra_files_path" &&
17+
#else:
18+
wget "https://zenodo.org/records/17375120/files/kMetaShot_bacteria_archaea_2025-05-22.h5" &&
19+
mv "kMetaShot_bacteria_archaea_2025-05-22.h5" "$out_file.extra_files_path" &&
20+
#end if
21+
#else:
22+
touch '$out_file.extra_files_path'/kMetaShot_bacteria_archaea_2025-05-22.h5 &&
23+
#end if
24+
cp "$dmjson" "$out_file"
25+
]]></command>
26+
<configfiles>
27+
<configfile name="dmjson"><![CDATA[
28+
{
29+
"data_tables":{
30+
"kmetashot":[
31+
{
32+
"dbkey":"kmetashot",
33+
"version":"${release}",
34+
#if $test == "true":
35+
"path":"${out_file.extra_files_path}/kMetaShot_bacteria_archaea_2025-05-22.h5",
36+
"name":"kMetaShot reference data 2025-05-22 - TEST",
37+
"value":"2025-05-22"
38+
#else:
39+
#if $release == "1":
40+
"path":"${out_file.extra_files_path}/kMetaShot_reference.h5",
41+
"name":"kMetaShot reference data 2022-07-31",
42+
"value":"2022-07-31"
43+
#else:
44+
"path":"${out_file.extra_files_path}/kMetaShot_bacteria_archaea_2025-05-22.h5",
45+
"name":"kMetaShot reference data 2025-05-22",
46+
"value":"2025-05-22"
47+
#end if
48+
#end if
49+
}
50+
]
51+
}
52+
}]]>
53+
</configfile>
54+
</configfiles>
55+
<inputs>
56+
<param name="release" type="select" multiple="false" label="kMetaShot reference data release">
57+
<option value="1">First release</option>
58+
<option value="2">Second release</option>
59+
</param>
60+
<param name="test" type="hidden" value="" checked="false" label="Run test"/>
61+
</inputs>
62+
<outputs>
63+
<data name="out_file" format="data_manager_json" />
64+
</outputs>
65+
<tests>
66+
<test expect_num_outputs="1">
67+
<param name="release" value="2"/>
68+
<param name="test" value="true"/>
69+
<output name="out_file">
70+
<assert_contents>
71+
<has_text text="25-05-22"/>
72+
<has_text text="kMetaShot reference data 2025-05-22 - TEST"/>
73+
</assert_contents>
74+
</output>
75+
</test>
76+
</tests>
77+
<help><![CDATA[
78+
Download and extract kMetaShot reference data.
79+
]]></help>
80+
<citations>
81+
<citation type="doi">10.1038/s41592-023-01940-w</citation>
82+
</citations>
83+
</tool>
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<data_managers>
2+
<data_manager tool_file="data_manager/kmetashot_datamanager.xml" id="kmetashot_build_database">
3+
<data_table name="kmetashot">
4+
<output>
5+
<column name="value"/>
6+
<column name="dbkey"/>
7+
<column name="name"/>
8+
<column name="version"/>
9+
<column name="path" output_ref="out_file">
10+
<move type="file">
11+
<source>${path}</source>
12+
<target base="${GALAXY_DATA_MANAGER_DATA_PATH}">kmetashot/${value}/${path}</target>
13+
</move>
14+
<value_translation>${GALAXY_DATA_MANAGER_DATA_PATH}/kmetashot/${value}/${path}</value_translation>
15+
<value_translation type="function">abspath</value_translation>
16+
</column>
17+
</output>
18+
</data_table>
19+
</data_manager>
20+
</data_managers>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
25-05-22 kMetaShot-25-05-22 kMetaShot reference data 2025-05-22 2 /tmp/tmpf_hplx2a/galaxy-dev/tool-data/kmetashot/2/kMetaShot_bacteria_archaea_2025-05-22.h5
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#This is a sample file distributed with Galaxy that enables tools
2+
#to use a the kMetaShot database.
3+
#You will need to create these data files using the following command
4+
5+
#wget [selected version] [url_from_donwlaod]
6+
7+
#The <version> column indicates the version from the kMetaShot ref data was downloaded
8+
9+
#25-05-22 kMetaShot-25-05-22 kMetaShot reference data 2025-05-22 2 /mnt/galaxyIndices/kMetaShot_database/kMetaShot_bacteria_archaea_2025-05-22.h5
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<tables>
2+
<table name="kmetashot" comment_char="#" allow_duplicate_entries="False">
3+
<columns>value, dbkey, name, version, path</columns>
4+
<file path="tool-data/kmetashot.loc" />
5+
</table>
6+
</tables>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<tables>
2+
<!-- Location of kmetashot indexes for testing -->
3+
<table name="kmetashot" comment_char="#" allow_duplicate_entries="False">
4+
<columns>value, dbkey, name, version, path</columns>
5+
<file path="${__HERE__}/test-data/kmetashot.loc" />
6+
</table>
7+
</tables>

tools/3dtrees_overviews/overviews.xml

Lines changed: 50 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
<tool id="3dtrees_overviews" name="3Dtrees: Overviews" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="24.2">
22
<description>generates 3D overview images</description>
33
<macros>
4-
<token name="@TOOL_VERSION@">1.0.0</token>
5-
<token name="@VERSION_SUFFIX@">1</token>
4+
<token name="@TOOL_VERSION@">1.0.1</token>
5+
<token name="@VERSION_SUFFIX@">0</token>
66
</macros>
77
<requirements>
88
<container type="docker">ghcr.io/3dtrees-earth/tool_overviews:@TOOL_VERSION@</container>
99
</requirements>
1010
<command detect_errors="exit_code"><![CDATA[
11-
export MPLCONFIGDIR=\$TMPDIR &&
12-
mkdir -p ./output_dir/ &&
13-
ln -s '$input' input.laz &&
14-
python -u /src/run.py
11+
mkdir -p ./output_dir/ &&
12+
ln -s '$input' input.laz &&
13+
python -u /src/run.py
1514
--dataset-path input.laz
1615
--max-points '$max_points'
1716
--section-width '$section_width'
1817
--image-width '$image_width'
1918
--image-height '$image_height'
2019
--top-views-deg '$top_views_deg'
2120
--cmap '$cmap'
22-
--camera-distance '$camera_distance'
21+
--camera-distance '$camera_distance'
2322
--output-dir ./output_dir/
24-
]]>
23+
]]>
2524
</command>
2625
<inputs>
2726
<param name="input" type="data" format="laz" label="Point Cloud Dataset" help="LAZ point cloud file to process"/>
@@ -84,49 +83,49 @@
8483
</test>
8584
</tests>
8685
<help format="markdown">
87-
88-
**What it does**
89-
90-
This tool generates 3D overview visualizations from point cloud dataset. It creates:
91-
92-
1. **Top View Images**: A series of top-down views rotated around the point cloud center
93-
2. **Section Views**: Cross-sectional views from north-south and east-west directions
94-
3. **Overview Animation**: An animated GIF showing the rotation sequence
95-
96-
The tool automatically handles large datasets by downsampling to a manageable number of points while preserving the overall structure and appearance.
97-
98-
-----
99-
100-
**Input**
101-
102-
- **Point Cloud Dataset**: LAZ format point cloud file
103-
- **Maximum Points**: Limit for downsampling (default: 100M points)
104-
- **Section Width**: Width of cross-sectional views in meters
105-
- **Image Dimensions**: Width and height of output images in pixels
106-
- **Top View Rotation**: Angular step size for rotation sequence
107-
- **Color Map**: Visualization color scheme (height-based coloring)
108-
- **Camera Distance**: Distance from point cloud center for rendering
109-
110-
-----
111-
112-
**Output**
113-
114-
- **Top View Images**: Collection of PNG images showing top-down views at different rotation angles
115-
- **Section View Images**: Collection of PNG images showing cross-sectional views
116-
- **Overview Animation**: GIF file showing the complete rotation sequence
117-
118-
-----
119-
120-
**Example**
121-
122-
For a forest point cloud dataset, this tool will generate:
123-
- 36 top view images (every 10 degrees)
124-
- 2 section view images (north-south and east-west cuts)
125-
- 1 animated GIF showing the complete 360° rotation
126-
127-
The images use height-based coloring to show terrain and vegetation structure.
128-
129-
</help>
86+
87+
**What it does**
88+
89+
This tool generates 3D overview visualizations from point cloud dataset. It creates:
90+
91+
1. **Top View Images**: A series of top-down views rotated around the point cloud center
92+
2. **Section Views**: Cross-sectional views from north-south and east-west directions
93+
3. **Overview Animation**: An animated GIF showing the rotation sequence
94+
95+
The tool automatically handles large datasets by downsampling to a manageable number of points while preserving the overall structure and appearance.
96+
97+
-----
98+
99+
**Input**
100+
101+
- **Point Cloud Dataset**: LAZ format point cloud file
102+
- **Maximum Points**: Limit for downsampling (default: 100M points)
103+
- **Section Width**: Width of cross-sectional views in meters
104+
- **Image Dimensions**: Width and height of output images in pixels
105+
- **Top View Rotation**: Angular step size for rotation sequence
106+
- **Color Map**: Visualization color scheme (height-based coloring)
107+
- **Camera Distance**: Distance from point cloud center for rendering
108+
109+
-----
110+
111+
**Output**
112+
113+
- **Top View Images**: Collection of PNG images showing top-down views at different rotation angles
114+
- **Section View Images**: Collection of PNG images showing cross-sectional views
115+
- **Overview Animation**: GIF file showing the complete rotation sequence
116+
117+
-----
118+
119+
**Example**
120+
121+
For a forest point cloud dataset, this tool will generate:
122+
- 36 top view images (every 10 degrees)
123+
- 2 section view images (north-south and east-west cuts)
124+
- 1 animated GIF showing the complete 360° rotation
125+
126+
The images use height-based coloring to show terrain and vegetation structure.
127+
128+
</help>
130129
<creator>
131130
<person name="Julian Frey" email="julian.frey@wwd.uni-freiburg.de" url="https://orcid.org/0000-0001-7895-702X"/>
132131
<person name="Kilian Gerberding" email="kilian.gerberding@geosense.uni-freiburg.de" url="https://orcid.org/0009-0002-5001-2571"/>

tools/3dtrees_py3dtiles/.shed.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: 3dtrees_py3dtiles
2+
owner: bgruening
3+
description: generates 3D tiles from point clouds
4+
homepage_url: https://github.com/3dTrees-earth/3dtrees_py3dtiles
5+
long_description: |
6+
generates 3D tiles from point clouds
7+
remote_repository_url: https://github.com/bgruening/galaxytools/tree/master/tools/3dtrees_py3dtiles
8+
type: unrestricted
9+
categories:
10+
- Geo Science

0 commit comments

Comments
 (0)