# Create resources

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.

## Datamanager

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.

1. We are using data from the following sources:
2. Create a bucket with the prefix shared-. For example shared-omics
3. Upload the omics data to a folder. For example 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",
#> [1] "We're opening a browser so you can log in with code NCN8FY"

#### Install prerequisites

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)

#### Create resources

In order to be able to asign the data uploaded in the Minio you need to create the resources as well.

resGSE1 <- resourcer::newResource(
name = "GSE66351_1",
identity = "molgenis",
secret = "molgenis",
format = "ExpressionSet"
)
resGSE2 <- resourcer::newResource(
name = "GSE66351_1",
identity = "molgenis",
secret = "molgenis",
format = "ExpressionSet"
)

#> Created project 'omics'
#> Compressing...
#>
|
|                                                                                           |   0%
|
|===========================================================================================| 100%
#> Uploaded ewas/GSE66351_2