Skip to content
Open
11 changes: 11 additions & 0 deletions workflows/microbiome/samestr-workflow/.dockstore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 1.2
workflows:
- name: main
subclass: Galaxy
publish: true
primaryDescriptorPath: /samestrgal.ga
testParameterFiles:
- /samestrgal-tests.yml
authors:
- name: 'Xenia Morera Martínez'
orcid: 0009-0000-2380-8385
5 changes: 5 additions & 0 deletions workflows/microbiome/samestr-workflow/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## [0.1] - 2026-06-18

First release.
18 changes: 18 additions & 0 deletions workflows/microbiome/samestr-workflow/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# SamestrGal for shared-strain detection in metagenomes

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure that's the best name for the workflow. Other WFs do not mention Galaxy in their name because it's rather obvious after all.


This workflow processes paired-end shotgun metagenomic sequencing reads from multiple samples. It performs the following steps:

- **Preprocessing**: Quality trimming and host read removal using KneadData
- **Taxonomic profiling and marker-based alignment**: MetaPhlAn4 or mOTUs for taxonomic classification and marker based alignment
- **Strain detection**: SameStr tools identify strains across samples and compute pairwise strain comparisons using Maximum Variant Profile Similarity (MVS) scores.

## Inputs

- **Raw Reads**: A collection of paired-end FASTQ files from one or more samples to compare
- **Run MetaPhlAn**: Boolean parameter (default: true) that enables MetaPhlAn-based strain detection
- **Run mOTUs**: Boolean parameter (default: false) that enables mOTUs-based strain detection

## Outputs

- **MetaPhlAn results** (if enabled): SNV profile summary statistics, taxon counts, strain events, and co-occurrence tables
- **mOTUs results** (if enabled): SNV profile summary statistics, taxon counts, strain events, and co-occurrence tables
90 changes: 90 additions & 0 deletions workflows/microbiome/samestr-workflow/samestrgal-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
- doc: Test outline for samestrgal
job:
Raw Reads:
class: Collection
collection_type: list:paired
elements:
- class: Collection
type: paired

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type: paired
collection_type: paired

see the recent #1292

identifier: 28C
elements:
- class: File
identifier: forward
location: https://zenodo.org/records/20745835/files/28C_R1.fastq.gz
filetype: fastqsanger.gz
- class: File
identifier: reverse
location: https://zenodo.org/records/20745835/files/28C_R2.fastq.gz
filetype: fastqsanger.gz
- class: Collection
type: paired

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type: paired
collection_type: paired

identifier: 28B
elements:
- class: File
identifier: forward
location: https://zenodo.org/records/20745835/files/28B_R1.fastq.gz
filetype: fastqsanger.gz
- class: File
identifier: reverse
location: https://zenodo.org/records/20745835/files/28B_R2.fastq.gz
filetype: fastqsanger.gz
- class: Collection
type: paired

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
type: paired
collection_type: paired

identifier: 28A
elements:
- class: File
identifier: forward
location: https://zenodo.org/records/20745835/files/28A_R1.fastq.gz
filetype: fastqsanger.gz
- class: File
identifier: reverse
location: https://zenodo.org/records/20745835/files/28A_R2.fastq.gz
filetype: fastqsanger.gz
Run MetaPhlAn: true
Select SameStr database MetaPhlAn: mpa_vJan25_CHOCOPhlAnSGB_202503-11062025
Select MetaPhlAn Database: mpa_vJan25_CHOCOPhlAnSGB_202503-11062025
Host reference genome: hg19
Sequencer type: NexteraPE
outputs:
"Stats file (MetaPhlAn)":
element_tests:
t__SGB15299:
asserts:
has_text:
text: "28B"
t__SGB4285:
asserts:
has_text:
text: "28B"
t__SGB6362:
asserts:
has_text:
text: "28B"
"Taxon counts (MetaPhlAn)":
asserts:
has_text:
text: "28A"
has_text:
text: "28B"
has_text:
text: "28C"
"Strain events (MetaPhlAn)":
asserts:
has_text:
text: "t__SGB15299"
has_text:
text: "t__SGB4285"
has_text:
text: "t__SGB6362"
has_text:
text: "28B"
has_text:
text: "28C"
"Co-occurrences (MetaPhlAn)":
asserts:
has_text:
text: "28A"
has_text:
text: "28B"
has_text:
text: "28C"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please consult #1275 and fix the asserts accordingly

Loading
Loading