7 From Gene Expression Omnibus (GEO)
In this example, we will be importing some RNA-seq data generated using four primary human airway smooth muscle cell lines. Researchers explored how three common asthma treatments (dexamethasone, albuterol, or dexamethasone+albuterol) affect gene expression in smooth muscle cells. The data comes from this BioProject. You can read more about these data and the researchers’ results in Pangamiban et al 2023 and Himes et al 2014.
We will bring this data into AnVIL from the Gene Expression Omnibus, or GEO. You can check out the GEO Datasets website to learn more:
GEO is an international public repository that archives and freely distributes microarray, next-generation sequencing, and other forms of high-throughput functional genomics data submitted by the research community.
The GEO DataSet corresponding to this project is located here.

Many GEO datasets will also have an associated SRA BioProject number. NCBI will automatically add the files to SRA if the GEO dataset contains raw next-generation sequencing data (like FASTQ or BAM files). In this case, we recommend importing the data from SRA following this example.
You can see the associated SRA references at the bottom of the GEO page.

Genetics
Novice: no genetics skills needed
Programming skills
Beginner: minimal programming skills needed
What will this cost?
You might hear new terms for moving data around in the cloud. Ingress is when data comes to you, similar to downloading a file or receiving an email with an attachment. Egress is sending the data to another resource, similar to uploading or sending an attached file via email. There is no fee for ingressing data to AnVIL from GEO, but there is a small cost for storing the data in an AnVIL bucket.
There is a cost associated with provisioning and running an RStudio or Jupyter Notebook environment. In Fall 2026, running this vignette to transfer cost $0.12.
7.1 Step One: Create your workspace
The starting point for bringing your own data to AnVIL is the workspace. Before you can do anything, you will need to create a workspace. Once you have logged into your AnVIL account, click on “Workspaces” in the left-side menu. You can open this menu by clicking the three line icon in the upper left hand corner.

Once you have opened the workspace page, create a new workspace by clicking on the plus sign at the top.

You should now see a pop-up window that lets you customize your new workspace. You will need to give your new workspace a unique name and assign it to a billing project. The “anvil-outreach” billing project is used here as an example, but you will not be able to assign it. You’ll have to use one of your own billing projects. After filling out these two fields, click the “Quick Create Workspace” button to create a workspace without enabling sharing or additional security options.

You can read about Authorization Domains for workspace security in this article in the Terra documentation.
Once you have created a workspace, AnVIL will take you to the workspace dashboard.
7.2 Step Two: Open an RStudio or Jupyter Notebook environment.
We’re going to use the Bioconductor package GEOquery to pull the GEO records into the computer environment. You can use either RStudio or Jupyter Notebook. For the purposes of this vignette, we are demonstrating with RStudio.
First, click on the cloud icon on the left hand menu to access the Cloud Environment options.

Next, provision an RStudio environment. Click on the “Settings” button under the RStudio/Bioconductor card.

You will now be prompted to make decisions about what computational settings you need for your RStudio environment. We have used the default parameters.
Notice that the estimated cost for creating and running your environment is written at the top of the screen - these estimates may change if you change your parameter settings!
If you know that you might be called away from your computing environment and don’t want to incur costs while this is happening, you can choose to enable autopause as well. Once you are happy with your setting choices, click “Create”.

It may take some time for your environment to be created. As of September 2026, it took 2 minutes for this workspace to be provisioned as we clicked “Create”.
Once your environment has been created, click on the R symbol in the left hand menu to open it. You will know that the environment is ready when there is a green dot next to the R symbol. (A popup window will also show up, informing you the environment is ready.)

7.3 Step Three: Retrieve GEO project using GEOquery package
Retrieving data from GEO is greatly simplified by the GEOquery Bioconductor package. This package contains a lot of useful code. You can read more about all the options on the package website.
But before we do anything, we need to install the package and load the library. Because GEOquery is a Bioconductor package, we use the BiocManager command to install it. Type these commands into the console window and press return to install and load the package:
For those who are less familiar with the RStudio interface, this is where the console window is located:

We have a couple of options for retrieving files from GEO. The getGEO function allows us to retrieve several different kinds of data about the GEO project. In this example, we will import the details, or metadata, of the experiment as a SummarizedExperiment object, with each row corresponding to a feature and each column corresponding to a sample. The metadata will be stored as a header. Type the following code in to the console:
You can find details on other types of data formats (including the raw and processed data) and how to pull them into your R environment in the GEOquery user manual.
After running the getGEO command, you should now see the data stored as an object named gse in your environment panel.

7.4 Step Four: Push data into a Google bucket using AnVILGCP package
At this point the data is available for you to work with in your R environment, but has not been saved anywhere more permanent. There are a couple of places you may want to save your data and any results that you generate:
- The persistent disk associated with your R environment. Save files here if you will want to come back and work with them in RStudio in the near future. They will be available to you next time you start up RStudio (as long as you don’t delete the persistent disk). Note that the persistent disk is not backed up, so for long-term storage you will want to copy files elsewhere.
- The storage bucket associated with your AnVIL workspace. Save files here if you want to share them with other collaborators (your persistent disk is private to you and cannot be shared) or store them long-term (workspace buckets are automatically backed up, and are considerably cheaper than a persistent disk).
The AnVILGCP package allows us to save files to the Google storage bucket that is associated with the workspace. Install this package and open the AnVILGCP library using the following commands:
To save the dataset locally (that is, on the persistent disk), you just need to know the name of the object and the name you want to save the dataset as. Here, we’re saving the SummarizedExperiment object we pulled into the environment earlier as my_dataset.rds.
You can see that the dataset has now been saved to the persistent disk by looking at the Files tab.

The saveRDS command only saves the data to the persistent disk associated with the R environment. You will be able to access the data again when you create a new R environment (as long as you kept your persistent disk), but others who use the workspace will not have access to it. In order to save the data to the workspace itself, we need to copy the RDS file to the Google bucket associated with the workspace. You can do this using the following commands:
# Copy to the workspace bucket
# avstorage() automatically maps to your workspace's bucket path
AnVILGCP::avcopy("my_dataset.rds", avstorage())Once the dataset has been successfully saved to the Google bucket, you can click on the workspace Files icon to see its location. You will see your object in a directory labeled with the name of your workspace. You can also click on the button in the upper left hand corner to open the Google bucket itself.
