Skip to content

Commit

Permalink
Merge pull request #72 from PNNL-CompBio/Abby
Browse files Browse the repository at this point in the history
Abby
  • Loading branch information
biodataganache authored Aug 24, 2022
2 parents 3756179 + 696c28d commit da20987
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 5 deletions.
23 changes: 23 additions & 0 deletions environment_Windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: snekmer
channels:
- anaconda
- bioconda
- numba
- conda-forge
dependencies:
- python >= 3.9
- biopython
- matplotlib
- numpy >= 1.22.3
- numba >= 0.56
- scipy
- pandas
- seaborn
- scikit-learn
- snakemake-minimal == 7.0
- umap-learn
- hdbscan
- pip
- pip:
- -e git+https://github.com/PNNL-CompBio/Snekmer#egg=snekmer

2 changes: 1 addition & 1 deletion snekmer/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def cv_roc_curve(clf, X, y, title="ROC Curve", ax=None, dpi=400):
mean_fpr,
mean_tpr,
color="b",
label=(f"Mean ROC (AUC = {mean_auc:0.2f}" r" $\pm$ " f" {std_auc:0.2f})"),
label=f"Mean ROC (AUC = {mean_auc:0.2f} ± {std_auc:0.2f})",
lw=2,
alpha=0.8,
)
Expand Down
10 changes: 6 additions & 4 deletions snekmer/rules/model.smk
Original file line number Diff line number Diff line change
Expand Up @@ -374,15 +374,16 @@ rule model:
# save ROC-AUC figure
if not exists(output.figs):
makedirs(output.figs)
plt.savefig(
fig.savefig(
join(
output.figs,
(
f"{family}_roc-auc-curve_{alphabet_name.lower()}"
f"_k-{config['k']:02d}.png"
),
)
), dpi=fig.dpi
)
fig.clf()
plt.close("all")

# PR-AUC figure
Expand All @@ -399,15 +400,16 @@ rule model:
results["cv_split"] += [i + 1 for i in range(cv)]

# save PR-AUC figure
plt.savefig(
fig.savefig(
join(
output.figs,
(
f"{family}_aupr-curve_{alphabet_name.lower()}"
f"_k-{config['k']:02d}.png"
),
)
), dpi=fig.dpi
)
fig.clf()
plt.close("all")

# save model
Expand Down

0 comments on commit da20987

Please sign in to comment.