Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

Commit

Permalink
compare to other data upload file
Browse files Browse the repository at this point in the history
  • Loading branch information
hhunterzinck committed Feb 15, 2022
1 parent 1abd6f2 commit 2b8144b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions 2022-02-14_michele_vicc_panc_upload.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ synLogin()

# synapse
synid_file_vicc <- "syn25541702"
synid_file_uhn <- "syn26033209"

# functions ----------------------------

Expand Down Expand Up @@ -88,11 +89,18 @@ save_to_synapse <- function(path,

# read ----------------------------

data <- get_synapse_entity_data_in_csv(synid_file_vicc)
vicc <- get_synapse_entity_data_in_csv(synid_file_vicc)
uhn <- get_synapse_entity_data_in_csv(synid_file_uhn)

# main ----------------------------

print(colnames(data))
print(setdiff(colnames(vicc), colnames(uhn)))
print(setdiff(colnames(uhn), colnames(vicc)))

config <- list()
config$column_name$patient_id = 'record_id'
uhn_noirr <- uhn %>%
filter(!grepl(pattern = "[_-]2$", x = (!!as.symbol(config$column_name$patient_id))))


# close out ----------------------------
Expand Down

0 comments on commit 2b8144b

Please sign in to comment.