Mercurial > repos > bgruening > bia_download
comparison biaftplink.xml @ 0:3085096f2b99 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 04eb6bf2ffe44b87f8c12134ac3bee33656f0673
author | bgruening |
---|---|
date | Wed, 06 Dec 2023 18:14:17 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3085096f2b99 |
---|---|
1 <tool id="bia_download" name="FTP Link for Bioimage Archive" version="@VERSION@+galaxy0" profile="22.05"> | |
2 <description>Download images from Bioimage Archive</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements" /> | |
7 <command detect_errors="aggressive"> | |
8 <![CDATA[ | |
9 wget -r 'ftp://ftp.ebi.ac.uk/biostudies/$mode/$path'/Files; | |
10 #if '$ftp_output' | |
11 #set study = $path.split('/')[-1].rstrip('/') | |
12 curl https://www.ebi.ac.uk/biostudies/api/v1/studies/$study/info -s |jq -r .ftpLink >>ftpLink.txt | |
13 #end if | |
14 ]]> | |
15 </command> | |
16 <inputs> | |
17 <param name="mode" type="text" label="Storage mode" help="The storage mode, can be either nfs or fire."/> | |
18 <param name="path" type="text" label="The path of accession. e.g. S-BIAD/570/S-BIAD570 "/> | |
19 <param name="ftplink_output" type="boolean" label="Generate FTP links?" help="If set, a file containing FTP links associated with the accession will be generated." /> | |
20 </inputs> | |
21 <outputs> | |
22 <data name="images" format="tiff"> | |
23 <discover_datasets pattern="__name_and_ext__" format="tif,tiff" directory="ftp.ebi.ac.uk" visible="true" recurse="true" /> | |
24 </data> | |
25 <data format="txt" name="ftplinks" from_work_dir="ftpLink.txt" label="FTP Links"> | |
26 <filter>ftplink_output</filter> | |
27 </data> | |
28 </outputs> | |
29 <tests> | |
30 <test expect_num_outputs='1'> | |
31 <param name="mode" value="fire" /> | |
32 <param name="path" value="S-BIAD/961/S-BIAD961" /> | |
33 <param name="ftplink_output" value="False" /> | |
34 <output name="images"> | |
35 <discovered_dataset designation="Study_Component-4_mznanog_mCherry-AAT" ftype="tif"> | |
36 <assert_contents><has_size value="14092624" /></assert_contents> | |
37 </discovered_dataset> | |
38 </output> | |
39 </test> | |
40 <test expect_num_outputs='2'> | |
41 <param name="mode" value="fire" /> | |
42 <param name="path" value="S-BIAD/961/S-BIAD961" /> | |
43 <param name="ftplink_output" value="True" /> | |
44 <output name="images"> | |
45 <discovered_dataset designation="Study_Component-4_mznanog_mCherry-AAT" ftype="tif"> | |
46 <assert_contents><has_size value="14092624" /></assert_contents> | |
47 </discovered_dataset> | |
48 </output> | |
49 <output name="ftplinks" ftype="txt" file="ftpLink.txt" lines_diff="0" /> | |
50 </test> | |
51 </tests> | |
52 <help> | |
53 <![CDATA[ | |
54 **What it does** | |
55 This tool downloads images from the Bioimage Archive and optionally outputs FTP links associated with the input accession. | |
56 ]]> | |
57 </help> | |
58 <expand macro="citations" /> | |
59 </tool> |