Skip to content

Commit

Permalink
fix order and add to more tools
Browse files Browse the repository at this point in the history
  • Loading branch information
nomadscientist committed Nov 5, 2024
1 parent 43c7c8e commit 812fd5b
Show file tree
Hide file tree
Showing 61 changed files with 164 additions and 135 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<macros>
<import>ct_macros.xml</import>
</macros>
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
mkdir -p input_dir;
Expand All @@ -12,7 +13,7 @@
build_cell_ontology_dict.R --input-dir input_dir --output-dict-path "${output_dict_path}" --output-text-path "${output_txt_path}"
#if $condensed_sdrf
--condensed-sdrf "${condensed_sdrf}"
--condensed-sdrf "${condensed_sdrf}"
#end if
#if $barcode_col_name
--barcode-col-name "${barcode_col_name}"
Expand All @@ -21,7 +22,7 @@
--cell-label-col-name "${cell_label_col_name}"
#end if
#if $cell_ontology_col_name
--cell-ontology-col-name "${cell_ontology_col_name}"
--cell-ontology-col-name "${cell_ontology_col_name}"
#end if
]]></command>
<inputs>
Expand Down Expand Up @@ -50,7 +51,7 @@
</tests>
<help><![CDATA[
@HELP@
@VERSION_HISTORY@
]]></help>
<expand macro="citations" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<macros>
<import>ct_macros.xml</import>
</macros>
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
Expand All @@ -14,15 +15,15 @@
]]></command>
<inputs>

<param type="data" name="input_file" label="Input File" multiple="true" format="txt" help="Input metadta file" />
<param type="text" name="label_field" label="Label Field" optional="true" help="Name of label field in metadata file">
<expand macro="sanitize_strings" />
</param>
<param type="boolean" name="condensed" checked="false" label="Condensed Metadata File" help="Are the supplied metadata files of condensed format?" />
<param type="boolean" name="condensed" checked="false" label="Condensed Metadata File" help="Are the supplied metadata files of condensed format?" />
<param type="integer" name="attribute_type_col_num" value='5' label="Number of Attribute Type Column" help="Number of the attribute type field in condensed metadata file. Default: 5" />
<param type="integer" name="variable_col_num" value='6' label="Number of Label Column" help="Number of the label field in condensed metadata file. Default: 6" />
<param type="boolean" name="avoid_lowercase" checked="false" label="Avoid Lowercaase" help="Should setting the labels to lowercase be skipped? Default: False" />
<param type="boolean" name="avoid_lowercase" checked="false" label="Avoid Lowercaase" help="Should setting the labels to lowercase be skipped? Default: False" />

</inputs>
<outputs>
Expand All @@ -38,7 +39,7 @@
</tests>
<help><![CDATA[
@HELP@
@VERSION_HISTORY@
]]></help>
<expand macro="citations" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
<macros>
<import>ct_macros.xml</import>
</macros>
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
mkdir -p input_dir;
#for $table in $input_tables:
cp '$table' input_dir/;
#end for
combine_tool_outputs.R --input-dir input_dir --top-labels-num "${top_labels_num}" --scores "${scores}" --output-table "${output_table}"
combine_tool_outputs.R --input-dir input_dir --top-labels-num "${top_labels_num}" --scores "${scores}" --output-table "${output_table}"
#if $exclusions
--exclusions "${exclusions}"
Expand All @@ -35,7 +36,7 @@
</tests>
<help><![CDATA[
@HELP@
@VERSION_HISTORY@
]]></help>
<expand macro="citations" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<macros>
<import>ct_macros.xml</import>
</macros>
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
ln -s "${matrix}" matrix.mtx &&
Expand Down Expand Up @@ -53,7 +54,7 @@

