Skip to content

Commit

Permalink
🔨 incorporated PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
migbro committed Nov 9, 2023
1 parent cac402c commit 1d784a1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/cnv_3_gistic_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def mt_adjust_cn(obj):
# sample list would be cbio ids
samp_list = list(data.columns)[1:]
bs_cbio_dict = {}
# fid_dict = {}
for samp_id in samp_list:
bs_id = file_meta_dict[cbio_dx][samp_id]["kf_tum_id"]
bs_cbio_dict[bs_id] = samp_id
Expand All @@ -122,9 +121,9 @@ def mt_adjust_cn(obj):
m = 50

for bs_id in bs_cbio_dict:
result = mt_adjust_cn(bs_id)
if result[0] == 1:
sys.stderr.write("Had trouble processing object " + result[1] + "\n")
exit_code, object = mt_adjust_cn(bs_id)
if exit_code == 1:
sys.stderr.write("Had trouble processing object " + object + "\n")
sys.exit(1)
if x % m == 0:
sys.stderr.write("Processed " + str(x) + " samples\n")
Expand Down

0 comments on commit 1d784a1

Please sign in to comment.