Skip to content

Commit

Permalink
reformat consortium_to_public
Browse files Browse the repository at this point in the history
  • Loading branch information
danlu1 committed Nov 26, 2024
1 parent 30a486a commit ced5dcc
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions genie/consortium_to_public.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@

import pandas as pd
import synapseutils
from genie import (create_case_lists, database_to_staging, extract, load,
process_functions)
from genie import (
create_case_lists,
database_to_staging,
extract,
load,
process_functions,
)

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -148,7 +153,9 @@ def consortiumToPublic(
allClin = clinicalDf[clinicalDf["SAMPLE_ID"].isin(publicReleaseSamples)]
# check if cfDNA samples are present
if not process_functions.check_values_in_column(allClin, "SAMPLE_CLASS", "cfDNA"):
logger.error("cfDNA samples should not be filtered out in the clinical dataframe.")
logger.error(
"cfDNA samples should not be filtered out in the clinical dataframe."
)

allClin.to_csv(clinical_path, sep="\t", index=False)

Expand Down

0 comments on commit ced5dcc

Please sign in to comment.