Mercurial > repos > brinkmanlab > microbedb
annotate all_fasta.xml @ 7:6ad04790da12 draft
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
author | brinkmanlab |
---|---|
date | Mon, 09 Nov 2020 23:15:23 +0000 |
parents | 67447b96c3ff |
children | 7c2f036e13a7 |
rev | line source |
---|---|
4
69186a3c9e76
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit ada9e882d260555d79c64e38a8ce26b1e84966f0"
brinkmanlab
parents:
3
diff
changeset
|
1 <tool id="microbedb_all_fasta" name="MicrobeDB All FASTA" version="1.0" 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 |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
21 SELECT json_object('data_tables', |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
22 json_object('all_fasta', json_group_array(json_object('value', unique_build_id, 'dbkey', dbkey, 'name', label, 'path', file_path))), |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
23 #if $builds |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
24 json_object('__dbkeys__', json_group_array(json_object('value', dbkey, 'name', label, 'len_path', ''))), |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
25 #end if |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
26 ) FROM ( |
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, |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
29 (REPLACE(r.definition, ', complete genome.', '') || ' [' || r.rep_accnum || '.' || r.rep_version || ']') AS label, |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
30 ('${os.path.dirname(str($db))}/' || genomeproject.gpv_directory || '/' || genomeproject.filename || '_genomic.fna') AS file_path |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
31 FROM genomeproject |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
32 JOIN replicon r ON genomeproject.gpv_id = r.gpv_id 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
|
33 WHERE genomeproject.version_id = (SELECT version_id FROM version WHERE is_current == 1) |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
34 AND genomeproject.file_types IS NOT NULL |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
35 AND genomeproject.file_types LIKE '%.fna%' |
6ad04790da12
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit 86feecfffe799823fcbae7c56b04d4ef7c87117d"
brinkmanlab
parents:
5
diff
changeset
|
36 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
|
37 ) |
0
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
38 ]]></configfile> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
39 </configfiles> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
40 <inputs> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
41 <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
|
42 <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
|
43 </inputs> |
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 <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
|
46 </outputs> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
47 <tests> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
48 </tests> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
49 <help><![CDATA[ |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
50 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
|
51 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
|
52 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
|
53 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
|
54 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
|
55 |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
56 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
|
57 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
|
58 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
|
59 ]]></help> |
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 <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
|
62 </citations> |
40d14d5c8125
"planemo upload for repository https://github.com/brinkmanlab/galaxy-tools/tree/master/microbedb commit e63162a36457c0337c67e536a8a394beb06f4d70"
brinkmanlab
parents:
diff
changeset
|
63 </tool> |