minor cleanup

This commit is contained in:
Samuel Sledzieski
2025-07-22 10:10:41 -04:00
parent fa467edd40
commit e2a4792091
2 changed files with 9 additions and 14 deletions

View File

@@ -5,7 +5,15 @@ D-SCRIPT: Structure Aware PPI Prediction
import argparse
import sys
from .commands import predict_serial
from .commands import (
embed,
evaluate,
extract_3di,
predict_bipartite,
predict_block,
predict_serial,
train,
)
from .commands.embed import EmbeddingArguments
from .commands.evaluate import EvaluateArguments
from .commands.extract_3di import Extract3DiArguments
@@ -56,15 +64,6 @@ def main():
subparsers = parser.add_subparsers(title="D-SCRIPT Commands", dest="cmd")
subparsers.required = True
from .commands import (
embed,
evaluate,
extract_3di,
predict_bipartite,
predict_block,
train,
)
modules = {
"train": train,
"embed": embed,

View File

@@ -17,7 +17,6 @@ import numpy as np
import pandas as pd
import torch
from Bio import SeqIO
from loguru import logger
from sklearn.metrics import (
average_precision_score,
precision_recall_curve,
@@ -280,9 +279,6 @@ def main(args):
phats = np.array(phats)
labels = np.array(labels)
logger.debug(phats)
logger.debug(labels)
with open(outPath + "_metrics.txt", "w+") as f:
aupr = average_precision_score(labels, phats)
auroc = roc_auc_score(labels, phats)