-
Notifications
You must be signed in to change notification settings - Fork 96
Add SameStr workflow #1257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
xens25
wants to merge
12
commits into
galaxyproject:main
Choose a base branch
from
xens25:add-samestr-workflow
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add SameStr workflow #1257
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c08e312
Add SameStr workflow
xens25 3133db5
Potential fix for pull request finding
xens25 e781751
Applied Copilot suggestions
xens25 a824fc0
add fix
xens25 41459b3
Apply suggestions from code review
xens25 59a7b98
fixed readme, fixed names, added orcid, made several parameters confi…
xens25 57545dd
fixed readme, fixed names, added orcid, made several parameters confi…
xens25 9bd8ec9
Fix workflow parameter inputs
xens25 ee8a574
Add fix lint and test
xens25 382b644
fix lint
xens25 facb60e
removed subworkflow motus, added database fix
xens25 0dc448e
modified structure
xens25 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Changelog | ||
|
|
||
| ## [0.1] - 2026-06-18 | ||
|
|
||
| First release. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| # SamestrGal for shared-strain detection in metagenomes | ||
|
|
||
| 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 | ||
|
|
||
| ## Outputs | ||
|
|
||
| - **MetaPhlAn results** (if enabled): SNV profile summary statistics, taxon counts, strain events, and co-occurrence tables | ||
105 changes: 105 additions & 0 deletions
105
workflows/microbiome/samestr-workflow/samestrgal-tests.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| - doc: Test outline for samestrgal | ||
| job: | ||
| Raw Reads: | ||
| class: Collection | ||
| collection_type: list:paired | ||
| elements: | ||
| - class: Collection | ||
| collection_type: paired | ||
| 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 | ||
| 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 | ||
| 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 | ||
| Select Host reference genome: hg19 | ||
| Select Sequencer for Trimmomatic: NexteraPE | ||
| Select MetaPhlAn Database: mpa_vJan25_CHOCOPhlAnSGB_202503-11062025 | ||
| Select SameStr database: mpa_vJan25_CHOCOPhlAnSGB_202503-11062025 | ||
| Run MetaPhlAn: true | ||
| "Percent identity": 0.9 | ||
| "Minimum alignment length": 40 | ||
| "Minimum base quality": 20 | ||
| "Minimum alignment quality": 0 | ||
| "Minimum vertical coverage": 3 | ||
| "SameStr Filter: Minimum samples per clade": 2 | ||
| "SameStr Filter: Marker truncation length": 50 | ||
| "SameStr Filter: Nucleotides minimum variant coverage": 2 | ||
| "SameStr Filter: Minimum variant coverage fraction": 0.05 | ||
| "SameStr Filter: Minimum position coverage": 1 | ||
| "SameStr Filter: Position coverage standard deviation cutoff": 3.0 | ||
| "SameStr Filter: Minimum horizontal coverage": 5000 | ||
| "SameStr Filter: Minimum sample coverage per position": 2 | ||
| "SameStr Summarize: Minimum overlap for comparison": 5000 | ||
| "SameStr Summarize: Minimum similarity for shared strains": 0.999 | ||
| outputs: | ||
| "stats file": | ||
| element_tests: | ||
| t__SGB15299: | ||
| asserts: | ||
| - that: has_text | ||
| text: "28B" | ||
| t__SGB4285: | ||
| asserts: | ||
| - that: has_text | ||
| text: "28B" | ||
| t__SGB6362: | ||
| asserts: | ||
| - that: has_text | ||
| text: "28B" | ||
| "taxon counts": | ||
| asserts: | ||
| - that: has_text | ||
| text: "28A" | ||
| - that: has_text | ||
| text: "28B" | ||
| - that: has_text | ||
| text: "28C" | ||
| "strain events": | ||
| asserts: | ||
| - that: has_text | ||
| text: "t__SGB15299" | ||
| - that: has_text | ||
| text: "t__SGB4285" | ||
| - that: has_text | ||
| text: "t__SGB6362" | ||
| - that: has_text | ||
| text: "28B" | ||
| - that: has_text | ||
| text: "28C" | ||
| "cooccurrences": | ||
| asserts: | ||
| - that: has_text | ||
| text: "28A" | ||
| - that: has_text | ||
| text: "28B" | ||
| - that: has_text | ||
| text: "28C" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.