|
5
|
1 <?xml version="1.0"?>
|
|
8
|
2 <tool id="export_local_file" name="Export dataset" version="1.2.0">
|
|
0
|
3 <description>to a local filesytem</description>
|
|
|
4 <command interpreter="sh">export_local_file.sh $input '$filepath' $userEmail $output</command>
|
|
|
5 <inputs>
|
|
|
6 <param name="input" type="data" label="Dataset"/>
|
|
8
|
7 <param name="filepath" type="text" size="100" label="Absolute file path" value="/home/foo/blah">
|
|
|
8 <validator type="expression" message="The path must begin with either /home or /data">value.lower()[0:5] == '/home' or value.lower()[0:5] == '/data'</validator>
|
|
|
9 </param>
|
|
0
|
10 </inputs>
|
|
|
11 <outputs>
|
|
|
12 <data format="txt" name="output" label="local export: $filepath" />
|
|
|
13 </outputs>
|
|
|
14 <help>
|
|
|
15
|
|
|
16 .. class:: infomark
|
|
|
17
|
|
|
18 **Copying files**
|
|
|
19
|
|
8
|
20 This tool will allow you to export a single file from Galaxy to a local filesystem on Helix or Biowulf.
|
|
0
|
21 You must have permission to write the file to the given directory, and the file must not yet exist. This tool will
|
|
|
22 not overwrite a pre-existing file.
|
|
|
23
|
|
|
24 .. class:: warningmark
|
|
|
25
|
|
|
26 **Important Notes**
|
|
|
27
|
|
|
28 - The file path must be a file, not a directory
|
|
|
29 - You must give the fullpath to the file (/home/user/myfile.txt, not ./myfile.txt)
|
|
|
30 - You must have permission to write the file in the given directory
|
|
8
|
31 - Only /home or /data directories are allowed.
|
|
|
32 - The directories must exist on Helix or Biowulf!
|
|
0
|
33
|
|
|
34 -----
|
|
|
35
|
|
|
36 **Example**
|
|
|
37
|
|
|
38 - /home/user/bamfiles/abc123.bam
|
|
|
39 - /data/anotheruser/data/good_data/very_good_data.txt
|
|
|
40
|
|
|
41 </help>
|
|
|
42 </tool>
|