library(MolgenisArmadillo)
If you want to perform “omics”-like you need to upload the data to perform the resources. Within the Armadillo you can upload files up to 5TB. If you upload the data you can assign the data with the s3.file.resourcer
package.
There are 2 roles you can assume using the package. The datamanager role and the researcher role.
The datamanager needs to make the data available to the researchers. Besides this you need to create the resources to access the data.
You need to access the Minio webinterface to be able to access the resource.
shared-
. For example shared-omics
ewas
. You will get something like this shared-omics/ewas/gse66351_1.rda
Done!
You first need to login to the Armadillo (as superuser
)
armadillo.login("https://armadillo.dev.molgenis.org",
"https://armadillo-minio.dev.molgenis.org")
#> [1] "We're opening a browser so you can log in with code NCN8FY"
If you want to install a package on the Armadillo Rserver you can execute the following endpoint. The selected profile is always default
if none is specified.
install.packages("resourcer")
library(resourcer)
In order to be able to asign the data uploaded in the Minio you need to create the resources as well.
<- resourcer::newResource(
resGSE1 name = "GSE66351_1",
url = "s3+http://armadillo-minio:9000/shared-omics/ewas/gse66351_1.rda",
identity = "molgenis",
secret = "molgenis",
format = "ExpressionSet"
)<- resourcer::newResource(
resGSE2 name = "GSE66351_1",
url = "s3+http://armadillo-minio:9000/shared-omics/ewas/gse66351_1.rda",
identity = "molgenis",
secret = "molgenis",
format = "ExpressionSet"
)
armadillo.create_project("omics")
#> Created project 'omics'
armadillo.upload_resource(project="omics", folder="ewas", resource = resGSE1, name = "GSE66351_1")
#> Compressing...
#>
|
| | 0%
|
|===========================================================================================| 100%
#> Uploaded ewas/GSE66351_1
armadillo.upload_resource(project="omics", folder="ewas", resource = resGSE2, name = "GSE66351_2")
#> Compressing...
#>
|
| | 0%
|
|===========================================================================================| 100%
#> Uploaded ewas/GSE66351_2
The data is now available for researcher to assign.