Spaces:
Sleeping
Sleeping
Commit ·
c49b86f
1
Parent(s): c4d5ae8
include all package versions in requirements.txt
Browse files- codes/utils.py +1 -1
- install_packages.R +3 -0
- requirements.txt +59 -59
codes/utils.py
CHANGED
|
@@ -216,7 +216,7 @@ def get_individual_pred_interpretation(shap_pred_sample_df: pd.DataFrame,
|
|
| 216 |
ax.text(left_margin, top_feature_num, f'feature: value', ha='right', va='center', fontsize=10)
|
| 217 |
|
| 218 |
# Adding legend
|
| 219 |
-
legend_elements = [Patch(facecolor=color, label=label) for label, color in zip(['Somatic Mut.', 'CNA events', 'Mutation Sig.', 'Age/Sex'], ['
|
| 220 |
ax.legend(handles=legend_elements, title='Feature Groups')
|
| 221 |
|
| 222 |
plt.tight_layout()
|
|
|
|
| 216 |
ax.text(left_margin, top_feature_num, f'feature: value', ha='right', va='center', fontsize=10)
|
| 217 |
|
| 218 |
# Adding legend
|
| 219 |
+
legend_elements = [Patch(facecolor=color, label=label) for label, color in zip(['Somatic Mut.', 'CNA events', 'Mutation Sig.', 'Age/Sex'], ['#984ea3', '#f781bf', '#4daf4a', '#377eb8'])]
|
| 220 |
ax.legend(handles=legend_elements, title='Feature Groups')
|
| 221 |
|
| 222 |
plt.tight_layout()
|
install_packages.R
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.libPaths("/usr/local/lib/R/site-library")
|
| 2 |
+
install.packages("BiocManager", repos="http://cran.rstudio.com/")
|
| 3 |
+
BiocManager::install("deconstructSigs")
|
requirements.txt
CHANGED
|
@@ -3,7 +3,7 @@ aiofiles==23.2.1
|
|
| 3 |
altair==5.1.2
|
| 4 |
annotated-types==0.6.0
|
| 5 |
anyio==3.7.1
|
| 6 |
-
appnope
|
| 7 |
argon2-cffi==23.1.0
|
| 8 |
argon2-cffi-bindings==21.2.0
|
| 9 |
arrow==1.3.0
|
|
@@ -12,33 +12,33 @@ async-lru==2.0.4
|
|
| 12 |
async-timeout==4.0.3
|
| 13 |
attrs==23.1.0
|
| 14 |
Babel==2.13.0
|
| 15 |
-
backcall
|
| 16 |
-
backports.functools-lru-cache
|
| 17 |
beautifulsoup4==4.12.2
|
| 18 |
bleach==6.1.0
|
| 19 |
blinker==1.7.0
|
| 20 |
blis==0.7.11
|
| 21 |
-
bookworm
|
| 22 |
bokeh==3.1.1
|
| 23 |
-
Bottleneck
|
| 24 |
-
Brotli
|
| 25 |
catalogue==2.0.10
|
| 26 |
certifi==2023.7.22
|
| 27 |
cffi==1.16.0
|
| 28 |
-
charset-normalizer
|
| 29 |
click==8.1.7
|
| 30 |
cloudpathlib==0.16.0
|
| 31 |
-
cloudpickle
|
| 32 |
-
colorama
|
| 33 |
-
comm
|
| 34 |
confection==0.1.4
|
| 35 |
-
contourpy
|
| 36 |
curated-tokenizers==0.0.8
|
| 37 |
curated-transformers==0.1.1
|
| 38 |
-
cycler
|
| 39 |
cymem==2.0.8
|
| 40 |
-
debugpy
|
| 41 |
-
decorator
|
| 42 |
defusedxml==0.7.1
|
| 43 |
distlib==0.3.8
|
| 44 |
emoji==2.9.0
|
|
@@ -59,18 +59,18 @@ h11==0.14.0
|
|
| 59 |
httpcore==0.18.0
|
| 60 |
httpx==0.25.0
|
| 61 |
huggingface-hub==0.18.0
|
| 62 |
-
idna
|
| 63 |
-
importlib-metadata
|
| 64 |
-
importlib-resources
|
| 65 |
ipykernel==6.25.2
|
| 66 |
-
ipython
|
| 67 |
ipython-genutils==0.2.0
|
| 68 |
ipywidgets==8.1.1
|
| 69 |
isoduration==20.11.0
|
| 70 |
itsdangerous==2.1.2
|
| 71 |
-
jedi
|
| 72 |
-
Jinja2
|
| 73 |
-
joblib
|
| 74 |
json5==0.9.14
|
| 75 |
jsonpointer==2.4
|
| 76 |
jsonschema==4.19.1
|
|
@@ -86,14 +86,14 @@ jupyterlab==4.0.6
|
|
| 86 |
jupyterlab-pygments==0.2.2
|
| 87 |
jupyterlab-widgets==3.0.9
|
| 88 |
jupyterlab_server==2.25.0
|
| 89 |
-
kiwisolver
|
| 90 |
langcodes==3.3.0
|
| 91 |
langdetect==1.0.9
|
| 92 |
llvmlite==0.40.1
|
| 93 |
lyricsgenius==3.0.1
|
| 94 |
-
MarkupSafe
|
| 95 |
-
matplotlib
|
| 96 |
-
matplotlib-inline
|
| 97 |
mistune==3.0.2
|
| 98 |
mpmath==1.3.0
|
| 99 |
munkres==1.1.4
|
|
@@ -106,61 +106,61 @@ networkx==3.1
|
|
| 106 |
ngrok==0.12.1
|
| 107 |
notebook==7.0.4
|
| 108 |
notebook_shim==0.2.3
|
| 109 |
-
numba
|
| 110 |
-
numexpr
|
| 111 |
-
numpy
|
| 112 |
orjson==3.9.8
|
| 113 |
overrides==7.4.0
|
| 114 |
-
packaging
|
| 115 |
-
pandas
|
| 116 |
pandocfilters==1.5.0
|
| 117 |
-
parso
|
| 118 |
-
pexpect
|
| 119 |
-
pickleshare
|
| 120 |
Pillow==10.1.0
|
| 121 |
pipenv==2023.12.1
|
| 122 |
pkgutil_resolve_name==1.3.10
|
| 123 |
-
platformdirs
|
| 124 |
plotly==5.18.0
|
| 125 |
-
pooch
|
| 126 |
preshed==3.0.9
|
| 127 |
prometheus-client==0.17.1
|
| 128 |
-
prompt-toolkit
|
| 129 |
-
psutil
|
| 130 |
-
ptyprocess
|
| 131 |
-
pure-eval
|
| 132 |
pycairo==1.25.1
|
| 133 |
pycparser==2.21
|
| 134 |
pydantic==2.4.2
|
| 135 |
pydantic_core==2.10.1
|
| 136 |
pydub==0.25.1
|
| 137 |
-
Pygments
|
| 138 |
-
pyparsing
|
| 139 |
# PyQt5==5.15.10
|
| 140 |
PyQt5-sip==12.13.0
|
| 141 |
-
PySocks
|
| 142 |
-
python-dateutil
|
| 143 |
python-json-logger==2.0.7
|
| 144 |
python-multipart==0.0.6
|
| 145 |
-
pytz
|
| 146 |
PyYAML==6.0.1
|
| 147 |
-
pyzmq
|
| 148 |
qtconsole==5.4.4
|
| 149 |
QtPy==2.4.0
|
| 150 |
redis==5.0.1
|
| 151 |
referencing==0.30.2
|
| 152 |
regex==2023.10.3
|
| 153 |
-
requests
|
| 154 |
rfc3339-validator==0.1.4
|
| 155 |
rfc3986-validator==0.1.1
|
| 156 |
rpds-py==0.10.4
|
| 157 |
-
scikit-learn
|
| 158 |
-
scipy
|
| 159 |
semantic-version==2.10.0
|
| 160 |
Send2Trash==1.8.2
|
| 161 |
shap==0.44.1
|
| 162 |
-
six
|
| 163 |
-
slicer
|
| 164 |
smart-open==6.4.0
|
| 165 |
sniffio==1.3.0
|
| 166 |
soupsieve==2.5
|
|
@@ -170,29 +170,29 @@ spacy-legacy==3.0.12
|
|
| 170 |
spacy-loggers==1.0.5
|
| 171 |
spotipy==2.23.0
|
| 172 |
srsly==2.4.8
|
| 173 |
-
stack-data
|
| 174 |
starlette==0.27.0
|
| 175 |
sympy==1.12
|
| 176 |
tenacity==8.2.3
|
| 177 |
terminado==0.17.1
|
| 178 |
thinc==8.2.2
|
| 179 |
-
threadpoolctl
|
| 180 |
tik==0.1.0
|
| 181 |
tinycss2==1.2.1
|
| 182 |
tomli==2.0.1
|
| 183 |
toolz==0.12.0
|
| 184 |
torch==2.1.2
|
| 185 |
-
tornado
|
| 186 |
-
tqdm
|
| 187 |
traitlets==5.11.2
|
| 188 |
typer==0.9.0
|
| 189 |
types-python-dateutil==2.8.19.14
|
| 190 |
-
typing_extensions
|
| 191 |
-
tzdata
|
| 192 |
tzlocal==5.2
|
| 193 |
-
unicodedata2
|
| 194 |
uri-template==1.3.0
|
| 195 |
-
urllib3
|
| 196 |
uvicorn==0.23.2
|
| 197 |
virtualenv==20.25.0
|
| 198 |
wasabi==1.1.2
|
|
@@ -206,4 +206,4 @@ Werkzeug==3.0.1
|
|
| 206 |
widgetsnbextension==4.0.9
|
| 207 |
xgboost==1.7.3
|
| 208 |
xyzservices==2023.10.1
|
| 209 |
-
zipp
|
|
|
|
| 3 |
altair==5.1.2
|
| 4 |
annotated-types==0.6.0
|
| 5 |
anyio==3.7.1
|
| 6 |
+
appnope==0.1.3
|
| 7 |
argon2-cffi==23.1.0
|
| 8 |
argon2-cffi-bindings==21.2.0
|
| 9 |
arrow==1.3.0
|
|
|
|
| 12 |
async-timeout==4.0.3
|
| 13 |
attrs==23.1.0
|
| 14 |
Babel==2.13.0
|
| 15 |
+
backcall==0.2.0
|
| 16 |
+
backports.functools-lru-cache==1.6.5
|
| 17 |
beautifulsoup4==4.12.2
|
| 18 |
bleach==6.1.0
|
| 19 |
blinker==1.7.0
|
| 20 |
blis==0.7.11
|
| 21 |
+
bookworm==0.2.1
|
| 22 |
bokeh==3.1.1
|
| 23 |
+
Bottleneck==1.3.7
|
| 24 |
+
Brotli==1.1.0
|
| 25 |
catalogue==2.0.10
|
| 26 |
certifi==2023.7.22
|
| 27 |
cffi==1.16.0
|
| 28 |
+
charset-normalizer==3.3.2
|
| 29 |
click==8.1.7
|
| 30 |
cloudpathlib==0.16.0
|
| 31 |
+
cloudpickle==3.0.0
|
| 32 |
+
colorama==0.4.6
|
| 33 |
+
comm==0.1.4
|
| 34 |
confection==0.1.4
|
| 35 |
+
contourpy==1.1.1
|
| 36 |
curated-tokenizers==0.0.8
|
| 37 |
curated-transformers==0.1.1
|
| 38 |
+
cycler==0.12.1
|
| 39 |
cymem==2.0.8
|
| 40 |
+
debugpy==1.8.0
|
| 41 |
+
decorator==5.1.1
|
| 42 |
defusedxml==0.7.1
|
| 43 |
distlib==0.3.8
|
| 44 |
emoji==2.9.0
|
|
|
|
| 59 |
httpcore==0.18.0
|
| 60 |
httpx==0.25.0
|
| 61 |
huggingface-hub==0.18.0
|
| 62 |
+
idna==3.4
|
| 63 |
+
importlib-metadata==6.8.0
|
| 64 |
+
importlib-resources==6.1.0
|
| 65 |
ipykernel==6.25.2
|
| 66 |
+
ipython==8.12.2
|
| 67 |
ipython-genutils==0.2.0
|
| 68 |
ipywidgets==8.1.1
|
| 69 |
isoduration==20.11.0
|
| 70 |
itsdangerous==2.1.2
|
| 71 |
+
jedi==0.19.1
|
| 72 |
+
Jinja2==3.1.2
|
| 73 |
+
joblib==1.3.2
|
| 74 |
json5==0.9.14
|
| 75 |
jsonpointer==2.4
|
| 76 |
jsonschema==4.19.1
|
|
|
|
| 86 |
jupyterlab-pygments==0.2.2
|
| 87 |
jupyterlab-widgets==3.0.9
|
| 88 |
jupyterlab_server==2.25.0
|
| 89 |
+
kiwisolver==1.4.5
|
| 90 |
langcodes==3.3.0
|
| 91 |
langdetect==1.0.9
|
| 92 |
llvmlite==0.40.1
|
| 93 |
lyricsgenius==3.0.1
|
| 94 |
+
MarkupSafe==2.1.3
|
| 95 |
+
matplotlib==3.7.2
|
| 96 |
+
matplotlib-inline==0.1.6
|
| 97 |
mistune==3.0.2
|
| 98 |
mpmath==1.3.0
|
| 99 |
munkres==1.1.4
|
|
|
|
| 106 |
ngrok==0.12.1
|
| 107 |
notebook==7.0.4
|
| 108 |
notebook_shim==0.2.3
|
| 109 |
+
numba==0.57.1
|
| 110 |
+
numexpr==2.8.4
|
| 111 |
+
numpy==1.24.3
|
| 112 |
orjson==3.9.8
|
| 113 |
overrides==7.4.0
|
| 114 |
+
packaging==23.2
|
| 115 |
+
pandas==2.0.3
|
| 116 |
pandocfilters==1.5.0
|
| 117 |
+
parso==0.8.3
|
| 118 |
+
pexpect==4.8.0
|
| 119 |
+
pickleshare==0.7.5
|
| 120 |
Pillow==10.1.0
|
| 121 |
pipenv==2023.12.1
|
| 122 |
pkgutil_resolve_name==1.3.10
|
| 123 |
+
platformdirs==3.11.0
|
| 124 |
plotly==5.18.0
|
| 125 |
+
pooch==1.8.0
|
| 126 |
preshed==3.0.9
|
| 127 |
prometheus-client==0.17.1
|
| 128 |
+
prompt-toolkit==3.0.39
|
| 129 |
+
psutil==5.9.5
|
| 130 |
+
ptyprocess==0.7.0
|
| 131 |
+
pure-eval==0.2.2
|
| 132 |
pycairo==1.25.1
|
| 133 |
pycparser==2.21
|
| 134 |
pydantic==2.4.2
|
| 135 |
pydantic_core==2.10.1
|
| 136 |
pydub==0.25.1
|
| 137 |
+
Pygments==2.16.1
|
| 138 |
+
pyparsing==3.0.9
|
| 139 |
# PyQt5==5.15.10
|
| 140 |
PyQt5-sip==12.13.0
|
| 141 |
+
PySocks==1.7.1
|
| 142 |
+
python-dateutil==2.8.2
|
| 143 |
python-json-logger==2.0.7
|
| 144 |
python-multipart==0.0.6
|
| 145 |
+
pytz==2023.3.post1
|
| 146 |
PyYAML==6.0.1
|
| 147 |
+
pyzmq==25.1.1
|
| 148 |
qtconsole==5.4.4
|
| 149 |
QtPy==2.4.0
|
| 150 |
redis==5.0.1
|
| 151 |
referencing==0.30.2
|
| 152 |
regex==2023.10.3
|
| 153 |
+
requests==2.31.0
|
| 154 |
rfc3339-validator==0.1.4
|
| 155 |
rfc3986-validator==0.1.1
|
| 156 |
rpds-py==0.10.4
|
| 157 |
+
scikit-learn==1.3.0
|
| 158 |
+
scipy==1.10.1
|
| 159 |
semantic-version==2.10.0
|
| 160 |
Send2Trash==1.8.2
|
| 161 |
shap==0.44.1
|
| 162 |
+
six==1.16.0
|
| 163 |
+
slicer==0.0.7
|
| 164 |
smart-open==6.4.0
|
| 165 |
sniffio==1.3.0
|
| 166 |
soupsieve==2.5
|
|
|
|
| 170 |
spacy-loggers==1.0.5
|
| 171 |
spotipy==2.23.0
|
| 172 |
srsly==2.4.8
|
| 173 |
+
stack-data==0.6.2
|
| 174 |
starlette==0.27.0
|
| 175 |
sympy==1.12
|
| 176 |
tenacity==8.2.3
|
| 177 |
terminado==0.17.1
|
| 178 |
thinc==8.2.2
|
| 179 |
+
threadpoolctl==3.2.0
|
| 180 |
tik==0.1.0
|
| 181 |
tinycss2==1.2.1
|
| 182 |
tomli==2.0.1
|
| 183 |
toolz==0.12.0
|
| 184 |
torch==2.1.2
|
| 185 |
+
tornado==6.3.3
|
| 186 |
+
tqdm==4.66.1
|
| 187 |
traitlets==5.11.2
|
| 188 |
typer==0.9.0
|
| 189 |
types-python-dateutil==2.8.19.14
|
| 190 |
+
typing_extensions==4.8.0
|
| 191 |
+
tzdata==2023.3
|
| 192 |
tzlocal==5.2
|
| 193 |
+
unicodedata2==15.1.0
|
| 194 |
uri-template==1.3.0
|
| 195 |
+
urllib3==2.0.7
|
| 196 |
uvicorn==0.23.2
|
| 197 |
virtualenv==20.25.0
|
| 198 |
wasabi==1.1.2
|
|
|
|
| 206 |
widgetsnbextension==4.0.9
|
| 207 |
xgboost==1.7.3
|
| 208 |
xyzservices==2023.10.1
|
| 209 |
+
zipp==3.17.0
|