annotate p_chunks.xml @ 0:f45c65e3fd18 draft

Uploaded
author greg
date Tue, 10 Jan 2023 20:40:45 +0000
parents
children db50fb3faffc
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
1 <tool id="p_chunks" name="p_chunks" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
2 <description></description>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
3 <macros>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
4 <import>macros.xml</import>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
5 </macros>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
6 <expand macro="requirements"/>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
8 #import os
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
9
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
10 #set plasmid_db_name = $os.path.join($plasmid_database.extra_files_path, 'blastdb')
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
11
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
12 mkdir 'output_dir' &&
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
13
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
14 export BLASTDB='$plasmid_database.extra_files_path' &&
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
15 Rscript '${__tool_directory__}/p_chunks.R'
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
16 --plasmid_psl '$plasmid_psl'
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
17 --plasmid_database '$plasmid_db_name'
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
18 --no_amr
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
19 --no_inc
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
20 --output 'output_dir'
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
21 --threads \${GALAXY_SLOTS:-4}
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
22 && cat `readlink output_dir/plasmids.tsv` > '$output_plasmids'
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
23 ]]></command>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
24 <inputs>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
25 <param argument="--plasmid_psl" type="data" format="psl" label="PSL file"/>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
26 <param argument="--plasmid_database" type="data" format="blastdbn" label="BLAST database of the plasmid sequences" help="Plasmid sequences are typically contianed in file named plasmids_and_vectors.fasta"/>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
27 </inputs>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
28 <outputs>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
29 <data name="output_plasmids" format="tsv" label="${tool.name} on ${on_string} (plasmids)"/>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
30 </outputs>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
31 <tests>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
32 <!-- Tests are not possible due to file size requirements -->
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
33 </tests>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
34 <help>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
35 **What it does**
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
36
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
37 Accepts a PSL file and a BLAST database of the associated plasmid sequences and produces a tabular file containing query name,
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
38 plasmid name, plasmid accession, query size, aligned bases, plasmid size and missing plasmids.
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
39 </help>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
40 <expand macro="citations"/>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
41 </tool>
f45c65e3fd18 Uploaded
greg
parents:
diff changeset
42