Skip to content

Commit

Permalink
added overwrite = TRUE to getUUID() calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
hyginn authored Mar 31, 2017
1 parent ec91b67 commit 74d2436
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions R/importFilterHypermutators.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,10 @@ importFilterHypermutators <- function(rSNVFileIn = c(),
newRCNA <- rCNA[, !(names(rCNA) %in% removedSamples)]

# update metadata
getUUID("newRCNA")
getUUID("newRCNA", overwrite = TRUE)
# ToDo: record updated UUID in log-file
# ToDo: test that UUID is _actually_ being updated.


# save new CNAFile with "filtered" prepended to filename
saveRDS(newRCNA, file = paste(dOut, "/filteredHypermutators_", basename(file), sep = ""))
Expand All @@ -169,7 +172,9 @@ importFilterHypermutators <- function(rSNVFileIn = c(),
newRSNV <- rSNV[, !(gsub("-", ".", rSNV$Tumor_Sample_Barcode) %in% removedSamples)]

# update metadata
getUUID("newRSNV")
getUUID("newRSNV", overwrite = TRUE)
# ToDo: record updated UUID in log-file
# ToDo: test that UUID is _actually_ being updated.

# save new SNVFile
saveRDS(newRSNV, file = paste(dOut, "/filteredHypermutators_", basename(file), sep = ""))
Expand Down

0 comments on commit 74d2436

Please sign in to comment.