Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GEN-1191] Add file logging #552

Merged
merged 5 commits into from
Mar 13, 2024
Merged
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
5 changes: 5 additions & 0 deletions genie/extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""

import logging
import sys
from typing import List, Optional

import synapseclient
Expand All @@ -13,6 +14,9 @@
from genie import process_functions

logger = logging.getLogger(__name__)
stdout_handler = logging.StreamHandler(stream=sys.stdout)
stdout_handler.setLevel(logging.INFO)
logger.addHandler(stdout_handler)


def get_center_input_files(
Expand Down Expand Up @@ -54,6 +58,7 @@ def get_center_input_files(
if name.endswith(".vcf") and process != "mutation":
continue

logger.info(f"GETTING FILE {name} ({ent_synid})")
ent = syn.get(ent_synid, downloadFile=downloadFile)

# HACK: Clinical file can come as two files.
Expand Down
Loading