Skip to content

Commit

Permalink
Merge pull request #52 from daisybio/modules
Browse files Browse the repository at this point in the history
added logging to spongeffects R
  • Loading branch information
strasserle authored Dec 20, 2024
2 parents 965a436 + ec835d7 commit c118fa9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/spongEffects.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from app.controllers.externalInformation import get_genes, get_transcripts
import app.models as models
from app.config import LATEST, db
from server import logger


def get_spongEffects_run_ID(dataset_ID: int = None, disease_name: str = None, level: str = "gene", sponge_db_version: int = LATEST):
Expand Down Expand Up @@ -361,6 +362,7 @@ def run_spongEffects(file_path, out_path, params: Params = None, log: bool = Fal
process = subprocess.run(cmd, capture_output=True, text=True, check=True)
# get prediction output
stderr = process.stderr
logger.info(stderr)
with open(out_path, 'r') as json_file:
return json.load(json_file)
except subprocess.CalledProcessError as e:
Expand Down

0 comments on commit c118fa9

Please sign in to comment.