comparison biobb_apply_mdae.xml @ 0:0d9f162a7d2c draft default tip

planemo upload for repository https://github.com/galaxycomputationalchemistry/galaxy-tools-compchem/tree/master/tools/biobb_pytorch commit 891dd7da50f0a362969b9fb1cf8db9171b04f78a
author chemteam
date Thu, 05 Dec 2024 17:20:02 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:0d9f162a7d2c
1 <tool id="biobb_pytorch_apply_mdae" name="ApplyMdae" version="@TOOL_VERSION@" profile="22.05">
2 <description>Apply a Molecular Dynamics AutoEncoder (MDAE) PyTorch model.</description>
3 <macros>
4 <token name="@TOOL_VERSION@">4.2.1</token>
5 </macros>
6
7 <requirements>
8 <requirement type="package" version="@TOOL_VERSION@">biobb_pytorch</requirement>
9 </requirements>
10
11 <command detect_errors="exit_code"><![CDATA[
12
13 ln -s '$input_data_npy_path' ./input_data_npy_path.$input_data_npy_path.ext &&
14 ln -s '$input_model_pth_path' ./input_model_pth_path.pth &&
15
16 #if $config_json:
17 ln -s '$config_json' ./config_json.$config_json.ext &&
18 #end if
19
20 apply_mdae
21
22 #if $config_json:
23 --config ./config_json.$config_json.ext
24 #end if
25
26 --input_data_npy_path ./input_data_npy_path.$input_data_npy_path.ext
27 --input_model_pth_path ./input_model_pth_path.pth
28 #if $output_latent_space_npy_path:
29 --output_latent_space_npy_path ./output_latent_space_npy_path.npy
30 #end if
31 --output_reconstructed_data_npy_path ./output_reconstructed_data_npy_path.npy
32 ;
33 ]]>
34 </command>
35
36 <inputs>
37 <param name="input_data_npy_path" type="data" format="npy" optional="False" label="Input NPY file" help="Input data file"/>
38 <param name="input_model_pth_path" type="data" format="pth" optional="False" label="Input PTH file" help="Input model file"/>
39 <param name="config_json" type="data" format="json" optional="True" label="Configuration file" help="File containing tool settings"/>
40 </inputs>
41
42 <outputs>
43 <data format="npy" name="output_reconstructed_data_npy_path" from_work_dir="output_reconstructed_data_npy_path.npy" label="output_reconstructed_data_npy_path" />
44 <data format="npy" name="output_latent_space_npy_path" from_work_dir="output_latent_space_npy_path.npy" label="output_latent_space_npy_path" />
45 </outputs>
46
47 <tests>
48 <test>
49 <param name="config_json" value="config_apply_mdae.json" ftype="json" />
50 <param name="input_data_npy_path" value="train_mdae_traj.npy" ftype="npy" />
51 <param name="input_model_pth_path" value="ref_output_model.pth" />
52 <output name="output_reconstructed_data_npy_path" ftype="npy">
53 <assert_contents>
54 <has_size value="123k" delta="50k"/>
55 </assert_contents>
56 </output>
57 <output name="output_latent_space_npy_path" ftype="npy">
58 <assert_contents>
59 <has_size value="928" delta="200"/>
60 </assert_contents>
61 </output>
62 </test>
63 </tests>
64
65 <help>
66 .. class:: infomark
67
68 Check the syntax for the tool parameters at the original library documentation: https://biobb-pytorch.readthedocs.io/en/latest
69 </help>
70
71 <citations>
72 <citation type="bibtex">
73 @misc{githubbiobb,
74 author = {Andrio P, Bayarri, G., Hospital A, Gelpi JL},
75 year = {2019-21},
76 title = {biobb: BioExcel building blocks },
77 publisher = {GitHub},
78 journal = {GitHub repository},
79 url = {https://github.com/bioexcel/biobb_pytorch},
80 }
81 </citation>
82 <citation type="doi">10.1038/s41597-019-0177-4</citation>
83 </citations>
84 </tool>