Mercurial > repos > imgteam > bioformats2raw
comparison bf2raw.xml @ 2:51d1460d03e6 draft default tip
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tree/master/tools/bioformats2raw commit d12bb8de65b311ab1c07b69147388a4bd3d9887a
| author | imgteam |
|---|---|
| date | Tue, 20 Jan 2026 11:48:35 +0000 |
| parents | 21fedce225f6 |
| children |
comparison
equal
deleted
inserted
replaced
| 1:21fedce225f6 | 2:51d1460d03e6 |
|---|---|
| 1 <tool id="bf2raw" name="Convert to OME-Zarr" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="24.0"> | 1 <tool id="bf2raw" name="Convert to OME-Zarr" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="24.0"> |
| 2 <description>with Bio-Formats</description> | 2 <description>with Bio-Formats</description> |
| 3 <macros> | 3 <macros> |
| 4 <import>creators.xml</import> | 4 <import>creators.xml</import> |
| 5 <token name="@TOOL_VERSION@">0.7.0</token> | 5 <token name="@TOOL_VERSION@">0.7.0</token> |
| 6 <token name="@VERSION_SUFFIX@">4</token> | 6 <token name="@VERSION_SUFFIX@">5</token> |
| 7 </macros> | 7 </macros> |
| 8 <creator> | 8 <creator> |
| 9 <expand macro="creators/bugraoezdemir"/> | 9 <expand macro="creators/bugraoezdemir"/> |
| 10 <expand macro="creators/bmcv"/> | 10 <expand macro="creators/bmcv"/> |
| 11 <expand macro="creators/kostrykin"/> | 11 <expand macro="creators/kostrykin"/> |
| 20 <requirements> | 20 <requirements> |
| 21 <container type="docker">quay.io/biocontainers/mulled-v2-ea5a9ffc5f22f92a78f0cd24aac43eb503c0e523:4c010c399f61cde74da64343581999ada3e11e24-0</container> | 21 <container type="docker">quay.io/biocontainers/mulled-v2-ea5a9ffc5f22f92a78f0cd24aac43eb503c0e523:4c010c399f61cde74da64343581999ada3e11e24-0</container> |
| 22 </requirements> | 22 </requirements> |
| 23 <command><![CDATA[ | 23 <command><![CDATA[ |
| 24 | 24 |
| 25 ## Create final output directory | |
| 25 if [ ! -d $output.files_path ]; then | 26 if [ ! -d $output.files_path ]; then |
| 26 mkdir -p $output.files_path; | 27 mkdir -p $output.files_path; |
| 27 fi; | 28 fi; |
| 28 | 29 |
| 30 ## Use an intermediate output directory if only a subgroup of the Zarr is wanted for export | |
| 31 #if str($io_options.subgroup) == '' | |
| 32 ln -s $output.files_path ./output; | |
| 33 #else | |
| 34 mkdir ./output; | |
| 35 #end if | |
| 36 | |
| 37 ## Input symlink to obscure the dataset directory for reproducible results | |
| 29 ln -s ${io_options.input} ./input; | 38 ln -s ${io_options.input} ./input; |
| 30 | 39 |
| 31 export _JAVA_OPTIONS="-Djava.io.tmpdir=/usr/local/man/" && bioformats2raw ./input $output.files_path | 40 export _JAVA_OPTIONS="-Djava.io.tmpdir=/usr/local/man/" && bioformats2raw ./input ./output/. |
| 32 #if $bf2raw_params.multiscales['options'] == 'auto': | 41 #if $bf2raw_params.multiscales['options'] == 'auto': |
| 33 --target-min-size $bf2raw_params.multiscales.min_xy_size | 42 --target-min-size $bf2raw_params.multiscales.min_xy_size |
| 34 #elif $bf2raw_params.multiscales['options'] == 'manual': | 43 #elif $bf2raw_params.multiscales['options'] == 'manual': |
| 35 --resolutions $bf2raw_params.resolutions | 44 --resolutions $bf2raw_params.resolutions |
| 36 #end if | 45 #end if |
| 46 #if not str($bf2raw_params.dimension_order) == 'keep input order': | 55 #if not str($bf2raw_params.dimension_order) == 'keep input order': |
| 47 --dimension-order $bf2raw_params.dimension_order | 56 --dimension-order $bf2raw_params.dimension_order |
| 48 #end if | 57 #end if |
| 49 --overwrite &> /dev/null; | 58 --overwrite &> /dev/null; |
| 50 | 59 |
| 60 ## Optionally, export a subgroup of the Zarr | |
| 51 #if str($io_options.subgroup) != '' | 61 #if str($io_options.subgroup) != '' |
| 52 mv ${output.files_path}/${io_options.subgroup} ./subdir; | 62 mv "./output/${io_options.subgroup}"/* "./output/${io_options.subgroup}"/.* "${output.files_path}/"; |
| 53 mv ${output.files_path}/OME ./subdir/OME; | 63 mv "./output/OME" "${output.files_path}/OME"; |
| 54 rm -rf ${output.files_path}; | |
| 55 mv ./subdir ${output.files_path}; | |
| 56 #end if | 64 #end if |
| 57 | 65 |
| 58 ]]></command> | 66 ]]></command> |
| 59 <inputs> | 67 <inputs> |
| 60 <section name="io_options" title="Input/Output" expanded="true"> | 68 <section name="io_options" title="Input/Output" expanded="true"> |
| 61 <param name="input" type="data" | 69 <param name="input" type="data" |
| 62 format="scn,ndpi,tf8,vms,xml,pcx,binary,hdr,mov,psd,pbm,nrrd,tiff,pgm,ppm,txt,tf2,zip,top,gif,wav,btf,bmp,png,gz,cif,fli,btf,jpg,avi,html,sif,csv,ome.tiff,par,fits,jp2,eps,nhdr,svs,mrc" | 70 format="scn,ndpi,tf8,vms,xml,pcx,binary,hdr,mov,psd,pbm,nrrd,tiff,pgm,ppm,txt,tf2,zip,top,gif,wav,btf,bmp,png,gz,cif,fli,btf,jpg,avi,html,sif,csv,ome.tiff,par,fits,jp2,eps,nhdr,svs,mrc" |
| 63 label="Input image"/> | 71 label="Input image"/> |
| 64 <param name="subgroup" type="text" value="" optional="true" label="Select a subgroup" | 72 <param name="subgroup" type="text" value="" optional="true" label="Select a subgroup" |
| 65 help='Only export a subgroup of the Zarr dataset (e.g., use "<tt>0</tt>" to only export the <tt>/0</tt> subgroup of the Zarr). Leave empty to export the full Zarr.'/> | 73 help='Only export a subgroup of the Zarr dataset (e.g., use "<tt>0</tt>" to only export the <tt>/0</tt> subgroup of the Zarr). Leave empty to export the full Zarr.'> |
| 74 <validator type="regex" message="Subgroup name cannot be empty." negate="true">.*//.*</validator> | |
| 75 <validator type="expression" message='Subgroup name must not start with a "/"' negate="true">value.startswith("/")</validator> | |
| 76 <validator type="expression" message='Subgroup name must not end with a "/"' negate="true">value.endswith("/")</validator> | |
| 77 </param> | |
| 66 </section> | 78 </section> |
| 67 <section name="bf2raw_params" title="Parameters fed to file conversion module"> | 79 <section name="bf2raw_params" title="Parameters fed to file conversion module"> |
| 68 <conditional name="multiscales" > | 80 <conditional name="multiscales" > |
| 69 <param name="options" type="select" multiple="false" label="How should the number of resolutions be determined?" > | 81 <param name="options" type="select" multiple="false" label="How should the number of resolutions be determined?" > |
| 70 <option value="auto" selected="true">auto</option> | 82 <option value="auto" selected="true">auto</option> |
