annotate biapy.xml @ 0:e434d9b9cd13 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
author iuc
date Thu, 09 Oct 2025 07:42:36 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
1 <tool id="biapy" name="Build a workflow with BiaPy" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@" license="MIT">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
2 <description>Accessible deep learning on bioimages</description>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
3 <macros>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
4 <import>macros.xml</import>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
5 </macros>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
6 <edam_topics>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
7 <edam_topic>topic_3474</edam_topic> <!-- Machine learning -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
8 <!-- <edam_topic>topic_3753</edam_topic> Deep learning (not in EDAM) -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
9 </edam_topics>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
10 <edam_operations>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
11 <edam_operation>operation_2945</edam_operation> <!-- Image segmentation -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
12 <edam_operation>operation_3925</edam_operation> <!-- Object detection -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
13 <edam_operation>operation_3443</edam_operation> <!-- Image denoising -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
14 <!-- <edam_operation>Single image super-resolution (not in EDAM)</edam_operation> -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
15 <edam_operation>operation_2946</edam_operation> <!-- Image restoration -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
16 <!-- <edam_operation>Image-to-image translation (not in EDAM)</edam_operation> -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
17 <!-- <edam_operation>operation_3442</edam_operation> Image classification -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
18 <!-- <edam_operation>Self-supervision learning (not in EDAM)</edam_operation> -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
19 <edam_operation>operation_2944</edam_operation> <!-- Image analysis -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
20 </edam_operations>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
21 <expand macro="requirements" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
22 <required_files>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
23 <include path="create_yaml.py" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
24 </required_files>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
25 <expand macro="creators" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
26 <command detect_errors="exit_code">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
27 <![CDATA[
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
28 set -xeuo pipefail &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
29 export OPENCV_IO_ENABLE_OPENEXR=0 &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
30
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
31 ## Define some useful variables
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
32 #set $train_raw_dir = './dataset/train/raw'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
33 #set $train_gt_dir = './dataset/train/gt'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
34 #set $test_raw_dir = './dataset/test/raw'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
35 #set $test_gt_dir = './dataset/test/gt'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
36 #set $generated_cfg = 'generated_config.yaml'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
37 #set $checkpoint_dir = './output/my_experiment/checkpoints'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
38 #set $checkpoint_file = $checkpoint_dir + '/checkpoint.safetensors'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
39 #set $common_yaml_args = " --out_config_path '%s' --biapy_version '@TOOL_VERSION@'" % $generated_cfg
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
40
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
41 ## Decide phase and GT availability without touching missing names
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
42 #set $selected_phase = 'train_test'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
43 #set $test_gt_avail = 'test_gt_no'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
44
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
45 #if $mode_selection['selected_mode'] == 'create_new_cfg'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
46 #set $selected_phase = $mode_selection['phase_decision']['phases']
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
47 #if $selected_phase in ['train_test', 'test']
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
48 #set $test_gt_avail = (
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
49 $mode_selection['phase_decision'].get('test_sec') and
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
50 $mode_selection['phase_decision']['test_sec'].get('gt_test')
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
51 ) and 'test_gt_yes' or 'test_gt_no'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
52 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
53 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
54
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
55 ## Define output directory
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
56 mkdir -p output &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
57
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
58 ## Define checkpoint directory in case it is needed
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
59 mkdir -p '$checkpoint_dir' &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
60
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
61 ########## Reuse provided yaml file and update paths ##########
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
62 #if $mode_selection.selected_mode == 'custom_cfg':
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
63 #if $mode_selection.get('test_sec') and $mode_selection['test_sec'].get('gt_test'):
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
64 #set $test_gt_avail = 'test_gt_yes'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
65 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
66 #set $mpath = $mode_selection.get('biapy_model_path')
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
67 #if $mpath and str($mpath) not in ['None', '']
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
68 ln -fs '$mpath' ${checkpoint_file} &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
69 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
70 python '$__tool_directory__/create_yaml.py'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
71 --input_config_path '$mode_selection.config_path'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
72 ${common_yaml_args}
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
73 ## Optionally override data paths with the staged dirs if user provided inputs
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
74 #if $selected_phase in ['train_test', 'train'] and $mode_selection.get('train_sec') and $mode_selection['train_sec'].get('raw_train')
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
75 --raw_train '$train_raw_dir'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
76 #if $mode_selection['train_sec'].get('gt_train')
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
77 --gt_train '$train_gt_dir'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
78 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
79 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
80 #if $selected_phase in ['train_test', 'test'] and $mode_selection.get('test_sec') and $mode_selection['test_sec'].get('raw_test')
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
81 --test_raw_path '$test_raw_dir'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
82 #if $test_gt_avail == 'test_gt_yes' and $mode_selection['test_sec'].get('gt_test')
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
83 --test_gt_path '$test_gt_dir'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
84 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
85 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
86 #if $mpath and str($mpath) not in ['None', '']
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
87 --model '$checkpoint_file'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
88 --model_source 'biapy'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
89 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
90 #else
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
91 ########## Create new yaml file ##########
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
92 #set $pm = $mode_selection["pretrained_model"]
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
93 python '$__tool_directory__/create_yaml.py'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
94 --new_config
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
95 ${common_yaml_args}
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
96 --workflow '$mode_selection["workflow"]'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
97 --dims '$mode_selection["dimensionality"]["is_3d"]'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
98 --obj_slices '$mode_selection["dimensionality"].get("obj_slices")'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
99 --obj_size '$mode_selection["obj_size"]'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
100 --img_channel '$mode_selection["img_channel"]'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
101 #if $pm["model_source"] == 'biapy'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
102 --model_source 'biapy'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
103 #elif $pm["model_source"] == 'biapy_pretrained'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
104 --model '$checkpoint_file'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
105 --model_source 'biapy'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
106 #elif $pm.get("model_source") == 'bmz_torchvision' and $pm.get("bmz_torchvision_model")
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
107 #set $bt = $pm["bmz_torchvision_model"].get("bmz_or_torchvision", "")
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
108 #if $bt == 'bmz'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
109 --model_source 'bmz'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
110 --model '$pm["bmz_torchvision_model"].get("bmz_model_name", "")'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
111 #else
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
112 --model_source 'torchvision'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
113 --model '$pm["bmz_torchvision_model"].get("torchvision_model_name", "")'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
114 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
115 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
116 #if $selected_phase == 'train_test'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
117 --raw_train '$train_raw_dir'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
118 --gt_train '$train_gt_dir'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
119 --test_raw_path '$test_raw_dir'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
120 #if $test_gt_avail == 'test_gt_yes'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
121 --test_gt_path '$test_gt_dir'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
122 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
123 #elif $selected_phase == 'train'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
124 --raw_train '$train_raw_dir'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
125 --gt_train '$train_gt_dir'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
126 #elif $selected_phase == 'test'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
127 --test_raw_path '$test_raw_dir'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
128 #if $test_gt_avail == 'test_gt_yes'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
129 --test_gt_path '$test_gt_dir'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
130 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
131 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
132
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
133 #if $pm["model_source"] == 'biapy_pretrained'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
134 && ln -fs '$pm["biapy_model_path"]' ${checkpoint_file}
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
135 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
136 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
137
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
138 &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
139
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
140 ## Copy the training data
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
141 #if $selected_phase in ['train_test', 'train']:
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
142 mkdir -p '$train_raw_dir' &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
143 #for $i, $image in enumerate($raw_train)
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
144 #set $ext = $image.ext
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
145 ln -s '$image' ${train_raw_dir}/training-${i}.${ext} &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
146 #end for
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
147 mkdir -p '$train_gt_dir' &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
148 #for $i, $image in enumerate($gt_train)
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
149 #set $ext = $image.ext
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
150 ln -s '$image' ${train_gt_dir}/training-gt-${i}.${ext} &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
151 #end for
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
152 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
153
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
154 ## Copy the test data
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
155 #if $selected_phase in ['train_test', 'test']:
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
156 mkdir -p '$test_raw_dir' &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
157 #for $i, $image in enumerate($raw_test)
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
158 #set $ext = $image.ext
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
159 ln -s '$image' ${test_raw_dir}/test-${i}.${ext} &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
160 #end for
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
161 #if $test_gt_avail == 'test_gt_yes':
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
162 mkdir -p '$test_gt_dir' &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
163 #for $i, $image in enumerate($gt_test)
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
164 #set $ext = $image.ext
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
165 ln -s '$image' ${test_gt_dir}/test-gt-${i}.${ext} &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
166 #end for
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
167 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
168 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
169
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
170 ########## Run BiaPy ##########
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
171 biapy
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
172 --config '$generated_cfg'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
173 --result_dir './output'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
174 --name 'my_experiment'
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
175 --run_id 1
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
176 --gpu \${GALAXY_BIAPY_GPU_STRING:-""}
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
177
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
178 #set $outs = $selected_outputs or []
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
179
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
180 ## Copy the selected output to the correct place
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
181 #if $selected_phase in ['train_test', 'test']:
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
182
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
183 #if 'raw' in $outs
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
184 ########
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
185 ## RAW #
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
186 ########
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
187 && mkdir -p raw && {
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
188 ## Instance segmentation
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
189 if [ -d "output/my_experiment/results/my_experiment_1/per_image_instances" ]; then
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
190 mv output/my_experiment/results/my_experiment_1/per_image_instances/* raw/;
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
191
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
192 ## Instance segmentation
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
193 elif [ -d "output/my_experiment/results/my_experiment_1/full_image_instances" ]; then
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
194 mv output/my_experiment/results/my_experiment_1/full_image_instances/* raw/;
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
195
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
196 ## Semantic segmentation
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
197 elif [ -d "output/my_experiment/results/my_experiment_1/per_image_binarized" ]; then
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
198 mv output/my_experiment/results/my_experiment_1/per_image_binarized/* raw/;
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
199
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
200 ## Semantic segmentation
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
201 elif [ -d "output/my_experiment/results/my_experiment_1/full_image_binarized" ]; then
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
202 mv output/my_experiment/results/my_experiment_1/full_image_binarized/* raw/;
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
203
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
204 ## I2I
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
205 elif [ -d "output/my_experiment/results/my_experiment_1/full_image" ]; then
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
206 mv output/my_experiment/results/my_experiment_1/full_image/* raw/;
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
207
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
208 ## Detection
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
209 elif [ -d "output/my_experiment/results/my_experiment_1/per_image_local_max_check" ]; then
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
210 mv output/my_experiment/results/my_experiment_1/per_image_local_max_check/* raw/;
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
211
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
212 ## Detection, Denoising, I2I, SSL, SR
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
213 elif [ -d "output/my_experiment/results/my_experiment_1/per_image" ]; then
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
214 mv output/my_experiment/results/my_experiment_1/per_image/* raw/;
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
215
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
216 ## Classification
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
217 elif [ -f "output/my_experiment/results/my_experiment_1/predictions.csv" ]; then
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
218 mv output/my_experiment/results/my_experiment_1/predictions.csv raw/;
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
219 fi;
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
220 }
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
221 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
222
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
223 #if 'post_proc' in $outs
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
224 ##############
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
225 ## POST-PROC #
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
226 ##############
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
227 && mkdir -p post_proc && {
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
228 ## Instance segmentation
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
229 if [ -d "output/my_experiment/results/my_experiment_1/per_image_post_processing" ]; then
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
230 mv output/my_experiment/results/my_experiment_1/per_image_post_processing/* post_proc/;
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
231
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
232 ## Instance segmentation
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
233 elif [ -d "output/my_experiment/results/my_experiment_1/full_image_post_processing" ]; then
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
234 mv output/my_experiment/results/my_experiment_1/full_image_post_processing/* post_proc/;
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
235
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
236 ## Detection
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
237 elif [ -d "output/my_experiment/results/my_experiment_1/per_image_local_max_check_post_proc" ]; then
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
238 mv output/my_experiment/results/my_experiment_1/per_image_local_max_check_post_proc/* post_proc/;
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
239 fi;
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
240 }
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
241 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
242
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
243 #if 'metrics' in $outs and $test_gt_avail == "test_gt_yes":
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
244 && mkdir -p metrics &&
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
245 mv output/my_experiment/results/my_experiment_1/test_results_metrics.csv metrics/ 2>/dev/null || true
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
246 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
247 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
248 #if $selected_phase in ['train_test', 'train']:
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
249 #if 'tcharts' in $outs
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
250 && mkdir -p train_charts
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
251 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
252 #if 'tlogs' in $outs
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
253 && mkdir -p train_logs
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
254 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
255 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
256 #if 'checkpoint' in $outs
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
257 && mkdir -p checkpoints
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
258 #end if
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
259 ]]>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
260 </command>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
261
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
262 <inputs>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
263 <conditional name="mode_selection">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
264 <param name="selected_mode" type="select" label="Do you have a configuration file?">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
265 <option value="custom_cfg" selected="true">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
266 Yes, I already have one and I want to run BiaPy directly.
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
267 </option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
268 <option value="create_new_cfg">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
269 No, I want to create one from scratch.
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
270 </option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
271 </param>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
272 <when value="custom_cfg">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
273 <param name="config_path" type="data" format="yaml" optional="false" label="Select a configuration file" help="Input configuration file"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
274 <param name="biapy_model_path" type="data" format="safetensors" optional="true" label="Select the model checkpoint (if needed)" help="Path to a pre-trained model checkpoint (.safetensors) generated by BiaPy. Use this only if 'MODEL.LOAD_CHECKPOINT' is set to 'True' in your configuration."/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
275 <section name="train_sec" title="If train is enabled select the training images">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
276 <!-- Q9 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
277 <expand macro="train_raw_param_opt"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
278 <!-- Q10 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
279 <expand macro="train_gt_param_opt"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
280 </section>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
281 <section name="test_sec" title="If test is enabled select the test images">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
282 <!-- Q11 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
283 <expand macro="test_raw_param_opt"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
284 <!-- Q13 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
285 <expand macro="test_gt_param_optional"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
286 </section>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
287 </when>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
288 <when value="create_new_cfg">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
289 <conditional name="dimensionality">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
290 <!-- Q1 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
291 <param name="is_3d" type="select" label="Are your images in 3D?" help="Select the type of images you will use: 'No' = 2D images (e.g. (512, 1024, 2)); 'Yes' = 3D images (e.g. (400, 400, 50, 1)); 'No, but output as 3D stack' = process 2D images and combine them into a 3D stack after inference, useful if 2D slices form a larger 3D volume.">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
292 <option value="2d" selected="true">No</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
293 <option value="3d">Yes</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
294 <option value="2d_stack">No, but I would like to have a 3D stack output</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
295 </param>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
296 <when value="3d">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
297 <!-- Q7 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
298 <param name="obj_slices" type="select" label="How many slices can an object be represented in?" help="This parameter defines the approximate size of the objects of interest along the Z axis. For example, in nucleus segmentation it refers to how many slices a nucleus spans in the stack; knowing this helps set an appropriate value.">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
299 <option value="1-5" selected="true">1-5 slices</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
300 <option value="5-10">5-10 slices</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
301 <option value="10-20">10-20 slices</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
302 <option value="20-60">20-60 slices</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
303 <option value="60+">More than 60 slices</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
304 </param>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
305 </when>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
306 <when value="2d"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
307 <when value="2d_stack"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
308 </conditional>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
309 <!-- Q6 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
310 <param name="obj_size" type="select" label="What is the average object width/height in pixels?" help="This parameter defines the approximate size of the objects of interest in your images; for example, in nucleus segmentation it refers to the typical size of nuclei, and only a rough estimation is needed.">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
311 <option value="0-25" selected="true">0-25 px</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
312 <option value="25-100">25-100 px</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
313 <option value="100-200">100-200 px</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
314 <option value="200-500">200-500 px</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
315 <option value="500+">More than 500 px</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
316 </param>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
317 <param name="img_channel" type="integer" value="1" min="1" max="10" label="Input the number of channels of the images" help="This parameter specifies the number of channels in your images; for example, use 3 for RGB images or 1 for grayscale, so the model can correctly interpret the input data."/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
318
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
319 <!-- Q2 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
320 <param name="workflow" type="select" label="Do you want to:" help="Select a workflow to run; see https://biapy.readthedocs.io/en/latest/get_started/select_workflow.html for further explanation.">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
321 <option value="semantic" selected="true">Generate masks of different (or just one) objects/regions within the image</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
322 <option value="instance">Generate masks for each object in the image</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
323 <option value="detection">Identify and count roughly circular objects in the images, without needing an exact outline around each one</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
324 <option value="denoising">Clean noisy images</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
325 <option value="sr">Upsample images into higher resolution</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
326 <option value="cls">Assign a label to each image</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
327 <option value="sr2">Restore a degraded image</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
328 <option value="i2i">Generate new images based on an input one</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
329 </param>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
330
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
331 <conditional name="pretrained_model">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
332 <!-- Q3 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
333 <param name="model_source" type="select" label="Do you want to use a pre-trained model?" help="This parameter defines how the deep learning model will be built: (1) build from scratch based on the workflow and image size, (2) load a model previously trained in BiaPy (checkpoint .safetensors in the results/checkpoints folder), or (3) load a pre-trained model from external sources such as the BioImage Model Zoo or Torchvision; training requires labeled data, but pre-trained models can save time and improve results if they match your task.">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
334 <option value="biapy" selected="true">No, I want to build a model from scratch</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
335 <option value="biapy_pretrained">Yes, I have a model previously trained in BiaPy</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
336 <option value="bmz_torchvision">Yes, I want to check if there is a pre-trained model I can use</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
337 </param>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
338 <when value="biapy_pretrained">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
339 <!-- Q4 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
340 <param name="biapy_model_path" type="data" format="data" optional="false" label="Select the model trained with BiaPy before" help="Select a pre-trained BiaPy model checkpoint (.safetensors) to use for inference or to resume training. Checkpoints are typically generated by previous BiaPy training runs and appear in your Galaxy history as output datasets."/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
341 </when>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
342 <when value="bmz_torchvision">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
343 <!-- Q5 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
344 <conditional name="bmz_torchvision_model">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
345 <param name="bmz_or_torchvision" type="select" label="Which is the source of the model?" help="Enter the source of the model, whether if it is available through the BioImage Model Zoo or TorchVision">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
346 <option value="bmz" selected="true">BioImage Model Zoo</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
347 <option value="torchvision">TorchVision</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
348 </param>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
349 <when value="bmz">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
350 <param name="bmz_model_name" type="text" optional="false" value="sensible-cat" label="BioImage Model Zoo model name" help="Enter the name of a pre-trained model from the BioImage Model Zoo (https://bioimage.io/#/models); filter by the BiaPy icon and ensure the model matches your dimensionality (2D/3D) and task (e.g. semantic segmentation).">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
351 <validator type="regex" message="Use an adjective-noun pattern like 'sensible-cat' (letters and dashes only).">^[A-Za-z]+(?:-[A-Za-z]+)+$</validator>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
352 </param>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
353 </when>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
354 <when value="torchvision">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
355 <param name="torchvision_model_name" type="text" optional="false" label="TorchVision model name" help="Enter the name of a pre-trained model from TorchVision (see https://docs.pytorch.org/vision/0.21/models.html#general-information-on-pre-trained-weights), e.g. 'alexnet' for classification.">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
356 <validator type="regex" message="Only letters, digits, underscores and dots; must start with a letter.">^[a-zA-Z][a-zA-Z0-9_\.]*$</validator>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
357 </param>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
358 </when>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
359 </conditional>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
360 </when>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
361 <when value="biapy"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
362 </conditional>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
363
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
364 <conditional name="phase_decision">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
365 <!-- Q8 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
366 <param name="phases" type="select" label="What do you want to do?" help="Select which workflow phases to run: training (fit the model to labeled data) and/or testing (inference/prediction on new images using the trained model).">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
367 <option value="train_test" selected="true">Train and test a model</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
368 <option value="train">Train a model</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
369 <option value="test">Test a model</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
370 </param>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
371 <when value="train_test">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
372 <section name="train_sec" title="Train data" expanded="True">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
373 <!-- Q9 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
374 <expand macro="train_raw_param"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
375 <!-- Q10 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
376 <expand macro="train_gt_param"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
377 </section>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
378 <section name="test_sec" title="Test data" expanded="True">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
379 <!-- Q11 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
380 <expand macro="test_raw_param"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
381 <!-- Optional test GT -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
382 <expand macro="test_gt_param_optional"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
383 </section>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
384 </when>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
385
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
386 <when value="train">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
387 <section name="train_sec" title="Train data" expanded="True">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
388 <!-- Q9 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
389 <expand macro="train_raw_param"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
390 <!-- Q10 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
391 <expand macro="train_gt_param"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
392 </section>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
393 </when>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
394
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
395 <when value="test">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
396 <section name="test_sec" title="Test data" expanded="True">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
397 <!-- Q11 -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
398 <expand macro="test_raw_param"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
399 <!-- Optional test GT -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
400 <expand macro="test_gt_param_optional"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
401 </section>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
402 </when>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
403 </conditional>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
404 </when>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
405 </conditional>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
406 <param name="selected_outputs" type="select" display="checkboxes" multiple="true" label="Select the outputs" help="Select which outputs to generate from running BiaPy (e.g. predictions, metrics, logs, or intermediate results).">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
407 <option value="raw" selected="true">Test predictions (if exist)</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
408 <option value="post_proc">Post-processed test predictions (if exist)</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
409 <option value="metrics">Evaluation metrics (if exist, on test data)</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
410 <option value="tcharts">Training charts (if exist)</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
411 <option value="tlogs">Training logs (if exist)</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
412 <option value="checkpoint">Model checkpoint</option>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
413 </param>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
414
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
415 </inputs>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
416
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
417 <outputs>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
418 <collection name="predictions_raw" type="list" label="${tool.name} on ${on_string}: Test predictions">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
419 <discover_datasets directory="raw" pattern="(?P&lt;designation&gt;.+)\.tif" format="tif" recurse="false"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
420 <discover_datasets directory="raw" pattern="(?P&lt;designation&gt;.+)\.tiff" format="tiff" recurse="false"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
421 <discover_datasets directory="raw" pattern="(?P&lt;designation&gt;.+)\.csv" format="csv" recurse="false"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
422 <discover_datasets directory="raw" pattern="(?P&lt;designation&gt;.+)\.h5" format="h5" recurse="false"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
423 <filter><![CDATA[
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
424 'raw' in selected_outputs and (
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
425 (mode_selection['selected_mode'] == 'create_new_cfg' and
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
426 mode_selection['phase_decision']['phases'] in ['test','train_test'])
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
427 or
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
428 (mode_selection['selected_mode'] == 'custom_cfg')
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
429 )
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
430 ]]></filter>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
431 </collection>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
432
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
433 <collection name="predictions_post_proc" type="list" label="${tool.name} on ${on_string}: Post-processed test predictions">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
434 <discover_datasets directory="post_proc" pattern="(?P&lt;designation&gt;.+)\.tif" format="tif" recurse="false" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
435 <discover_datasets directory="post_proc" pattern="(?P&lt;designation&gt;.+)\.tiff" format="tiff" recurse="false"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
436 <discover_datasets directory="post_proc" pattern="(?P&lt;designation&gt;.+)\.csv" format="csv" recurse="false"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
437 <discover_datasets directory="post_proc" pattern="(?P&lt;designation&gt;.+)\.h5" format="h5" recurse="false" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
438 <filter><![CDATA[
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
439 'post_proc' in selected_outputs and (
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
440 (mode_selection['selected_mode'] == 'create_new_cfg' and
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
441 mode_selection['phase_decision']['phases'] in ['test','train_test'])
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
442 or
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
443 (mode_selection['selected_mode'] == 'custom_cfg')
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
444 )
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
445 ]]>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
446 </filter>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
447 </collection>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
448
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
449 <collection name="test_metrics" type="list" label="${tool.name} on ${on_string}: Test metrics">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
450 <discover_datasets directory="metrics" pattern="(?P&lt;designation&gt;.+)\.csv" format="csv" recurse="false" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
451 <filter><![CDATA[
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
452 'metrics' in selected_outputs and (
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
453 (mode_selection['selected_mode'] == 'create_new_cfg' and
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
454 mode_selection['phase_decision']['phases'] in ['test','train_test'] and
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
455 mode_selection['phase_decision'].get('test_sec') and
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
456 mode_selection['phase_decision']['test_sec'].get('gt_test'))
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
457 or
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
458 (mode_selection['selected_mode'] == 'custom_cfg')
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
459 )
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
460 ]]>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
461 </filter>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
462 </collection>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
463
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
464 <collection name="train_charts" type="list" label="${tool.name} on ${on_string}: Training charts">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
465 <discover_datasets directory="output/my_experiment/results/my_experiment_1/charts" pattern="(?P&lt;designation&gt;.+)\.png" format="png" recurse="false" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
466 <filter><![CDATA[
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
467 'tcharts' in selected_outputs and (
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
468 (mode_selection['selected_mode'] == 'create_new_cfg' and
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
469 mode_selection['phase_decision']['phases'] in ['train','train_test'])
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
470 or
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
471 (mode_selection['selected_mode'] == 'custom_cfg')
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
472 )
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
473 ]]>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
474 </filter>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
475 </collection>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
476
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
477 <collection name="train_logs" type="list" label="${tool.name} on ${on_string}: Training logs">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
478 <discover_datasets directory="output/my_experiment/train_logs" pattern="(?P&lt;designation&gt;.+)\.txt" format="txt" recurse="false" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
479 <filter><![CDATA[
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
480 'tlogs' in selected_outputs and (
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
481 (mode_selection['selected_mode'] == 'create_new_cfg' and
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
482 mode_selection['phase_decision']['phases'] in ['train','train_test'])
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
483 or
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
484 (mode_selection['selected_mode'] == 'custom_cfg')
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
485 )
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
486 ]]>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
487 </filter>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
488 </collection>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
489
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
490 <collection name="model_checkpoint" type="list" label="${tool.name} on ${on_string}: Model checkpoint">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
491 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.safetensors" format="data" directory="output/my_experiment/checkpoints" recurse="false" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
492 <filter><![CDATA[
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
493 'checkpoint' in selected_outputs
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
494 ]]>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
495 </filter>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
496 </collection>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
497 </outputs>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
498 <tests>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
499 <!-- test1: test with custom cfg -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
500 <test expect_num_outputs="2">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
501 <!-- Choose the conditional branch -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
502 <param name="mode_selection|selected_mode" value="custom_cfg"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
503
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
504 <param name="mode_selection|config_path" value="example.yaml"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
505 <param name="mode_selection|test_sec|raw_test" value="im_0000.png"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
506 <param name="mode_selection|test_sec|gt_test" value="mask_0000.png"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
507 <param name="selected_outputs" value="raw,metrics"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
508 <output_collection name="predictions_raw" type="list" count="1" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
509 <output_collection name="test_metrics" type="list" count="1"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
510 <assert_command>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
511 <has_text text="--config 'generated_config.yaml'"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
512 <has_text text="--result_dir './output'"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
513 <has_text text="--name 'my_experiment'"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
514 <has_text text="--run_id 1"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
515 </assert_command>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
516 </test>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
517
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
518 <!-- test2: create_new_cfg using a model from the zoo -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
519 <test expect_num_outputs="2">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
520 <!-- Top-level branch -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
521 <param name="mode_selection|selected_mode" value="create_new_cfg" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
522
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
523 <!-- Dimensionality (Q1) -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
524 <param name="mode_selection|dimensionality|is_3d" value="2d" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
525
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
526 <!-- Object size (Q6) & channels -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
527 <param name="mode_selection|obj_size" value="0-25" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
528 <param name="mode_selection|img_channel" value="1" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
529
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
530 <!-- Workflow (Q2) -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
531 <param name="mode_selection|workflow" value="semantic" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
532
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
533 <!-- Pretrained model (Q3, Q5) -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
534 <param name="mode_selection|pretrained_model|model_source" value="bmz_torchvision" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
535 <param name="mode_selection|pretrained_model|bmz_torchvision_model|bmz_or_torchvision" value="bmz" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
536 <param name="mode_selection|pretrained_model|bmz_torchvision_model|bmz_model_name" value="sensible-cat" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
537
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
538 <!-- Phase decision (Q8) -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
539 <param name="mode_selection|phase_decision|phases" value="test" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
540
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
541 <!-- Test data (Q11/Q12/Q13) -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
542 <param name="mode_selection|phase_decision|test_sec|raw_test" value="im_0000.png" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
543 <param name="mode_selection|phase_decision|test_sec|gt_test" value="mask_0000.png" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
544
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
545 <!-- Outputs to check -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
546 <param name="selected_outputs" value="raw,metrics" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
547 <output_collection name="predictions_raw" type="list" count="1" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
548 <output_collection name="test_metrics" type="list" count="1"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
549 <assert_command>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
550 <has_text text="--config 'generated_config.yaml'"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
551 <has_text text="--result_dir './output'"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
552 <has_text text="--name 'my_experiment'"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
553 <has_text text="--run_id 1"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
554 </assert_command>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
555 </test>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
556
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
557 <!-- test3: create_new_cfg to use a denoising workflow -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
558 <test expect_num_outputs="1">
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
559 <!-- Top-level branch -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
560 <param name="mode_selection|selected_mode" value="create_new_cfg" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
561
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
562 <!-- Dimensionality (Q1) -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
563 <param name="mode_selection|dimensionality|is_3d" value="2d" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
564
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
565 <!-- Object size (Q6) & channels -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
566 <param name="mode_selection|obj_size" value="25-100" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
567 <param name="mode_selection|img_channel" value="1" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
568
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
569 <!-- Workflow (Q2) -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
570 <param name="mode_selection|workflow" value="denoising" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
571
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
572 <!-- Model from scratch (Q3) -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
573 <param name="mode_selection|pretrained_model|model_source" value="biapy" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
574
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
575 <!-- Phase decision (Q8) -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
576 <param name="mode_selection|phase_decision|phases" value="test" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
577
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
578 <!-- Test data (Q11) -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
579 <param name="mode_selection|phase_decision|test_sec|raw_test" value="im_0000.png" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
580
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
581 <!-- Outputs to check -->
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
582 <param name="selected_outputs" value="raw" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
583 <output_collection name="predictions_raw" type="list" count="1" />
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
584 <assert_command>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
585 <has_text text="--config 'generated_config.yaml'"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
586 <has_text text="--result_dir './output'"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
587 <has_text text="--name 'my_experiment'"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
588 <has_text text="--run_id 1"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
589 </assert_command>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
590 </test>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
591
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
592 </tests>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
593 <help><![CDATA[
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
594 **What it does**
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
595
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
596 This tool runs a BiaPy workflow for image analysis using deep learning models. BiaPy is a bioimage analysis pipeline designed to simplify training, prediction, and evaluation across a variety of tasks such as image segmentation, classification, denoising, and more.
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
597
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
598 ---
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
599
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
600 **Usage**
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
601
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
602 There are two main usage modes for this tool:
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
603
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
604 1. **Using a custom configuration file (YAML)**
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
605 If you already have a BiaPy configuration file, you can upload it directly. The tool will use this configuration without further modification to run the specified BiaPy workflow.
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
606
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
607 2. **Constructing a configuration interactively**
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
608 If you do not have a YAML configuration file, the tool can help you build one by asking a set of guided questions. This includes settings like:
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
609 - Task type (e.g., segmentation, classification)
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
610 - Model architecture
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
611 - Input/output patch sizes
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
612 - Data paths and formats
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
613 - Training parameters (epochs, batch size, etc.)
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
614
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
615 Once these options are specified, the tool generates a valid BiaPy YAML config and proceeds to execute the workflow.
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
616
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
617 ---
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
618
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
619 **Output**
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
620
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
621 The output depends on the chosen workflow and may include:
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
622 - Trained model weights
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
623 - Prediction results
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
624 - Evaluation metrics (if ground truth is available)
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
625 - Log files and training history
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
626
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
627 ---
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
628
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
629 **Tips**
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
630
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
631 - For best results, ensure that your input data format matches what BiaPy expects. Refer to the [BiaPy documentation](https://biapy.readthedocs.io/en/latest/) for details.
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
632 - Use the "interactive mode" if you're new to BiaPy and want guidance on configuration.
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
633 - Advanced users with pre-tuned configs may prefer uploading a YAML directly for faster execution.
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
634
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
635 ---
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
636
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
637 **References**
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
638 - BiaPy landing page: https://biapyx.github.io/
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
639 - BiaPy documentation: https://biapy.readthedocs.io/
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
640 - Galaxy Tool Development: https://galaxyproject.org/tools/
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
641 ]]></help>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
642 <expand macro="citations"/>
e434d9b9cd13 planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/biapy/ commit 66b393a7118c81d86d0fd80780d2bd551c18f3f0
iuc
parents:
diff changeset
643 </tool>