Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
189 commits
Select commit Hold shift + click to select a range
c8340c4
lowercase name project
SimoneScrima Jun 9, 2026
fba7628
Fix typo in vancomycin operon URL
jakobnissen Jun 11, 2026
49dadd9
Merge pull request #155 from jakobnissen/operon
KasperThystrup Jun 12, 2026
f09bdf4
Add installation tests workflow for multiple OS
KasperThystrup Jun 15, 2026
aea230a
Change import case for MMASeq to mmaseq in workflow
KasperThystrup Jun 15, 2026
33bd826
Merge pull request #158 from ssi-dk/actions
KasperThystrup Jun 15, 2026
11f8d0e
Add version number to __version__.py
KasperThystrup Jun 15, 2026
01d8a68
Add version label check workflow for pull requests
KasperThystrup Jun 15, 2026
9675f50
Add script to bump version based on label
KasperThystrup Jun 15, 2026
8a691f3
Update error message for version label check
KasperThystrup Jun 15, 2026
bf0a076
Add GitHub Actions workflow to bump version
KasperThystrup Jun 15, 2026
f710821
Merge pull request #159 from ssi-dk/actions
KasperThystrup Jun 15, 2026
817c4d0
Added dynamic versioining
KasperThystrup Jun 15, 2026
80ab3b0
Update version file path in bump_version.py
KasperThystrup Jun 15, 2026
6d1b9a3
Merge pull request #160 from ssi-dk/actions
KasperThystrup Jun 15, 2026
94cf4b3
Update version label check to exclude 'major' label
KasperThystrup Jun 15, 2026
6ffc46b
Merge pull request #161 from ssi-dk/actions
KasperThystrup Jun 15, 2026
db0cd31
Add GitHub Action for auto version labeling
KasperThystrup Jun 15, 2026
4da97c4
Merge pull request #163 from ssi-dk/autoPR
KasperThystrup Jun 15, 2026
f97cd09
Rename workflow for automatic PR labeling
KasperThystrup Jun 15, 2026
17453ab
Rename workflow for PR labeling
KasperThystrup Jun 16, 2026
005649a
Rename workflow file to PR_label_check.yml
KasperThystrup Jun 16, 2026
80881d4
Rename PR_labelling.yml to PR_label.yml
KasperThystrup Jun 16, 2026
8207cfd
Add workflow_run trigger for version bump
KasperThystrup Jun 16, 2026
9bf27b4
Rename workflow from 'Installation tests' to 'Installation check'
KasperThystrup Jun 16, 2026
0b98cde
Change checkout reference from main to dev
KasperThystrup Jun 16, 2026
63523da
Add DOCS_build.yaml workflow file
KasperThystrup Jun 16, 2026
4414d78
Fix: Fetch PR labels from API instead of webhook payload for reliable…
KasperThystrup Jun 16, 2026
c778cfd
Test commit
KasperThystrup Jun 16, 2026
89c87dc
Fix label retrieval in PR label check workflow
KasperThystrup Jun 16, 2026
611a67f
Delete .github/workflows/version-label-check.yml
KasperThystrup Jun 16, 2026
16a5648
Merge pull request #165 from ssi-dk/Build-Polishing_actions
KasperThystrup Jun 16, 2026
e7f4e33
Remove unused condition for 'major' label
KasperThystrup Jun 16, 2026
37f2e62
Merge pull request #166 from ssi-dk/build-No-auto-major
KasperThystrup Jun 16, 2026
d94f063
Fix version bump logic for feature labels
KasperThystrup Jun 16, 2026
cdb4241
Fix trigger for workflow_run on PR label check
KasperThystrup Jun 16, 2026
2005e31
Merge pull request #167 from ssi-dk/fix_version_bump
KasperThystrup Jun 16, 2026
d03c24d
Fix workflow trigger for closed pull requests
KasperThystrup Jun 16, 2026
8e37a66
fix PR_label_check.yml to simplify triggers
KasperThystrup Jun 16, 2026
91c36f9
Add 'labeled' and 'unlabeled' types to PR workflow
KasperThystrup Jun 16, 2026
bf48d85
Merge pull request #168 from ssi-dk/fix_bump_after_check
KasperThystrup Jun 16, 2026
5a26e41
Fix version file path in bump_version.py
KasperThystrup Jun 16, 2026
9938802
Bump version
invalid-email-address Jun 16, 2026
515286a
Revert back from version bumping action test
KasperThystrup Jun 16, 2026
461b016
Build PR label check to use correct PR number
KasperThystrup Jun 16, 2026
a88e951
Merge pull request #170 from ssi-dk/Build-PR_check_IDbyPR
KasperThystrup Jun 16, 2026
610cdf0
Bump version
invalid-email-address Jun 16, 2026
08469d7
Update branch triggers in DOCS_build.yaml
KasperThystrup Jun 16, 2026
d8b5964
Delete version_guide.md
KasperThystrup Jun 16, 2026
eb79905
Merge pull request #171 from ssi-dk/VersionGuideDeleted
KasperThystrup Jun 16, 2026
52b80e9
Bump version
invalid-email-address Jun 16, 2026
a514fc5
Collected PR actions
KasperThystrup Jun 16, 2026
7536b8c
Fixed comment in check labels action
KasperThystrup Jun 16, 2026
4830de8
Readded run_id to run variable
KasperThystrup Jun 17, 2026
c5dd6b1
Renaming
KasperThystrup Jun 17, 2026
c2afffe
Added ready unready github action capabilities
KasperThystrup Jun 17, 2026
2cc7745
Tweaking GH actions logic complexity
KasperThystrup Jun 17, 2026
6724e61
Build not triggered by unlabelling
KasperThystrup Jun 17, 2026
f0323a7
Renamed GH workflows
KasperThystrup Jun 17, 2026
9b5627b
Added label cleanup step after successful merge
KasperThystrup Jun 17, 2026
8f6bd26
Fix syntax err
KasperThystrup Jun 17, 2026
a0f236d
Temporarily reduced build jobs
KasperThystrup Jun 17, 2026
e435719
Changed label cleanup ordering
KasperThystrup Jun 17, 2026
eddd0ef
Merge pull request #172 from ssi-dk/PR_single_file
KasperThystrup Jun 17, 2026
e0abedd
Bump version
invalid-email-address Jun 17, 2026
8e1b08b
Released unready and release jobs from bump
KasperThystrup Jun 17, 2026
e41f820
Merge branch 'dev' into PR_single_file
KasperThystrup Jun 17, 2026
d586ca2
Merge pull request #173 from ssi-dk/PR_single_file
KasperThystrup Jun 17, 2026
660a917
Fixed indentation err
KasperThystrup Jun 17, 2026
054294c
Readded unlabel trigger for build
KasperThystrup Jun 17, 2026
efce558
fixattempt: Build always skipped
KasperThystrup Jun 17, 2026
12e1c10
Merge pull request #174 from ssi-dk/build_indent_fix
KasperThystrup Jun 17, 2026
84b3f81
Bump version
invalid-email-address Jun 17, 2026
8d382c4
Attempt to mend build logic
KasperThystrup Jun 19, 2026
b2f59c7
Merge branch 'dev' into build_indent_fix
KasperThystrup Jun 19, 2026
31b3207
Fixed syntax in docs and build
KasperThystrup Jun 19, 2026
240cbff
Final amendments
KasperThystrup Jun 19, 2026
7a2cace
Build no longer removes ready label
KasperThystrup Jun 19, 2026
5063bf4
Ready label fixes
KasperThystrup Jun 19, 2026
f3320f1
Removed ready label
KasperThystrup Jun 19, 2026
4c8dcbc
Merge pull request #176 from ssi-dk/build_indent_fix
KasperThystrup Jun 19, 2026
2213ea9
Bump version
invalid-email-address Jun 19, 2026
f6a6ad2
test for docs action
KasperThystrup Jun 19, 2026
215bab9
Merge pull request #177 from ssi-dk/test_docs
KasperThystrup Jun 19, 2026
911d3bf
Bump version
invalid-email-address Jun 19, 2026
bf5c82a
Remove 'dev' branch from push triggers in DOCS.yml
KasperThystrup Jun 19, 2026
b210058
Add build job to PR workflow with Micromamba setup
KasperThystrup Jun 19, 2026
13c9493
Delete .github/workflows/BUILD.yml
KasperThystrup Jun 19, 2026
7647b39
Merge branch 'dev' into test_docs
KasperThystrup Jun 19, 2026
5020f62
Fix indentations
KasperThystrup Jun 19, 2026
29fe1ad
More indentations...
KasperThystrup Jun 19, 2026
d144a23
Merge pull request #178 from ssi-dk/test_docs
KasperThystrup Jun 19, 2026
0942535
Bump version
invalid-email-address Jun 19, 2026
0543428
Add automatic labeling workflow for issue comments
KasperThystrup Jun 19, 2026
0585039
Update PR label logic to include 'patch' but not 'add'
KasperThystrup Jun 19, 2026
78be03d
Replaced labelling from Title to comments only
KasperThystrup Jun 22, 2026
b001594
Readded synchronize
KasperThystrup Jun 22, 2026
a682f59
GPT stuff
KasperThystrup Jun 22, 2026
8e7d142
Attempt at subtle silent err
KasperThystrup Jun 22, 2026
2dc5632
Merge pull request #179 from ssi-dk/label_comments
KasperThystrup Jun 22, 2026
6001a81
Bump version
invalid-email-address Jun 22, 2026
ad9fa3f
test commit
KasperThystrup Jun 22, 2026
6f0094b
Revert to previous
KasperThystrup Jun 22, 2026
d20be98
Added label removal step
KasperThystrup Jun 22, 2026
654b76e
Merge pull request #181 from ssi-dk/revert
KasperThystrup Jun 22, 2026
94b5343
Bump version
invalid-email-address Jun 22, 2026
b119b7b
Add version argument to create module
KasperThystrup Jun 29, 2026
3ad94e6
Add version argument to deploy script
KasperThystrup Jun 29, 2026
713e980
Fix indentation for version argument in create.py
KasperThystrup Jun 29, 2026
1f03ef5
Fix formatting of version argument in deploy.py
KasperThystrup Jun 29, 2026
df19ed2
Implement version flag in mmaseq.py
KasperThystrup Jun 29, 2026
f5d9077
Change import verification to mmaseq version check
KasperThystrup Jun 29, 2026
bdfd4b1
Version now always print MMAseq rather than file name
KasperThystrup Jun 30, 2026
e645f3a
Merge pull request #184 from ssi-dk/version
KasperThystrup Jun 30, 2026
0d7cee3
Bump version
invalid-email-address Jun 30, 2026
8d1a73d
Merge pull request #185 from ssi-dk/pointfix
KasperThystrup Jun 30, 2026
1bd61f7
Added minor test functionality (#182)
KasperThystrup Jun 30, 2026
ecfca71
Add pull request creation after version bump
KasperThystrup Jul 1, 2026
5e35e76
Added delay to validation
KasperThystrup Jul 1, 2026
82f0511
Decrease check-label deleay
KasperThystrup Jul 1, 2026
395e3c4
Implement wait step for label validation in workflow
KasperThystrup Jul 1, 2026
8a1a674
Clearing up messages
KasperThystrup Jul 1, 2026
11ac0b7
Revert pull request creation from version bump workflow
KasperThystrup Jul 1, 2026
fc3ee25
Removed duplicate body variables
KasperThystrup Jul 1, 2026
4b1358c
Cleared error message
KasperThystrup Jul 1, 2026
2b90c44
Fix conditional statement in PR.yml
KasperThystrup Jul 1, 2026
97c32d6
Build pull request creation after version bump
KasperThystrup Jul 1, 2026
8835daa
Rename VALIDATION.yml to resolve merge conflict
KasperThystrup Jul 1, 2026
933d8fe
Merge branch 'dev' into build_comments_syntax
KasperThystrup Jul 1, 2026
4927152
Removed duplicate body variables
KasperThystrup Jul 1, 2026
0ca3ba5
Standardized output file names
KasperThystrup Jul 1, 2026
a308b59
Github: Added patch keyword to autolabelling (#190)
KasperThystrup Jul 2, 2026
4f73f6c
Identified and described a new ftp connection error (#189)
KasperThystrup Jul 2, 2026
fad4d2c
GitHub: Update version label validation in workflow (#192)
KasperThystrup Jul 2, 2026
0d87c5c
Added custom species config flag (#191)
KasperThystrup Jul 3, 2026
8502113
Add CPO.yaml configuration
KasperThystrup Jul 3, 2026
244c228
Refactor E_coli.yaml configuration for tools
KasperThystrup Jul 3, 2026
6e7f686
Refactored E_Faecium.yaml configuration settings
KasperThystrup Jul 3, 2026
f54c2fc
Refactored E_Faecalis.yaml configuration settings
KasperThystrup Jul 3, 2026
bd0973c
Correct species name casing in E_Faecium.yaml
KasperThystrup Jul 3, 2026
e608b52
Splitting rules into Paired reads, Single reads, and analysis (#157)
KasperThystrup Jul 3, 2026
2facb9f
New species
SimoneScrima Jul 3, 2026
f76c327
Merge branch 'dev' into species_reconfigured
KasperThystrup Jul 3, 2026
6ca232b
Merge branch 'spec_local' into species_reconfigured
SimoneScrima Jul 3, 2026
c7e64c8
Added retries for curl when failing
SimoneScrima Jul 20, 2026
1b8bfea
Splitted klebsiella in oxytoca and pneumoniae since it amrfinderplus …
SimoneScrima Jul 20, 2026
109ca24
Fixed errors in the configs
SimoneScrima Jul 20, 2026
cbe12c7
Added spades to shovill env to avoid crash
SimoneScrima Jul 20, 2026
a4a7d45
Small fix to blastn rule to have a header and wrangle better the fina…
SimoneScrima Jul 21, 2026
b320e11
Merge branch 'species_reconfigured' of https://github.com/ssi-dk/MMAS…
SimoneScrima Jul 21, 2026
1ad48cc
Fix correct preset for K.oxytoca in kleborate
SimoneScrima Jul 21, 2026
c805a31
Changed envs for Vanco fetch rules
KasperThystrup Jul 27, 2026
1539119
Merge pull request #194 from ssi-dk/species_reconfigured
SimoneScrima Aug 6, 2026
1afe738
Tried to delete bam_filtration rule
SimoneScrima Aug 6, 2026
bf0d752
Deleted the rule
SimoneScrima Aug 6, 2026
4709159
Merge pull request #202 from ssi-dk/fix_bam_out
SimoneScrima Aug 6, 2026
655c74b
Fix path output chtyper single read
SimoneScrima Aug 6, 2026
cd24c18
Merge pull request #204 from ssi-dk/fix_chtyper_SR
SimoneScrima Aug 6, 2026
e9e3593
Github: Restructure entire workflow setup (#199)
KasperThystrup Aug 13, 2026
2b29d1d
Cancel old build
KasperThystrup Aug 13, 2026
0a2a5e4
Fix version string format in __version__.py
KasperThystrup Aug 13, 2026
3b1a9d6
Update pull request validation types
KasperThystrup Aug 13, 2026
d7b30d2
Fix echo command for labelling major authorized
KasperThystrup Aug 13, 2026
8390124
Add condition to skip build for labeled PRs
KasperThystrup Aug 13, 2026
4afdc51
Fix syntax for conditional in validate.yml
KasperThystrup Aug 13, 2026
103f34c
Update workflow to use bioconda::self for building enviornment (#207)
KasperThystrup Aug 14, 2026
e88c5bc
Add label check for pull requests
KasperThystrup Aug 14, 2026
8c0e76e
Add 'edited' type to pull request validation
KasperThystrup Aug 14, 2026
dcac888
Change PR label checks to issue label checks
KasperThystrup Aug 14, 2026
b4e8f3b
Refactor GitHub Actions workflow for builds (#210)
KasperThystrup Aug 14, 2026
119adc8
Add pull request template
KasperThystrup Aug 14, 2026
9fe9f9d
Refactor validate.yml to simplify build steps
KasperThystrup Aug 14, 2026
4fcdf1a
Improve pull request template clarity and instructions (#212)
KasperThystrup Aug 14, 2026
ae5faab
Fixed publish workflow file name
KasperThystrup Aug 14, 2026
17a9274
Import os module in bump_version.py
KasperThystrup Aug 14, 2026
6facecb
Skip test pipeline if 'build' label is present
KasperThystrup Aug 14, 2026
6aeb6c2
Merge branch 'main' into dev
KasperThystrup Aug 14, 2026
9f9ffc7
Added serovar detector
KasperThystrup Aug 4, 2026
3850184
Added test sample and settings
KasperThystrup Aug 5, 2026
cb977d5
Add serovar_detector configuration to test.yaml
KasperThystrup Aug 5, 2026
5f3a8db
Fix: Added logs
KasperThystrup Aug 10, 2026
528e0fb
Fix command to use full assembly path in serovar_detector
KasperThystrup Aug 13, 2026
90f8a60
Update serovar_detector command to use paired inputs
KasperThystrup Aug 13, 2026
a1da635
Fixing typo
KasperThystrup Aug 14, 2026
7bab533
Rename workflow from 'Commands' to 'Update PR Labels'
KasperThystrup Aug 14, 2026
6fcf805
Merge pull request #219 from ssi-dk/bump_fixing
KasperThystrup Aug 17, 2026
f08ca12
Bump version to v2.0.0
invalid-email-address Aug 17, 2026
0a4c5cb
Bump to 2.1.0
KasperThystrup Aug 17, 2026
576e62a
Merge branch 'main' into dev
KasperThystrup Aug 17, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .github/scripts/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@

major, minor, patch = map(int, m.groups())

print(
"Before",
f"label: {label}",
f"major: {major}",
f"minor: {minor}",
f"patch: {patch}",
sep = "\n"
)

if label == "major":
major += 1
minor = 0
Expand All @@ -32,13 +41,16 @@

new_version = f'{major}.{minor}.{patch}'

text = re.sub(
r'__version__ = ".*"',
f'__version__ = "{new_version}"',
text,
print(
"After",
"new_version: {new_version}",
f"major: {major}",
f"minor: {minor}",
f"patch: {patch}",
sep = "\n"
)

version_file.write_text(text)
version_file.write_text(new_version)

# Write new version to Github actions
if "GITHUB_OUTPUT" in os.environ:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/comments.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Commands
name: Update PR Labels
on:
issue_comment:
types: [created]
Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ jobs:
run: |
git config user.name github-actions
git config user.email github-actions@github.com

git add src/mmaseq/__version__.py

# Reference the output generated by your python script
NEW_VER="${{ steps.bumper.outputs.new_version }}"

git commit -m "Bump version to v$NEW_VER"
git push

# Only commit if there are staged changes
if ! git diff-index --quiet --cached HEAD --; then
NEW_VER="${{ steps.bumper.outputs.new_version }}"
git commit -m "Bump version to v$NEW_VER"
git push
else
echo "No changes detected, skipping commit"
fi
2 changes: 1 addition & 1 deletion src/mmaseq/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.0.0"
2.1.0
2 changes: 2 additions & 0 deletions src/mmaseq/config/species_configs/A_pleuropneumoniae.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
serovar_detector:
reads: True
3 changes: 3 additions & 0 deletions src/mmaseq/config/species_configs/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,6 @@ sistr:
kmeraligner:
database : [vancomycin, vancomycinOperon]
reads: True

serovar_detector:
reads: True
1 change: 1 addition & 0 deletions src/mmaseq/data/samplesheet.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ SRR26205262 reads/SRR26205262_1.fastq.gz reads/SRR26205262_2.fastq.gz assemblies
ERR2929615 reads/ERR2929615_1.fastq.gz reads/ERR2929615_2.fastq.gz assemblies/ERR2929615.fasta E_Faecalis.yaml
ERR2929578 reads/ERR2929578_1.fastq.gz reads/ERR2929578_2.fastq.gz assemblies/ERR2929578.fasta E_Faecium.yaml
ERR142064 reads/ERR142064_1.fastq.gz reads/ERR142064_2.fastq.gz assemblies/ERR142064.fasta C_difficile.yaml
ERR14229029 reads/ERR14229029_1.fastq.gz reads/ERR14229029_2.fastq.gz assemblies/ERR14229029.fasta A_pleuropneumoniae.yaml
3 changes: 3 additions & 0 deletions src/mmaseq/workflow/envs/serovar_detector.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: serovar_detector
dependencies:
- bioconda::serovar_detector
26 changes: 26 additions & 0 deletions src/mmaseq/workflow/rules/Analysis.smk
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,32 @@ rule serotypefinder:
mv $OUTDIR/{params.tmp_results} {output.results} >> {log.stdout} 2>&1
"""


rule serovar_detector:
input:
assembly = rules.assembly.output.assembly
params:
tmp_results = "serovars.tsv"
output:
results = f"{outdir}/{{sample}}/raw/serovar_detector/serovar_detector.tsv"
conda:
ENVS_DIR / "serovar_detector.yaml"
log:
stdout = f"{logdir}/serovar_detector_{{sample}}.log"
shell:
"""
OUTDIR=$(dirname {output.results})

cmd="serovar_detector -A {input.assembly} -o $OUTDIR -t 1"

echo "Executing command:\n$cmd\n" > {log.stdout} 2>&1
eval $cmd >> {log.stdout} 2>&1

echo "Renaming result files" >> {log.stdout} 2>&1
mv $OUTDIR/{params.tmp_results} {output.results} >> {log.stdout} 2>&1
"""


### SNP Analysis ###

# Samtools and bcftools
Expand Down
27 changes: 27 additions & 0 deletions src/mmaseq/workflow/rules/Paired_Reads.smk
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,33 @@ rule PR_serotypefinder:
mv $OUTDIR/{params.tmp_results} {output.results} >> {log.stdout} 2>&1
"""


rule PR_serovar_detector:
input:
R1 = lambda wc: samplesheet.loc[wc.sample, "read1"],
R2 = lambda wc: samplesheet.loc[wc.sample, "read2"]
params:
tmp_results = "serovars.tsv"
output:
results = f"{outdir}/{{sample}}/raw/PR/serovar_detector/serovar_detector.tsv"
conda:
ENVS_DIR / "serovar_detector.yaml"
log:
stdout = f"{logdir}/PR/serovar_detector_{{sample}}.log"
shell:
"""
OUTDIR=$(dirname {output.results})

cmd="serovar_detector -1 {input.R1} -2 {input.R2} -o $OUTDIR -t 1"

echo "Executing command:\n$cmd\n" > {log.stdout} 2>&1
eval $cmd >> {log.stdout} 2>&1

echo "Renaming result files" >> {log.stdout} 2>&1
mv $OUTDIR/{params.tmp_results} {output.results} >> {log.stdout} 2>&1
"""


rule PR_lrefinder:
input:
res = rules.PR_kmeraligner.output.results,
Expand Down
Loading