Skip to content

Commit 8bf4694

Browse files
authored
Merge pull request #131 from AlexandrovLab/development
Development
2 parents 7077caf + a56f325 commit 8bf4694

17 files changed

+176
-28
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@ before_install:
1616
fi
1717

1818
install:
19-
- pip install .
19+
- pip install .[tests]
2020

2121
before_script:
2222
- python3 install_genome.py $TRAVIS_BUILD_DIR/src/
2323

24-
script: python3 test.py
24+
script:
25+
# run unit tests
26+
- pytest tests
27+
# run integration tests
28+
- python3 test.py

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
# Changelog
3+
4+
All notable changes to this project will be documented in this file.
5+
6+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [Unreleased]
9+
10+
## [0.1.7] - 2024-06-21
11+
12+
### Added
13+
- Added CLI boolean handling to improve command-line interface usability.
14+
- Added new pytests for CLI to ensure correct handling of booleans.
15+
- Updated the README to reflect the new pytest additions.
16+
- Updated CI/CD pipelines to accommodate pytest changes.
17+
18+
### Changed
19+
- Improved input_type value check mechanism to use .lower() before checking against values 'vcf' or 'matrix'.
20+
- Updated dependency from PyPDF2 to pypdf to increase compatibility and resolve installation issues on bioconda.
21+
22+

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,15 @@ Analyze.cosmic_fit(samples=spa.__path__[0]+"/data/tests/txt_input/sample_matrix_
160160
## <a name="denovo"></a> _De novo_ extraction of mutational signatures downstream analysis
161161
Additional functionalities for downstream analysis of _de novo_ extraction of mutational signatures are also available as part of SigProfilerAssignment, including assignment of _de novo_ extracted mutational signatures and decomposition of _de novo_ signatures using a known set of signatures. More information can be found on the wiki page at https://osf.io/mz79v/wiki/5.%20Advanced%20mode/.
162162

163+
## <a name="unit_tests"></a> Unit Tests
164+
Unit tests can be run with the following commands:
165+
166+
```bash
167+
python setup.py sdist
168+
pip install .[tests]
169+
pytest tests
170+
```
171+
163172
## <a name="citation"></a> Citation
164173

165174
Díaz-Gay, M., Vangara, R., Barnes, M., ... & Alexandrov, L. B. (2023). Assigning mutational signatures to individual samples and individual somatic mutations with SigProfilerAssignment, Bioinformatics, 2023-07. doi: [https://doi.org/10.1093/bioinformatics/btad756](https://doi.org/10.1093/bioinformatics/btad756)

SigProfilerAssignment/DecompositionPlots/PlotDecomposition_CNV48.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from reportlab.pdfbase.ttfonts import TTFont
1212
from reportlab.pdfbase import pdfmetrics
1313
import SigProfilerAssignment as spa_path
14-
from PyPDF2 import PdfWriter, PdfReader
14+
from pypdf import PdfWriter, PdfReader
1515

1616
# imports for saving plots to memory
1717
import io

SigProfilerAssignment/DecompositionPlots/PlotDecomposition_DBS78.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from reportlab.pdfbase.ttfonts import TTFont
1212
from reportlab.pdfbase import pdfmetrics
1313
import SigProfilerAssignment as spa_path
14-
from PyPDF2 import PdfWriter, PdfReader
14+
from pypdf import PdfWriter, PdfReader
1515

1616
# imports for saving plots to memory
1717
import io

SigProfilerAssignment/DecompositionPlots/PlotDecomposition_ID83.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from reportlab.pdfbase.ttfonts import TTFont
1212
from reportlab.pdfbase import pdfmetrics
1313
import SigProfilerAssignment as spa_path
14-
from PyPDF2 import PdfWriter, PdfReader
14+
from pypdf import PdfWriter, PdfReader
1515

1616
# imports for saving plots to memory
1717
import io

SigProfilerAssignment/DecompositionPlots/PlotDecomposition_SBS1536.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from reportlab.pdfbase.ttfonts import TTFont
1212
from reportlab.pdfbase import pdfmetrics
1313
import SigProfilerAssignment as spa_path
14-
from PyPDF2 import PdfWriter, PdfReader
14+
from pypdf import PdfWriter, PdfReader
1515

1616
# imports for saving plots to memory
1717
import io

SigProfilerAssignment/DecompositionPlots/PlotDecomposition_SBS288.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from reportlab.pdfbase.ttfonts import TTFont
1212
from reportlab.pdfbase import pdfmetrics
1313
import SigProfilerAssignment as spa_path
14-
from PyPDF2 import PdfWriter, PdfReader
14+
from pypdf import PdfWriter, PdfReader
1515

1616
# imports for saving plots to memory
1717
import io

SigProfilerAssignment/DecompositionPlots/PlotDecomposition_SBS96.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from reportlab.pdfbase.ttfonts import TTFont
1212
from reportlab.pdfbase import pdfmetrics
1313
import SigProfilerAssignment as spa_path
14-
from PyPDF2 import PdfWriter, PdfReader
14+
from pypdf import PdfWriter, PdfReader
1515

1616
# imports for saving plots to memory
1717
import io

SigProfilerAssignment/DecompositionPlots/PlotDecomposition_SV32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from reportlab.pdfbase.ttfonts import TTFont
1212
from reportlab.pdfbase import pdfmetrics
1313
import SigProfilerAssignment as spa_path
14-
from PyPDF2 import PdfWriter, PdfReader
14+
from pypdf import PdfWriter, PdfReader
1515

1616
# imports for saving plots to memory
1717
import io

0 commit comments

Comments
 (0)