Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ __pycache__/
*.egg-info/
dist/
build/
.idea/
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
PYTHON ?= .venv/bin/python
# override PYTHON to use an active interpreter, e.g. `PYTHON=$(which python) make ...`
SYSTEM_PYTHON ?= python3
PROJECT ?= glioblastoma_perplexity_manual
SKIP_BAD ?= 1
MPLCONFIGDIR ?= $(PWD)/.mpl-cache
XDG_CACHE_HOME ?= $(PWD)/.cache
ENV_VARS = MPLCONFIGDIR=$(MPLCONFIGDIR) XDG_CACHE_HOME=$(XDG_CACHE_HOME)
Expand All @@ -16,7 +18,7 @@ cache_dirs:

.PHONY: data
data: cache_dirs
$(ENV_VARS) $(PYTHON) -m src.process_deepsearch --project $(PROJECT)
$(ENV_VARS) $(PYTHON) -m src.process_deepsearch --project $(PROJECT) $(if $(filter 1 true True,$(SKIP_BAD)),--skip-bad,)

.PHONY: comparisons
comparisons: data cache_dirs
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ Pipeline for parsing Perplexity DeepSearch outputs, comparing pseudo-enrichment
PROJECT=glioblastoma_perplexity_manual make master_report
make test # run pytest
make coverage # pytest with coverage report

# New project scaffold
python -m src.init_project --project my_project
# then fill projects/my_project/description.md and geneset_folder_mapping.csv,
# add runs under deepsearch/my_project/, comparisons under Comparisons/my_project/,
# and run with PROJECT=my_project make master_report

# If run markdowns are malformed, you can skip bad ones:
PROJECT=my_project make data SKIP_BAD=1 # or python -m src.process_deepsearch --project my_project --skip-bad
```
Targets: `data` (parse runs), `comparisons` (parse GO tables), `figures`, `heatmaps`, `run_reports`, `master_report`. Environment variables `MPLCONFIGDIR` and `XDG_CACHE_HOME` default to repo-local caches.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading