|
4
|
1 <?xml version="1.0"?>
|
|
8
|
2 <tool id="import_local_file" name="Import local file" version="1.2.0">
|
|
1
|
3 <description>from a local filesystem</description>
|
|
0
|
4 <command interpreter="sh">import_local_file.sh '$filepath' $output $userEmail</command>
|
|
|
5 <inputs>
|
|
8
|
6 <param name="filepath" type="text" size="100" label="Absolute file path" value="/home/foo/blah">
|
|
|
7 <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>
|
|
|
8 </param>
|
|
|
9
|
|
0
|
10 </inputs>
|
|
|
11 <outputs>
|
|
|
12 <data format="txt" name="output" label="local import: $filepath" />
|
|
|
13 </outputs>
|
|
|
14 <help>
|
|
|
15
|
|
|
16 .. class:: infomark
|
|
|
17
|
|
|
18 **Copying files**
|
|
|
19
|
|
8
|
20 This tool will allow you to upload a single file that is locally available on Helix or Biowulf. There is no browse function,
|
|
0
|
21 however, so you will need to give the full path name. If you have permission to read the file, Galaxy can import the file.
|
|
|
22
|
|
|
23 .. class:: warningmark
|
|
|
24
|
|
|
25 **Important Notes**
|
|
|
26
|
|
|
27 - The file path must be a file, not a directory
|
|
|
28 - You must give the fullpath to the file (/home/user/myfile.txt, not ./myfile.txt)
|
|
|
29 - You must have permission to read the file
|
|
8
|
30 - Only /home or /data directories are allowed
|
|
|
31 - The files must be on Helix or Biowulf! Use 'Upload File' for all other files!
|
|
0
|
32
|
|
|
33 -----
|
|
|
34
|
|
|
35 **Example**
|
|
|
36
|
|
|
37 - /home/user/bamfiles/abc123.bam
|
|
|
38 - /data/anotheruser/data/good_data/very_good_data.txt
|
|
|
39
|
|
|
40 </help>
|
|
|
41 </tool>
|