-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
122 lines (116 loc) · 4.39 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#! /usr/bin/env python3
"""
Setup script for Djerba
"""
from setuptools import setup, find_packages
with open('src/lib/djerba/version.py') as version_file:
exec(version_file.read()) # sets __version__
package_root = 'src/lib'
# list of wildcards, intended to capture ancillary files for plugins/helpers/mergers
# TODO make this neater and/or introduce stronger naming conventions
install_wildcards = [
'*.json',
'*.html',
'*.txt',
'*.r',
'*.R',
'data/*',
'html/*',
'resources/*',
'R/*',
'r/*',
'Rscripts/*'
]
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name='djerba',
version=__version__,
scripts=[
'src/bin/benchmark.py',
'src/bin/djerba.py',
'src/bin/generate_ini.py',
'src/bin/mini_djerba.py',
'src/bin/update_oncokb_cache.py',
'src/bin/validate_plugin_json.py'
],
packages=find_packages(where=package_root),
package_dir={'' : package_root},
package_data={
'djerba': [
'data/20200818-oncoKBcancerGeneList.tsv',
'data/20240315-allCuratedGenes.tsv',
'data/OncoTree.json',
'data/NCCN_annotations.txt',
'data/benchmark_config.ini',
'data/benchmark_params.json',
'data/cytoBand.txt',
'data/ensemble_conversion_hg38.txt',
'data/entrez_conversion.txt',
'data/gencode_v33_hg38_genes.bed',
'data/gencode.v31.ensg_annotation_w_entrez.bed',
'data/hg38_centromeres.txt',
'data/tcga_code_key.txt',
'data/tmbcomp-externaldata.txt',
'data/tmbcomp-tcga.txt',
],
'djerba.core': install_wildcards,
'djerba.helpers.expression_helper': install_wildcards,
'djerba.helpers.input_params_helper': install_wildcards,
'djerba.helpers.provenance_helper': install_wildcards,
'djerba.helpers.pwgs_cardea_helper': install_wildcards,
'djerba.helpers.tar_input_params_helper': install_wildcards,
'djerba.mergers.gene_information_merger': install_wildcards,
'djerba.mergers.treatment_options_merger': install_wildcards,
'djerba.plugins.benchmark': install_wildcards,
'djerba.plugins.captiv8': install_wildcards,
'djerba.plugins.case_overview': install_wildcards,
'djerba.plugins.cnv': install_wildcards,
'djerba.plugins.demo1': install_wildcards,
'djerba.plugins.demo2': install_wildcards,
'djerba.plugins.demo3': install_wildcards,
'djerba.plugins.failed_report': install_wildcards,
'djerba.plugins.fusion': install_wildcards,
'djerba.plugins.genomic_landscape': install_wildcards,
'djerba.plugins.patient_info': install_wildcards,
'djerba.plugins.pwgs.analysis': install_wildcards,
'djerba.plugins.pwgs.case_overview': install_wildcards,
'djerba.plugins.pwgs.sample': install_wildcards,
'djerba.plugins.pwgs.summary': install_wildcards,
'djerba.plugins.report_title': install_wildcards,
'djerba.plugins.sample': install_wildcards,
'djerba.plugins.summary': install_wildcards,
'djerba.plugins.supplement.body': install_wildcards,
'djerba.plugins.tar.sample': install_wildcards,
'djerba.plugins.tar.snv_indel': install_wildcards,
'djerba.plugins.tar.snv_indel.snv_indel_tools': install_wildcards,
'djerba.plugins.tar.swgs': install_wildcards,
'djerba.plugins.wgts.cnv_purple': install_wildcards,
'djerba.plugins.wgts.common.cnv': install_wildcards,
'djerba.plugins.wgts.snv_indel': install_wildcards,
'alternate_djerba.plugins.demo4': install_wildcards,
},
install_requires=[
'configparse',
'email_validator',
'jsonschema',
'mako',
'markdown',
'numpy==1.23.1', # set exact version to avoid build conflict with gsi-qc-etl
'pandas',
'pdfkit',
'pyinstaller',
'PyPDF2',
'requests',
'statsmodels',
],
python_requires='>=3.10.6',
author="Iain Bancarz",
author_email="ibancarz [at] oicr [dot] on [dot] ca",
description="Create reports from metadata and workflow output",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/oicr-gsi/djerba",
keywords=['cancer', 'bioinformatics'],
license='GPL 3.0',
)