Skip to content

Instantly share code, notes, and snippets.

@bheavner
Created November 11, 2015 00:34
Show Gist options
  • Save bheavner/a6c9bfe9d960542216d2 to your computer and use it in GitHub Desktop.
Save bheavner/a6c9bfe9d960542216d2 to your computer and use it in GitHub Desktop.
Apply provenance to existing synapse object
metaDataOnly <- synGet(synapseId, downloadFile=F)
activity_name <- "RNA-seq Count File Merging"
input_files <- c("syn2875347")
code_files <- list(list(name = "merge_mouse_tau_rnaseq_counts.R",
url = "https://github.com/jaeddy/ampSynapseProjects/blob/v0.1-alpha/dataEnablement/R/merge_mouse_tau_rnaseq_counts.R",
wasExecuted = T),
list(name = "merge_count_files.R",
url = "https://github.com/jaeddy/ampSynapseProjects/blob/v0.1-alpha/dataEnablement/R/merge_count_files.R",
wasExecuted = T))
output_files <- c("syn3160706")
description <- paste("To execute run:",
"Rscript merge_mouse_tau_rnaseq_counts.R")
attempt <- synStore(metaDataOnly,
used = input_files,
executed = code_files,
activityName = activity_name,
activityDescription = description)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment