Projects in Synapse are “containers” that group relevant content and people together. All data must be uploaded into a project. Projects can be private so only you can see the contents, they can be shared with your collaborators, or they can be made public so anyone on the web can view your research.
In this vignette you will:
synLogin()
# Project names must be globally unique
project_name <- paste0(
"My uniquely named project about Alzheimer's Disease ",
paste(sample(c(letters, LETTERS, 0:9), 8, replace = TRUE), collapse = "")
)
project <- Project(name = project_name) |> synStore()
cat("Created project:", project$id, "\n")Now that you have created your project you are able to inspect the project in the Synapse web UI.
cat("My project ID is:", project$id, "\n")
cat("I created my project on:", project$created_on, "\n")
cat("The ID of the user that created my project is:", project$created_by, "\n")
cat("My project was last modified on:", project$modified_on, "\n")My project ID is: syn12345678
I created my project on: 2000-01-01T12:00:00.001Z
The ID of the user that created my project is: 1234567
My project was last modified on: 2000-01-01T12:00:00.001Z
Find all of the available attributes about your project in the
Project reference documentation.
Each Project only needs to be created once. Since you’ve already created it you can access it again by retrieving it using its name.
my_project_object <- Project(name = project_name) |> synGet()
cat("I just got my project:", my_project_object$name, ", id:", my_project_object$id, "\n")I just got my project: My uniquely named project about Alzheimer's Disease, id: syn12345678