Skip to content

Commit 31d2cd3

Browse files
committed
Fixed the cptac samples bug
1 parent 62dd8c0 commit 31d2cd3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build/cptac/getCptacData.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,11 @@ def main():
286286
else:
287287
print("No sample file provided. Exiting.")
288288
exit()
289-
290-
# Proceed to build samples and/or data
289+
290+
# Remove the old values in samples (from prev file)
291+
samples.drop(samples.index,inplace=True)
292+
293+
# Create new samples
291294
if build_samples:
292295
# Loop through the cancer types to build samples
293296
for cancertype in ['brca', 'coad', 'hnscc', 'lscc', 'luad', 'ov', 'gbm', 'pdac', 'ucec', 'ccrcc']:

0 commit comments

Comments
 (0)