R/export-sevenbridges.R
export_sevenbridges.Rd
Export BioCompute Object to Seven Bridges Platforms
export_sevenbridges(
file,
name = NULL,
project = NULL,
token = NULL,
base_url = "https://api.sbgenomics.com/v2/",
overwrite = TRUE
)
Path to the BCO file.
Name of the BCO file to create on the platform. Defaults to the name of the input file.
Project to upload (export) the BCO file to.
Format: "username/project"
.
API auth token for the platform. Generate the token from the platform's Developer Dashboard.
API base URL. Get the base URL from the platform's Developer Dashboard.
If TRUE
, will overwrite the existing
BCO file with the same name in that project (if any).
If FALSE
, will not overwrite.
Response of the file upload request
if (FALSE) {
file_json <- tempfile(fileext = ".json")
generate_example("HCV1a") %>%
convert_json() %>%
export_json(file_json)
try(
export_sevenbridges(
file_json,
project = "rosalind_franklin/project_name",
token = "your_api_auth_token",
base_url = "https://cgc-api.sbgenomics.com/v2/"
)
)
}