File tree 12 files changed +86
-54
lines changed
12 files changed +86
-54
lines changed Original file line number Diff line number Diff line change
1
+ .tox
2
+ * .egg-info
3
+ ** /__pycache__
4
+ ** /* .pyc
Original file line number Diff line number Diff line change 1
- #include README.rst
2
- #include docs/*.txt
1
+ include VERSION
Original file line number Diff line number Diff line change 1
1
# Somatic base substitution caller for LRS
2
2
3
- Python tool that calls somatic base substitutions from matched tumour normal whole genome pileups.
3
+ Python tool that calls somatic base substitutions from matched tumour- normal whole genome pileups.
4
4
5
- ## Getting Started
6
-
7
- Pip install
5
+ #### Required
8
6
9
- ### Prerequisites
7
+ Python 3.6+
10
8
11
- samtools/1.10
12
- htslib/1.10.2
13
- tabix/0.2.6
9
+ ## Install
14
10
15
- Pileups from samtools
16
- bgzip pileup_name
17
- tabix -b 2 -e 2 pileup_name.gz
11
+ Install into a virtualenv is recommended, _ e.g._ :
18
12
19
- #### Required
13
+ python3 -m venv SBSC
14
+ source SBSC/bin/activate
15
+ tempdir=$(mktemp -d)
16
+ git clone https://github.com/shimbalama/SBSC $tempdir
17
+ cd $tempdir
18
+ pip3 install -r requirements.txt .
20
19
21
- Python 3
22
-
23
- #### Optional
20
+ ### Prerequisites
24
21
25
- NA
22
+ Tabix-indexed pileups from samtools
26
23
27
- ### Installing
24
+ bgzip pileup_name
25
+ tabix -b 2 -e 2 pileup_name.gz
28
26
29
- pip install SBSC
27
+ When the tool runs ` .tbi ` index files are presumed to exist adjacent to input pileup files.
30
28
31
29
## Running the program
32
30
33
- SBSC.py -h
31
+ # help
32
+ SBSCall.py --help
33
+
34
+ # basic example
35
+ SBSCall.py \
36
+ -r /path/to/reference \
37
+ -o /path/to/output \
38
+ -c /path/to/cancer_pileup.gz \
39
+ -n /path/to/normal_pileup.gz
34
40
35
41
## Authors
36
42
@@ -42,4 +48,4 @@ This project is licensed under the MIT License. See LICENSE
42
48
43
49
## Acknowledgments
44
50
45
- QMIR medical genomics team
51
+ QIMR Berghofer medical genomics team
Original file line number Diff line number Diff line change
1
+ 0.0.12
Original file line number Diff line number Diff line change
1
+ [build-system ]
2
+ requires = [
3
+ " pip" ,
4
+ " setuptools>=42" ,
5
+ " wheel"
6
+ ]
7
+ build-backend = " setuptools.build_meta"
Original file line number Diff line number Diff line change
1
+ biopython == 1.79
2
+ pandas == 1.3.3
3
+ pysam == 0.16.0.1
4
+ scipy == 1.7.1
Original file line number Diff line number Diff line change
1
+ [metadata]
2
+ name = SBSC
3
+ version = file: VERSION
4
+ description = A simple somatic SNV and MNV caller
5
+ long_description = file: README.md, LICENSE
6
+ author = Liam McIntyre
7
+ author_email = shimbalama@gmail.com
8
+ license = MIT License
9
+ classifiers:
10
+ Programming Language :: Python :: 3.6
11
+ License :: OSI Approved :: MIT License
12
+ Operating System :: OS Independent
13
+
14
+ [options]
15
+ include_package_data = True
16
+ packages = find:
17
+ python_requires = >=3.6
18
+ scripts =
19
+ bin/SBSCall.py
20
+ zip_safe = False
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ from unittest import TestCase
2
+ import shlex
3
+ import subprocess
4
+
5
+
6
+ class TestMain (TestCase ):
7
+ """
8
+ Integration tests
9
+ """
10
+ def test_help (self ):
11
+ """
12
+ Test that the script can be called by the documented name
13
+ """
14
+ result = subprocess .run (shlex .split ('python3 bin/SBSCall.py --help' ),
15
+ capture_output = True , text = True )
16
+ self .assertTrue (result .stdout .startswith ('usage: SBSCall.py' ))
Original file line number Diff line number Diff line change
1
+ [tox]
2
+ envlist = py39
3
+ isolated_build = True
4
+
5
+ [testenv]
6
+ commands = python3 -m unittest discover tests
7
+ deps = -rrequirements.txt
You can’t perform that action at this time.
0 commit comments