Skip to content

Commit 157d1ec

Browse files
authored
Merge pull request #7622 from SantaMcCloud/add_mgnify_genome_serch
Add Mgnify genome search
2 parents 0fc87e5 + 3e670f6 commit 157d1ec

6 files changed

Lines changed: 37782 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: mgnify_genome_search
2+
owner: iuc
3+
description: Queue genomes against registered genome from MGnify Database
4+
homepage_url: https://github.com/SantaMcCloud/MGnify-genome-search
5+
long_description: |
6+
Queue genomes against multiple MGnify genome catalogues with registered genomes. The result of the
7+
of this are if the queued genomes did match, how the would be classified and if there are novel.
8+
remote_repository_url: https://github.com/galaxyproject/tools-iuc/tree/main/tools/mgnify_genome_search
9+
type: unrestricted
10+
categories:
11+
- Metagenomics
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<tool id="mgnify_genome_search" name="MGnify genome search" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
2+
<description>Queue genome against MGnify DB</description>
3+
<macros>
4+
<token name="@TOOL_VERSION@">1.0.0</token>
5+
<token name="@VERSION_SUFFIX@">0</token>
6+
<token name="@PROFILE@">25.0</token>
7+
</macros>
8+
<requirements>
9+
<requirement type="package" version="@TOOL_VERSION@">mgnify-genome-search</requirement>
10+
</requirements>
11+
<command detect_errors="exit_code">
12+
<![CDATA[
13+
14+
mkdir 'inputs' 'outputs' &&
15+
16+
#for $file in $fasta:
17+
ln -s '$file' 'inputs/${file.element_identifier}.fasta' &&
18+
#end for
19+
20+
mgnify_search 'inputs' 'outputs'
21+
22+
]]>
23+
</command>
24+
<inputs>
25+
<param name="fasta" type="data" multiple="true" format="fasta" label="Input fasta collection"/>
26+
</inputs>
27+
<outputs>
28+
<data name="matches" format="tabular" from_work_dir="outputs/matches.tsv" label="${tool.name} on ${on_string}: Match table"/>
29+
<data name="taxa" format="tabular" from_work_dir="outputs/taxa_matches.tsv" label="${tool.name} on ${on_string}: Taxonomy table"/>
30+
<data name="novelty" format="tabular" from_work_dir="outputs/novelty.tsv" label="${tool.name} on ${on_string}: Novelty table"/>
31+
</outputs>
32+
<tests>
33+
<test expect_num_outputs="3">
34+
<param name="fasta" value="bin1.fa,bin2.fa" ftype="fasta"/>
35+
<output name="matches">
36+
<assert_contents>
37+
<has_n_lines n="5" delta="1"/>
38+
</assert_contents>
39+
</output>
40+
<output name="taxa">
41+
<assert_contents>
42+
<has_n_lines n="5" delta="1"/>
43+
</assert_contents>
44+
</output>
45+
<output name="novelty">
46+
<assert_contents>
47+
<has_n_lines n="3"/>
48+
</assert_contents>
49+
</output>
50+
</test>
51+
<test expect_num_outputs="3">
52+
<param name="fasta" value="bin3.fa,bin4.fa" ftype="fasta"/>
53+
<output name="matches">
54+
<assert_contents>
55+
<has_n_lines n="8" delta="1"/>
56+
</assert_contents>
57+
</output>
58+
<output name="taxa">
59+
<assert_contents>
60+
<has_n_lines n="8" delta="1"/>
61+
</assert_contents>
62+
</output>
63+
<output name="novelty">
64+
<assert_contents>
65+
<has_n_lines n="3"/>
66+
</assert_contents>
67+
</output>
68+
</test>
69+
</tests>
70+
<help>
71+
<![CDATA[
72+
73+
This tool use the official MGnify API to queue the inputted genome against their DB.
74+
75+
The result of the this jobs are collected together and then separated to 3 tables which are the followed:
76+
77+
- Match table: This table is the general table where most information of the queue are stored together with the information if one of the inputted genomes did match with one of the register genome from MGnify.
78+
- Taxonomy table: Show, if possible, how the genome would be classified by MGnify.
79+
- Novelty table: Show if the genome is know by MGnify or not. False means that the the genome is in one of the MGnify catalogue while true means that the genome is novel, so not listed in any MGnify catalogue.
80+
81+
]]>
82+
</help>
83+
<citations>
84+
<citation type="bibtex">@misc{BibEntry2026Jan,
85+
title = {{MGnify-genome-search}},
86+
author = {Santino Faack (SantaMcCloud)},
87+
journal = {GitHub},
88+
year = {2026},
89+
month = jan,
90+
url = {https://github.com/SantaMcCloud/MGnify-genome-search}
91+
</citation>
92+
</citations>
93+
</tool>

0 commit comments

Comments
 (0)