<help><![CDATA[
@HELP@
@VERSION_HISTORY@
]]></help>
<expand macro="citations" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
<macros>
<import>ct_macros.xml</import>
</macros>
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
mkdir -p input_dir;
#for $table in $input_tables:
cp '$table' input_dir/;
#end for
get_consensus_output.R --input-dir input_dir --parallel "TRUE" --num-cores \${GALAXY_SLOTS:-1} --cl-dictionary "${lab_cl_mapping}" --summary-table-output-path "${summary_table_output_path}" --raw-table-output-path "${raw_table_output_path}" --tmpdir ./
#if $tool_table
--tool-table "${tool_table}"
Expand All @@ -27,10 +28,10 @@
--exclusions "${exclusions}"
#end if
#if $sem_siml_metric
--semantic-sim-metric "${sem_siml_metric}"
--semantic-sim-metric "${sem_siml_metric}"
#end if
#if $true_labels
--true-labels "${true_labels}"
--true-labels "${true_labels}"
#end if
]]></command>
<inputs>
Expand Down Expand Up @@ -60,7 +61,7 @@
</tests>
<help><![CDATA[
@HELP@
@VERSION_HISTORY@
]]></help>
<expand macro="citations" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
<macros>
<import>ct_macros.xml</import>
</macros>
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
get_empirical_dist.R --input-ref-file "${input_ref_file}" --label-column-ref "${label_col_ref}" --lab-cl-mapping "${lab_cl_mapping}" --num-iterations "${num_iter}" --parallel "TRUE" --num-cores \${GALAXY_SLOTS:-1} --tmpdir ./ --output-path "${output_list_path}"
get_empirical_dist.R --input-ref-file "${input_ref_file}" --label-column-ref "${label_col_ref}" --lab-cl-mapping "${lab_cl_mapping}" --num-iterations "${num_iter}" --parallel "TRUE" --num-cores \${GALAXY_SLOTS:-1} --tmpdir ./ --output-path "${output_list_path}"
#if $ontology_graph
--ontology-graph "${ontology_graph}"
#end if
#end if
#if $sample_labs
--sample-labs "${sample_labs}"
#end if
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
<macros>
<import>ct_macros.xml</import>
</macros>
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
mkdir -p input_dir;
#for $input_file in $input_files:
cp '$input_file' input_dir/;
#end for
get_tool_performance_table.R --input-dir input_dir --ref-file "${ref_file}" --parallel "TRUE" --num-cores \${GALAXY_SLOTS:-1} --lab-cl-mapping "${lab_cl_mapping}" --output-path "${output_path}" --tmpdir ./
get_tool_performance_table.R --input-dir input_dir --ref-file "${ref_file}" --parallel "TRUE" --num-cores \${GALAXY_SLOTS:-1} --lab-cl-mapping "${lab_cl_mapping}" --output-path "${output_path}" --tmpdir ./
#if $exclusions
--exclusions "${exclusions}"
Expand All @@ -28,13 +29,13 @@
--barcode-col-pred "${barcode_col_pred}"
#end if
#if $label_col_ref
--label-column-ref "${label_col_ref}"
--label-column-ref "${label_col_ref}"
#end if
#if $label_col_pred
--label-column-pred "${label_col_pred}"
--label-column-pred "${label_col_pred}"
#end if
#if $sem_siml_metric
--semantic-sim-metric "${sem_siml_metric}"
--semantic-sim-metric "${sem_siml_metric}"
#end if
]]></command>
Expand Down Expand Up @@ -77,8 +78,8 @@
</tests>
<help><![CDATA[
@HELP@
@VERSION_HISTORY@
]]></help>
<expand macro="citations" />
</tool>
</tool>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<macros>
<import>ct_macros.xml</import>
</macros>
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
get_tool_pvals.R --input-table "${input_table}" --emp-dist-list "${emp_dist_list}" --output-table "${output_table}" ]]></command>
Expand All @@ -22,7 +23,7 @@
</tests>
<help><![CDATA[
@HELP@
@VERSION_HISTORY@
]]></help>
<expand macro="citations" />
Expand Down
7 changes: 6 additions & 1 deletion tools/tertiary-analysis/cell-types-analysis/ct_macros.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<token name="@TOOL_VERSION@">1.1.1</token>
<token name="@HELP@">More information can be found at https://github.com/ebi-gene-expression-group/cell-types-analysis</token>
<token name="@PROFILE@">18.01</token>
<xml name="xrefs">
<xrefs>
<xref type="bio.tools">cell_types_analysis</xref>
</xrefs>
</xml>
<xml name="requirements">
<requirements>
<requirement type="package" version="0.1.9">cell-types-analysis</requirement>
Expand All @@ -17,7 +22,7 @@
**Version history**
0.1.6+galaxy0: Add removing non-alphanumeric characters from labels in metadata files
0.0.5+galaxy0: Initial contribution. Andrey Solovyev, Expression Atlas team https://www.ebi.ac.uk/gxa/home at EMBL-EBI https://www.ebi.ac.uk/.
0.0.5+galaxy1: Standardise input/output format into .txt.
0.0.5+galaxy1: Standardise input/output format into .txt.
]]></token>
<xml name="sem_siml_options">
<param type="select" name="sem_siml_metric" label="Semantic similarity metric" help="What semantic similarity metric should be used? NB: if include-sem-siml is set to True, make sure to use a metric that is in the [0;1] interval. See https://www.bioconductor.org/packages/release/bioc/html/Onassis.html for more detail.">
Expand Down
3 changes: 3 additions & 0 deletions tools/tertiary-analysis/data-hca/matrix-service.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<tool id="hca_matrix_downloader" name="Human Cell Atlas Matrix Downloader" version="v0.0.4+galaxy0">
<description>retrieves expression matrices and metadata from the Human Cell Atlas.</description>
<xrefs>
<xref type="bio.tools">human_cell_atlas_matrix_downloader</xref>
</xrefs>
<requirements>
<requirement type="package" version="0.0.4">hca-matrix-downloader</requirement>
</requirements>
Expand Down
3 changes: 3 additions & 0 deletions tools/tertiary-analysis/data-scxa/retrieve-scxa.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<tool id="retrieve_scxa" name="EBI SCXA Data Retrieval" version="v0.0.2+galaxy2">
<description>Retrieves expression matrixes and metadata from EBI Single Cell Expression Atlas (SCXA)</description>
<xrefs>
<xref type="bio.tools">ebi_scxa_data_retrieval</xref>
</xrefs>
<requirements>
<requirement type="package" version="1.20.1">wget</requirement>
</requirements>
Expand Down
2 changes: 1 addition & 1 deletion tools/tertiary-analysis/garnett/garnett_check_markers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<macros>
<import>garnett_macros.xml</import>
</macros>
<expand macro="requirements" />
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
garnett_check_markers.R --cds-object '${cds_object}' --marker-file-path '${marker_file_path}' --database '${database}' --marker-output-path '${marker_output_path}'
Expand Down
2 changes: 1 addition & 1 deletion tools/tertiary-analysis/garnett/garnett_classify_cells.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<macros>
<import>garnett_macros.xml</import>
</macros>
<expand macro="requirements" />
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
garnett_classify_cells.R --cds-object '${cds_object}' --classifier-object '${classifier_object}' --database '${database}' --cds-output-obj '${cds_output_obj}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<macros>
<import>garnett_macros.xml</import>
</macros>
<expand macro="requirements" />
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
garnett_get_feature_genes.R --classifier-object '${classifier_object}' --database '${database}' --output-path '${output_path}'
Expand Down
2 changes: 1 addition & 1 deletion tools/tertiary-analysis/garnett/garnett_get_std_output.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<macros>
<import>garnett_macros.xml</import>
</macros>
<expand macro="requirements" />
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
garnett_get_std_output.R --input-object '${input_object}' --classifier '${classifier}' --output-file-path '${output_file_path}'
]]></command>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<macros>
<import>garnett_macros.xml</import>
</macros>
<expand macro="requirements" />
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
garnett_train_classifier.R --cds-object '${cds_object}' --marker-file-path '${marker_file_path}' --database '${database}' --cores \${GALAXY_SLOTS:-1} --output-path '${output_classifier_path}'
#if $train_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<macros>
<import>garnett_macros.xml</import>
</macros>
<expand macro="requirements" />
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
transform_marker_file.R --input-marker-file '${input_marker_file}' --marker-list '${marker_list}' --garnett-marker-file '${garnett_marker_file}'
Expand Down
2 changes: 1 addition & 1 deletion tools/tertiary-analysis/garnett/update_marker_file.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<macros>
<import>garnett_macros.xml</import>
</macros>
<expand macro="requirements" />
<expand macro="xrefs"/>
<expand macro="requirements" />
<command detect_errors="exit_code"><![CDATA[
update_marker_file.R --marker-list-obj '${marker_list_obj}' --marker-check-file '${marker_check_file}' --updated-marker-file '${updated_marker_file}'
Expand Down
2 changes: 1 addition & 1 deletion tools/tertiary-analysis/monocle3/monocle3-create.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<macros>
<import>monocle3-macros.xml</import>
</macros>
<expand macro="requirements"/>
<expand macro="xrefs"/>
<expand macro="requirements"/>
<command detect_errors="exit_code"><![CDATA[
ln -s '${expression_matrix}' expression_matrix.'${expression_matrix_format}' &&
#if $cell_metadata
Expand Down
2 changes: 1 addition & 1 deletion tools/tertiary-analysis/monocle3/monocle3-diffExp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<macros>
<import>monocle3-macros.xml</import>
</macros>
<expand macro="requirements"/>
<expand macro="xrefs"/>
<expand macro="requirements"/>
<command detect_errors="exit_code"><![CDATA[
LANG=en_US.UTF-8 monocle3 diffExp
--neighbor-graph '$(neighbor_graph)'
Expand Down
2 changes: 1 addition & 1 deletion tools/tertiary-analysis/monocle3/monocle3-learnGraph.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<macros>
<import>monocle3-macros.xml</import>
</macros>
<expand macro="requirements"/>
<expand macro="xrefs"/>
<expand macro="requirements"/>
<command detect_errors="exit_code"><![CDATA[
LANG=en_US.UTF-8 monocle3 learnGraph
#if $no_partition
Expand Down
2 changes: 1 addition & 1 deletion tools/tertiary-analysis/monocle3/monocle3-orderCells.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<macros>
<import>monocle3-macros.xml</import>
</macros>
<expand macro="requirements"/>
<expand macro="xrefs"/>
<expand macro="requirements"/>
<command detect_errors="exit_code"><![CDATA[
LANG=en_US.UTF-8 monocle3 orderCells
--reduction-method '${reduction_method}'
Expand Down
2 changes: 1 addition & 1 deletion tools/tertiary-analysis/monocle3/monocle3-partition.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<macros>
<import>monocle3-macros.xml</import>
</macros>
<expand macro="requirements"/>
<expand macro="xrefs"/>
<expand macro="requirements"/>
<command detect_errors="exit_code"><![CDATA[
LANG=en_US.UTF-8 monocle3 partition
--reduction-method '${reduction_method}'
Expand Down
Loading

0 comments on commit 812fd5b

Please sign in to comment.