Skip to content
Open
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
6 changes: 6 additions & 0 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ rule grid_search:
valid_df = rules.eval_clonotypes.output.data
output:
grid = RES_DIR + "/eval_clonotypes/grid_search/{ext_thr}.csv"
conda:
"envs/basic_dependencies.yaml"
shell:
"python scripts/G1_grid_search.py \
--input {input.valid_df} \
Expand All @@ -72,6 +74,8 @@ rule extract_optimal_threshold:
output:
plots = expand(PLT_DIR + "/eval_clonotypes/grid_search/grid.{ext}", ext=["pdf", "png"]),
opt_thr = RES_DIR + "/eval_clonotypes/threshold/opt.csv"
conda:
"envs/basic_dependencies.yaml"
shell:
"python scripts/G2_extract_optimal_threshold.py \
--data {input.valid} \
Expand All @@ -92,6 +96,8 @@ rule get_filters:
output:
lbl = RES_DIR + "/eval_clonotypes/threshold/{filtering_set}.yaml",
flt = RES_DIR + "/eval_clonotypes/threshold/{filtering_set}.csv"
conda:
"envs/basic_dependencies.yaml"
shell:
"python scripts/H_set_filters.py \
--data {input.valid} \
Expand Down
20 changes: 12 additions & 8 deletions envs/basic_dependencies.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: basic_dependencies
channels:
- conda-forge
- conda
- bioconda
- defaults
dependencies:
- pandas = 1.3.3
- numpy = 1.19.2
- matplotlib = 3.0.3 #3.3.4 #
- seaborn = 0.11.2 #0.10.1 #
- openpyxl = 3.0.7
- numexpr = 2.7.3
- pyyaml = 5.1
- python=3.10
- numpy=1.23.0
- pandas=1.3.5
- matplotlib=3.5.1
- pyyaml=6.0
- snakemake=7.32.4
- scipy=1.11.4
- pip
- pip:
- seaborn
2 changes: 1 addition & 1 deletion scripts/I_filter_impact.staircase.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def modify_legend(h,l):
ax.set_xticklabels([])
if save:
plt.savefig(title, bbox_inches='tight', dpi=100)
plt.show()
#plt.show()


##########################################################
Expand Down