Skip to content

Commit e1a8488

Browse files
authored
Merge pull request #311 from PNNL-CompBio/cptac_samples_fix
CPTAC Samples file bug fixed
2 parents 1760351 + 31d2cd3 commit e1a8488

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)