Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create instructor_setup_AnVIL.Rmd #14

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
cc74098
Create instructor_setup_AnVIL.Rmd
KatherineCox Nov 30, 2022
7bf2d2f
Update _bookdown.yml
KatherineCox Nov 30, 2022
2659b7a
add option students create workspace
KatherineCox Dec 2, 2022
1020b5d
remove statement that might be incorrect
KatherineCox Dec 2, 2022
0328074
minor edits
KatherineCox Dec 5, 2022
e678153
Update instructor_setup_AnVIL.Rmd
KatherineCox Dec 6, 2022
50b224e
reorder instructor setup
KatherineCox Dec 7, 2022
5232604
some work on instructor setup
KatherineCox Dec 7, 2022
3761ffe
add "What is AnVIL?"
KatherineCox Dec 8, 2022
59563b9
fix youtube link
KatherineCox Dec 8, 2022
d99d314
break up big paragraph
KatherineCox Dec 8, 2022
c7ebee8
first draft of timeline table
KatherineCox Dec 9, 2022
1892c32
fix timeline table
KatherineCox Dec 9, 2022
d0864f7
edit timeline table
KatherineCox Dec 9, 2022
60f9a88
remove column names from table
KatherineCox Dec 9, 2022
3b59f4b
edit timeline table
KatherineCox Dec 9, 2022
c285266
edit timeline table
KatherineCox Dec 9, 2022
294b0b2
fix table
KatherineCox Dec 9, 2022
30859f8
fix timeline table
KatherineCox Dec 9, 2022
d00c39b
fix timeline table
KatherineCox Dec 9, 2022
f28eb69
timeline table formatting
KatherineCox Dec 9, 2022
cd60329
reorganize and try fixing timeline table
KatherineCox Dec 12, 2022
71ef6df
remove AnVIL in a nutshell div
KatherineCox Dec 12, 2022
e0e6692
remove "AnVIL in a nutshell" title
KatherineCox Dec 12, 2022
1755f00
trying to fix timeline table
KatherineCox Dec 12, 2022
802517e
give up on timeline table
KatherineCox Dec 12, 2022
3470edd
remove numbering on timeline sections
KatherineCox Dec 12, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions _bookdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ chapter_name: "Chapter "
repo: https://github.com/jhudsl/AnVIL_Template/
rmd_files: ["index.Rmd",
"01-instructor_guide.Rmd",
"instructor_setup_AnVIL.Rmd",
"02-student_instructions.Rmd",
"03-exercises.Rmd",
"exercises_swirl_01_04_05_06_12.Rmd",
Expand Down
86 changes: 86 additions & 0 deletions instructor_setup_AnVIL.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Setup on AnVIL

## AnVIL Instructor guide

If this is your first time using AnVIL (or first time using it for a course), we recommend checking out the [AnVIL Instructor Guide](https://jhudatascience.org/AnVIL_Book_Instructor_Guide). Several of the instructions below link out to the Instructor Guide for details.

## Suggested Timeline

### 2+ weeks before {-}

1. [**Set up a Google Account**](https://jhudatascience.org/AnVIL_Book_Instructor_Guide/creating-an-instructor-account.html) - You need a Google account to access AnVIL]
1. **Set up billing**
a. (Some users) [Set up Google Billing Account]() - Depending on how you are being funded, this may be taken care of for you. If your funding is being managed by a third party (e.g. through a funding mechanism such as [STRIDES](https://datascience.nih.gov/strides), or through your institution), contact them to determine whether you need to do any billing administration through Google.
b. [Create Terra Billing Project(s)]() - This is how you manage students and give them permission to compute on AnVIL.
3. **Request Quota Increase** so that you have permission to create enough Workspaces for your whole class
4. **Notify Terra** of the date(s) of your class, so they can ensure AnVIL is not down for maintenance.
5. **Add TAs and coinstructors**
6. **Run through material** - make sure you're able to
- Clone the Workspace
- Start up RStudio, load swirl, and start the first lesson
- Load the dataset for the project
- Use `dplyr` commands, such as `dplyr::filter()`

### 1 week before {-}

1. **Collect student usernames** - have students log in to AnVIL and then provide you with their username
1. **Set up Groups**: [Creating Terra "Groups"]() makes it much easier manage your students and TAs/co-instructors on AnVIL.

## About AnVIL

The [AnVIL (Analysis Visualization and Informatics Lab-space) platform](https://anvilproject.org/) is a cloud computing platform specially designed for analyzing biological data, and is used by scientists doing all sorts of biological research.

<iframe width="560" height="315" src="https://www.youtube.com/embed/7qvQ8DZHC9w" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

- Behind the scenes, AnVIL relies on Google Cloud Platform to provide computing infrastructure. Basically, AnVIL lets you "rent" computers from Google (remotely). Whenever you run an analyses on AnVIL, it actually runs on one of Google's computers, and AnVIL lets you see the results in your browser.
- AnVIL uses [Terra](https://anvil.terra.bio/) to provide many computational tools useful for biological data analysis, such as [RStudio](https://www.rstudio.com/products/rstudio/), [Galaxy](https://usegalaxy.org/), and [Jupyter Notebooks](https://jupyter.org/). Terra takes care of installing these tools on Google's computers, so that you can just start using them.
- AnVIL and Terra provide their services for free (managing software, data, and users). You just need to pay Google for the computational resources that you use.

### Why use AnVIL in your classroom?

## Class Setup

:::{.notice}
**Tip**: It's helpful to have your students sign into AnVIL and provide you with their username ahead of time, so that you can grant permissions to them before the class begins.
:::



## Workspace

On AnVIL, all computing is done within "Workspaces".

To make things easy for you and your students, we have created an AnVIL Workspace that contains all the files necessary for this exercise, which can be accessed at the following link:



This is a public AnVIL Workspace, which is similar to "view only" mode for a document - you and your students can view it freely, but you will need to "clone" your own copy of it in order to do your own work (i.e. start up RStudio, Galaxy, or Jupyter Notebooks, or run a Workflow).

There are two ways you can organize your class and give students access to the material:

### Option 1: Instructor clones

**Instructor creates a single clone of the Workspace, and shares it with the whole class.**

This is simpler, particularly if you are new to AnVIL, but has some disadvantages:

- With this setup, it is impossible to tell which students are running up compute costs - expenses are only reported for the class as a whole.
- Students will each get their own cloud environment (i.e. their own RStudio session), and some temporary storage space to go with it. But they will all share the same permanent storage, so if they need to save files, they may end up overwriting each others' files.

### Option 2: Students clone

**Each student creates their own copy of the Workspace**

This is a bit more work up to set up, but is generally preferable for longer-term (i.e. multi-session) courses, especially if your students will need to save or share files.

- Costs will be reported per student (i.e. per Workspace)
- Students will have their own permanent storage, and can't overwrite each other's files.
- This is essential for any activities in which they need to save and share a file, either to collaborate with peers or to submit for a grade.
- This is also necessary if they will be passing files between different cloud environments (e.g. creating a file in Galaxy, then analyzing it in RStudio).
- This setup gives students more power (they are able to create additional Workspaces and invite others to use them, charging to your Billing Account). But it provides transparency about *who* is carrying out activities, enabling you to address any problems with individual students.

:::{.warning}

If you are new to AnVIL, you will need to request a "Project Quota Increase". In order to prevent abuse, Google has limits that restrict the number of Workspaces that can be created by new accounts (as of Dec 2022, new users are limited to 5 Workspaces).

:::