Skip to content

Commit 6131652

Browse files
authored
Merge pull request #187 from AlexandrovLab/v1.0.3-release
v1.0.3: Add parameter to toggle automatic background signature addition
2 parents 28c19a7 + 6f82903 commit 6131652

File tree

3 files changed

+27
-12
lines changed

3 files changed

+27
-12
lines changed

.travis.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,24 @@ after_success:
4646
REPO_NAME=$(basename $TRAVIS_REPO_SLUG | tr '[:upper:]' '[:lower:]')
4747
IMAGE_NAME="ghcr.io/alexandrovlab/$REPO_NAME"
4848
49-
echo "Building version: $VERSION_TAG for image: $IMAGE_NAME"
50-
49+
echo "Checking if $IMAGE_NAME:$VERSION_TAG already exists on GHCR..."
5150
echo "$GHCR_PASSWORD" | docker login ghcr.io -u "$GHCR_USERNAME" --password-stdin
5251
53-
docker build \
54-
--build-arg COMMIT_SHA=$TRAVIS_COMMIT \
55-
-t $IMAGE_NAME:$VERSION_TAG \
56-
-t $IMAGE_NAME:latest .
52+
if docker manifest inspect $IMAGE_NAME:$VERSION_TAG > /dev/null 2>&1; then
53+
echo "Tag $IMAGE_NAME:$VERSION_TAG already exists. Skipping Docker push."
54+
else
55+
echo "Building version: $VERSION_TAG for image: $IMAGE_NAME"
56+
57+
docker build \
58+
--build-arg COMMIT_SHA=$TRAVIS_COMMIT \
59+
-t $IMAGE_NAME:$VERSION_TAG \
60+
-t $IMAGE_NAME:latest .
5761
58-
docker push $IMAGE_NAME:$VERSION_TAG
59-
docker push $IMAGE_NAME:latest
62+
docker push $IMAGE_NAME:$VERSION_TAG
63+
docker push $IMAGE_NAME:latest
6064
61-
echo "Docker deployment to GHCR successful"
65+
echo "Docker deployment to GHCR successful"
66+
fi
6267
else
6368
echo "Skipping Docker deployment"
64-
fi
69+
fi

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
## [1.0.3] - 2025-10-31
10+
### Added
11+
- Added `add_background_signatures` parameter (default: `True`) to control whether background signatures SBS1 and SBS5 are automatically added during signature assignment.
12+
- Parameter available in `spa_analyze()`, `signature_decomposition()`, and all Analyzer functions (`decompose_fit()`, `denovo_fit()`, `cosmic_fit()`).
13+
- CLI parameter `--add_background_signatures` added to match Python API functionality.
14+
- When set to `False`, background signatures are not forced but may still be detected naturally if present in samples.
15+
16+
### Changed
17+
- Background signature assignment logic now respects the `add_background_signatures` parameter instead of always forcing SBS1/SBS5 inclusion.
18+
919
## [1.0.2] - 2025-10-28
1020

1121
### Added

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
if os.path.exists("dist"):
77
shutil.rmtree("dist")
88

9-
VERSION = "1.0.2"
9+
VERSION = "1.0.3"
1010

1111

1212
def write_version_py(filename="SigProfilerAssignment/version.py"):
@@ -15,7 +15,7 @@ def write_version_py(filename="SigProfilerAssignment/version.py"):
1515
# THIS FILE IS GENERATED FROM SigProfilerAssignment SETUP.PY
1616
short_version = '%(version)s'
1717
version = '%(version)s'
18-
Update = 'v1.0.2: Add automated Docker build and publish pipeline'
18+
Update = 'v1.0.3: Add parameter to toggle automatic background signature addition'
1919
2020
"""
2121
fh = open(filename, "w")

0 commit comments

Comments
 (0)