Skip to content

Commit a496473

Browse files
committed
Fixed cptac bug
1 parent 028d039 commit a496473

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

build/cptac/getCptacData.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,9 @@ def main():
288288
exit()
289289

290290
# Remove the old values in samples (from prev file)
291-
samples.drop(samples.index,inplace=True)
292-
291+
if 'other_id_source' in samples.columns:
292+
samples = samples[samples['other_id_source'] == 'CPTAC3'].copy()
293+
293294
# Create new samples
294295
if build_samples:
295296
# Loop through the cancer types to build samples

0 commit comments

Comments
 (0)