Mercurial > repos > brinkmanlab > microbedb
annotate all_fasta.xml @ 10:2f6ef3a184df draft default tip
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 12aaf041d3d5a052c6a3f3aa7f3177591e3b19bf"
author | brinkmanlab |
---|---|
date | Sat, 16 Jan 2021 03:05:14 +0000 |
parents | b08b09342b92 |
children |
rev | line source |
---|---|
9
b08b09342b92
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 8cc0daf7f7ce6a49483c9152bccd53d66a00f707"
brinkmanlab
parents:
8
diff
changeset
|
1 <tool id="microbedb_all_fasta" name="MicrobeDB All FASTA" version="1.1" tool_type="manage_data" profile="18.09"> |
0
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
2 <description>Load all fasta files from MicrobeDB into the all_fasta data table</description> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
3 <edam_topics> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
4 <edam_topic>topic_3301</edam_topic> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
5 <edam_topic>topic_0080</edam_topic> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
6 <edam_topic>topic_0091</edam_topic> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
7 </edam_topics> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
8 <edam_operations> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
9 <edam_operation>operation_2422</edam_operation> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
10 </edam_operations> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
11 <requirements> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
12 <requirement type="package" version="3">sqlite</requirement> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
13 </requirements> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
14 <version_command>sqlite3 --version</version_command> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
15 <command><![CDATA[ |
7
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
16 sqlite3 -readonly '$db' < '$sql' > '$output' |
0
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
17 ]]></command> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
18 <configfiles> |
7
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
19 <configfile name="sql"><![CDATA[ |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
20 #import os.path |
8
7c2f036e13a7
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 93c3e4d7bc06fd1595bc005081e89248561de56a"
brinkmanlab
parents:
7
diff
changeset
|
21 SELECT json_object('data_tables', json_object( |
7c2f036e13a7
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 93c3e4d7bc06fd1595bc005081e89248561de56a"
brinkmanlab
parents:
7
diff
changeset
|
22 'all_fasta', json_group_array(json_object('value', unique_build_id, 'dbkey', dbkey, 'name', label, 'path', file_path)) |
7
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
23 #if $builds |
8
7c2f036e13a7
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 93c3e4d7bc06fd1595bc005081e89248561de56a"
brinkmanlab
parents:
7
diff
changeset
|
24 ,'__dbkeys__', json_group_array(json_object('value', dbkey, 'name', label, 'len_path', '')) |
7
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
25 #end if |
8
7c2f036e13a7
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 93c3e4d7bc06fd1595bc005081e89248561de56a"
brinkmanlab
parents:
7
diff
changeset
|
26 )) FROM ( |
7
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
27 SELECT (r.rep_accnum || '.' || r.rep_version) AS unique_build_id, |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
28 (r.rep_accnum || '_' || r.rep_version) AS dbkey, |
10
2f6ef3a184df
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 12aaf041d3d5a052c6a3f3aa7f3177591e3b19bf"
brinkmanlab
parents:
9
diff
changeset
|
29 (REPLACE(REPLACE(r.definition, ', complete sequence.', ''), ', complete genome.', '') || ' [' || r.rep_accnum || '.' || r.rep_version || ']') AS label, |
2f6ef3a184df
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 12aaf041d3d5a052c6a3f3aa7f3177591e3b19bf"
brinkmanlab
parents:
9
diff
changeset
|
30 ('${os.path.dirname(str($db))}/' || genomeproject.gpv_directory || '/' || r.file_name || '.fna') AS file_path |
9
b08b09342b92
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 8cc0daf7f7ce6a49483c9152bccd53d66a00f707"
brinkmanlab
parents:
8
diff
changeset
|
31 FROM genomeproject JOIN replicon r ON genomeproject.gpv_id = r.gpv_id AND r.rep_type = 'chromosome' |
10
2f6ef3a184df
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 12aaf041d3d5a052c6a3f3aa7f3177591e3b19bf"
brinkmanlab
parents:
9
diff
changeset
|
32 WHERE r.file_types IS NOT NULL |
2f6ef3a184df
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 12aaf041d3d5a052c6a3f3aa7f3177591e3b19bf"
brinkmanlab
parents:
9
diff
changeset
|
33 AND r.file_types LIKE '%.fna%' |
7
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
34 AND r.rep_type = 'chromosome' |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
35 ) |
0
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
36 ]]></configfile> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
37 </configfiles> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
38 <inputs> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
39 <param name="db" type="text" value="/cvmfs/microbedb.brinkmanlab.ca/microbedb.sqlite" label="Path" help="Absolute path to microbedb.sqlite on Galaxy host server"/> |
7
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
40 <param name="builds" type="boolean" label="Add genomes to __dbkeys__" help="Add genomes to __dbkeys__ table, listing them at /api/genomes"/> |
0
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
41 </inputs> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
42 <outputs> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
43 <data name="output" format="data_manager_json" /> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
44 </outputs> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
45 <tests> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
46 </tests> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
47 <help><![CDATA[ |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
48 Analysis of microbial genomes often requires the general organization and comparison of tens to thousands of genomes both from public repositories |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
49 and unpublished sources. MicrobeDB provides a foundation for such projects by the automation of downloading published, completed bacterial and |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
50 archaeal genomes from key sources, parsing annotations of all genomes (both public and private) into a local database, and allowing interaction |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
51 with the database through an easy to use programming interface. MicrobeDB creates a simple to use, easy to maintain, centralized local resource |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
52 for various large-scale comparative genomic analyses and a back-end for future microbial application design. |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
53 |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
54 This tool populates the all_fasta table with the paths of the reference genomes included in MicrobeDB. MicrobeDB must first be manually loaded |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
55 onto the Galaxy filesystem. The easiest way of doing that is mounting it using the [CVMFS client](https://cvmfs.readthedocs.io/en/stable/cpt-quickstart.html). |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
56 The MicrobeDB CVMFS repository is hosted at microbedb.brinkmanlab.ca. |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
57 ]]></help> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
58 <citations> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
59 <citation type="doi">10.1093/bioinformatics/bts273</citation> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
60 </citations> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
61 </tool> |