Changed to whitespaces
Some checks failed
autoBIGS.galaxy/pipeline/head There was a failure building this commit
Some checks failed
autoBIGS.galaxy/pipeline/head There was a failure building this commit
This commit is contained in:
parent
3320b6fc43
commit
ddb98514fb
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@ -2,29 +2,27 @@ pipeline {
|
|||||||
agent {
|
agent {
|
||||||
kubernetes {
|
kubernetes {
|
||||||
cloud 'rsys-devel'
|
cloud 'rsys-devel'
|
||||||
defaultContainer 'miniforge3'
|
defaultContainer 'pip'
|
||||||
inheritFrom 'miniforge'
|
inheritFrom 'pip'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage ("install") {
|
stage ("install") {
|
||||||
steps {
|
steps {
|
||||||
sh 'conda env update -n base --file environment.yml'
|
sh 'pip install -r requirements.txt'
|
||||||
sh 'useradd galaxy -m'
|
sh 'planemo ci_setup'
|
||||||
sh 'apt-get update'
|
|
||||||
sh 'apt-get install sudo -y'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ("lint") {
|
stage ("lint") {
|
||||||
steps {
|
steps {
|
||||||
sh "sudo -u galaxy planemo lint autobigs-cli.xml"
|
sh "planemo lint autobigs-cli.xml"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage ("test") {
|
stage ("test") {
|
||||||
steps {
|
steps {
|
||||||
sh 'sudo -u galaxy mkdir test_results'
|
sh 'mkdir test_results'
|
||||||
sh "sudo -u galaxy planemo test autobigs-cli.xml --test_output_junit test_results/junit_results.xml --test_output_json test_results/results.json --test_output test_results/human.html"
|
sh "planemo test autobigs-cli.xml --test_output_junit test_results/junit_results.xml --test_output_json test_results/results.json --test_output test_results/human.html"
|
||||||
xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'test_results/junit_report.xml', stopProcessingIfError: true)]
|
xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'test_results/junit_report.xml', stopProcessingIfError: true)]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
162
autobigs-cli.xml
162
autobigs-cli.xml
@ -1,76 +1,76 @@
|
|||||||
<tool id="autobigs-cli" name="autoBIGS.cli" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
|
<tool id="autobigs-cli" name="autoBIGS.cli" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
|
||||||
<description>Automated MLST typing from PubMLST and InstitutPasteur.</description>
|
<description>Automated MLST typing from PubMLST and InstitutPasteur.</description>
|
||||||
<macros>
|
<macros>
|
||||||
<token name="@TOOL_VERSION@">0.5.0</token>
|
<token name="@TOOL_VERSION@">0.5.0</token>
|
||||||
<token name="@VERSION_SUFFIX@">0</token>
|
<token name="@VERSION_SUFFIX@">0</token>
|
||||||
<import>autobigs-cli_macros.xml</import>
|
<import>autobigs-cli_macros.xml</import>
|
||||||
<expand macro="bio_tools"/>
|
<expand macro="bio_tools"/>
|
||||||
</macros>
|
</macros>
|
||||||
|
|
||||||
<requirements>
|
<requirements>
|
||||||
<requirement type="package" version="@TOOL_VERSION@">autobigs-cli</requirement>
|
<requirement type="package" version="@TOOL_VERSION@">autobigs-cli</requirement>
|
||||||
</requirements>
|
</requirements>
|
||||||
|
|
||||||
<command detect_errors="exit_code"><![CDATA[
|
<command detect_errors="exit_code"><![CDATA[
|
||||||
#if $mode.operation == "info":
|
#if $mode.operation == "info":
|
||||||
#if $mode.select_info.retrieved == "schemes":
|
#if $mode.select_info.retrieved == "schemes":
|
||||||
autoBIGS info --retrieve-bigsdb-schemas#for $scheme in $mode.select_info.schemes_list# '${scheme.selected_db}' #end for# --csv $info_schemes_out
|
autoBIGS info --retrieve-bigsdb-schemas#for $scheme in $mode.select_info.schemes_list# '${scheme.selected_db}' #end for# --csv $info_schemes_out
|
||||||
#else if $mode.select_info.retrieved == "databases":
|
#else if $mode.select_info.retrieved == "databases":
|
||||||
autoBIGS info --retrieve-bigsdbs --csv $info_db_out
|
autoBIGS info --retrieve-bigsdbs --csv $info_db_out
|
||||||
#end if
|
#end if
|
||||||
#else if $mode.operation == "st":
|
#else if $mode.operation == "st":
|
||||||
autoBIGS st#for $fasta in $mode.fastas_list# '${fasta.fasta}' #end for#"$seqdefdb" $schema "$mlst_profiles_output" $stop_on_fail
|
autoBIGS st#for $fasta in $mode.fastas_list# '${fasta.fasta}' #end for#"$seqdefdb" $schema "$mlst_profiles_output" $stop_on_fail
|
||||||
#end if
|
#end if
|
||||||
]]></command>
|
]]></command>
|
||||||
<inputs>
|
<inputs>
|
||||||
<conditional name="mode">
|
<conditional name="mode">
|
||||||
<param name="operation" label="Operation" type="select">
|
<param name="operation" label="Operation" type="select">
|
||||||
<option value="info">Retrieve Database Information</option>
|
<option value="info">Retrieve Database Information</option>
|
||||||
<option value="st">Perform Sequence Typing</option>
|
<option value="st">Perform Sequence Typing</option>
|
||||||
</param>
|
</param>
|
||||||
<when value="info">
|
<when value="info">
|
||||||
<conditional name="select_info">
|
<conditional name="select_info">
|
||||||
<param name="retrieved" label="Schemes or Database List" type="select">
|
<param name="retrieved" label="Schemes or Database List" type="select">
|
||||||
<option value="schemes">Available Schemas for Database</option>
|
<option value="schemes">Available Schemas for Database</option>
|
||||||
<option value="databases">Available Databases</option>
|
<option value="databases">Available Databases</option>
|
||||||
</param>
|
</param>
|
||||||
<when value="schemes">
|
<when value="schemes">
|
||||||
<repeat name="schemes_list" title="Schemes" min="1">
|
<repeat name="schemes_list" title="Schemes" min="1">
|
||||||
<param name="selected_db" argument="--retrieve-bigsdb-schemas" label="Database to retrieve schemes from" type="text"/>
|
<param name="selected_db" argument="--retrieve-bigsdb-schemas" label="Database to retrieve schemes from" type="text"/>
|
||||||
</repeat>
|
</repeat>
|
||||||
</when>
|
</when>
|
||||||
<when value="databases">
|
<when value="databases">
|
||||||
|
|
||||||
</when>
|
</when>
|
||||||
</conditional>
|
</conditional>
|
||||||
</when>
|
</when>
|
||||||
<when value="st">
|
<when value="st">
|
||||||
<repeat name="fastas_list" title="Fasta" min="1">
|
<repeat name="fastas_list" title="Fasta" min="1">
|
||||||
<param name="fasta" label="FASTA file" type="data" format="fasta,fas,fa,fna,ffn,faa,mpfa,frn"/>
|
<param name="fasta" label="FASTA file" type="data" format="fasta,fas,fa,fna,ffn,faa,mpfa,frn"/>
|
||||||
</repeat>
|
</repeat>
|
||||||
<param name="seqdefdb" label="BIGSdb SeqDef Name" type="text" optional="false"/>
|
<param name="seqdefdb" label="BIGSdb SeqDef Name" type="text" optional="false"/>
|
||||||
<param name="schema" label="BIGSdb SeqDef Schema ID" type="integer" min="0"/>
|
<param name="schema" label="BIGSdb SeqDef Schema ID" type="integer" min="0"/>
|
||||||
<param name="stop_on_fail" label="Stop on failure to match" truevalue="--sof" falsevalue="" value="false" type="boolean"/>
|
<param name="stop_on_fail" label="Stop on failure to match" truevalue="--sof" falsevalue="" value="false" type="boolean"/>
|
||||||
</when>
|
</when>
|
||||||
</conditional>
|
</conditional>
|
||||||
</inputs>
|
</inputs>
|
||||||
<outputs>
|
<outputs>
|
||||||
<data name="mlst_profiles_output" label="${tool.name} on ${on_string}" format="csv">
|
<data name="mlst_profiles_output" label="${tool.name} on ${on_string}" format="csv">
|
||||||
<filter>mode['operation'] == 'st'</filter>
|
<filter>mode['operation'] == 'st'</filter>
|
||||||
</data>
|
</data>
|
||||||
<data name="info_db_out" label="${tool.name} supported Databases" format="csv">
|
<data name="info_db_out" label="${tool.name} supported Databases" format="csv">
|
||||||
<filter>mode['operation'] == 'info' and mode['select_info']['retrieved'] == 'databases'</filter>
|
<filter>mode['operation'] == 'info' and mode['select_info']['retrieved'] == 'databases'</filter>
|
||||||
</data>
|
</data>
|
||||||
<data name="info_schemes_out" label="${tool.name} supported Schemes" format="csv">
|
<data name="info_schemes_out" label="${tool.name} supported Schemes" format="csv">
|
||||||
<filter>mode['operation'] == 'info' and mode['select_info']['retrieved'] == 'schemes'</filter>
|
<filter>mode['operation'] == 'info' and mode['select_info']['retrieved'] == 'schemes'</filter>
|
||||||
</data>
|
</data>
|
||||||
</outputs>
|
</outputs>
|
||||||
<tests>
|
<tests>
|
||||||
<test expect_num_outputs="1">
|
<test expect_num_outputs="1">
|
||||||
<param name="operation" value="st" />
|
<param name="operation" value="st" />
|
||||||
<repeat name="fastas_list">
|
<repeat name="fastas_list">
|
||||||
<param name="fasta" value="tohama_I_minimized_features.fasta" />
|
<param name="fasta" value="tohama_I_minimized_features.fasta" />
|
||||||
</repeat>
|
</repeat>
|
||||||
<param name="seqdefdb" value="pubmlst_bordetella_seqdef" />
|
<param name="seqdefdb" value="pubmlst_bordetella_seqdef" />
|
||||||
<param name="schema" value="3" />
|
<param name="schema" value="3" />
|
||||||
<output name="mlst_profiles_output" file="tohama_I_minimized_features_typed.csv" ftype="csv" />
|
<output name="mlst_profiles_output" file="tohama_I_minimized_features_typed.csv" ftype="csv" />
|
||||||
@ -79,26 +79,26 @@
|
|||||||
<param name="operation" value="info" />
|
<param name="operation" value="info" />
|
||||||
<param name="retrieved" value="databases" />
|
<param name="retrieved" value="databases" />
|
||||||
<output name="info_db_out">
|
<output name="info_db_out">
|
||||||
<assert_contents>
|
<assert_contents>
|
||||||
<has_text text="BIGSdb Names,Source"/>
|
<has_text text="BIGSdb Names,Source"/>
|
||||||
<has_text text="pubmlst_bordetella_seqdef,https://bigsdb.pasteur.fr/api"/>
|
<has_text text="pubmlst_bordetella_seqdef,https://bigsdb.pasteur.fr/api"/>
|
||||||
</assert_contents>
|
</assert_contents>
|
||||||
</output>
|
</output>
|
||||||
</test>
|
</test>
|
||||||
<test expect_num_outputs="1">
|
<test expect_num_outputs="1">
|
||||||
<param name="operation" value="info" />
|
<param name="operation" value="info" />
|
||||||
<repeat name="schemes_list">
|
<repeat name="schemes_list">
|
||||||
<param name="selected_db" value="pubmlst_bordetella_seqdef" />
|
<param name="selected_db" value="pubmlst_bordetella_seqdef" />
|
||||||
</repeat>
|
</repeat>
|
||||||
<output name="info_schemes_out">
|
<output name="info_schemes_out">
|
||||||
<assert_contents>
|
<assert_contents>
|
||||||
<has_text text="Name,ID"/>
|
<has_text text="Name,ID"/>
|
||||||
<has_text text="MLST,3"/>
|
<has_text text="MLST,3"/>
|
||||||
</assert_contents>
|
</assert_contents>
|
||||||
</output>
|
</output>
|
||||||
</test>
|
</test>
|
||||||
</tests>
|
</tests>
|
||||||
<help><![CDATA[
|
<help><![CDATA[
|
||||||
|
|
||||||
usage: autoBIGS info [-h] [--retrieve-bigsdbs] [--retrieve-bigsdb-schemas LIST_BIGSDB_SCHEMAS [LIST_BIGSDB_SCHEMAS ...]] [--csv CSV_OUTPUT]
|
usage: autoBIGS info [-h] [--retrieve-bigsdbs] [--retrieve-bigsdb-schemas LIST_BIGSDB_SCHEMAS [LIST_BIGSDB_SCHEMAS ...]] [--csv CSV_OUTPUT]
|
||||||
|
|
||||||
@ -125,7 +125,7 @@ positional arguments:
|
|||||||
options:
|
options:
|
||||||
-h, --help show this help message and exit
|
-h, --help show this help message and exit
|
||||||
--stop-on-fail, -sof Should the algorithm stop in the case there are no matches (or partial matches when expecting exact matches).
|
--stop-on-fail, -sof Should the algorithm stop in the case there are no matches (or partial matches when expecting exact matches).
|
||||||
]]></help>
|
]]></help>
|
||||||
<citations>
|
<citations>
|
||||||
<citation type="bibtex">
|
<citation type="bibtex">
|
||||||
@book{Deng2025RealYHD,
|
@book{Deng2025RealYHD,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user