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