forked from jhudsl/AnVIL_Book_Getting_Started
-
Notifications
You must be signed in to change notification settings - Fork 0
/
03-data-analysts.Rmd
76 lines (48 loc) · 4.56 KB
/
03-data-analysts.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Data Analysts
This chapter is targeted towards people who are joining an existing team on AnVIL. You will find here:
<br>
<!-- The capital letter above alters the formatting for the bullet points below -->
- **Account Setup Overview** -- Introductory information and goals for this guide
- **Account Setup Steps** -- Step-by-step instructions to create your first accounts on AnVIL
## Account Setup Overview {#overview-analysts}
### Goals for This Guide
```{r, echo=FALSE, fig.alt="List of goals for this guide: 1) get your accounts and 2) link external accounts."}
ottrpal::include_slide("https://docs.google.com/presentation/d/1LT4wxVioJWtSpf3GV81hrbG8W2M-YWOaY7PmJObRioM/edit#slide=id.gd5c49c5c55_0_165")
```
### Starting Setup
**Terra** is the compute engine of AnVIL; i.e. where you will run your analyses. Terra currently offers access to **Jupyter Notebooks** and **RStudio** for interactive analysis, as well as the **Workflow Description Language** (WDL) for batch processing of many samples. Behind the scenes, Terra runs on Google Cloud Platform, so you will need a (free) Google Account.
```{r, echo=FALSE, fig.alt='Diagram illustrating the relationship between Terra and Google Cloud Platform.'}
ottrpal::include_slide("https://docs.google.com/presentation/d/1LT4wxVioJWtSpf3GV81hrbG8W2M-YWOaY7PmJObRioM/edit#slide=id.gd84a304855_0_138")
```
In this guide, you will go through the following steps:
1. Create a Google account
1. [Launch Terra](https://anvil.terra.bio/#workspaces) and sign in with your Google account
1. Link external accounts (Gen3, dbGaP) to Terra (optional - enables you to import AnVIL open access datasets and to access protected data if you have appropriate authorization)
## Step 1: Create a Google Account {#data-analysts-step-1}
Terra operates on Google Cloud Platform, so you will need a (free) Google account to create a Terra account and run analyses on AnVIL.
```{r, echo = FALSE, results='asis'}
cow::borrow_chapter(
doc_path = "child/_child_google_create_account.Rmd",
repo_name = "jhudsl/AnVIL_Template"
)
```
## Step 2: Set Up Terra
[Launch Terra](https://anvil.terra.bio/#workspaces), and you should be prompted to sign in with your Google account.
- Once you have signed in, your Terra account is set up and your PI or manager should be able to add you to projects and/or Workspaces.
- If this is the **first time you or your team has used Terra**, the PI or manager will also need to set up billing.
You can always access Terra by going to [`anvil.terra.bio`](https://anvil.terra.bio/), or by clicking the link on the AnVIL home page.
```{r, echo=FALSE, fig.alt='Screenshot of the AnVIL home page. The button to "launch Terra" is highlighted.'}
ottrpal::include_slide("https://docs.google.com/presentation/d/1LT4wxVioJWtSpf3GV81hrbG8W2M-YWOaY7PmJObRioM/edit#slide=id.gde7783227e_0_31")
```
## Step 3: Link External Accounts (optional)
AnVIL provides access to a wide selection of datasets, including controlled-access data. Linking your accounts will enable you to import these data into Terra.
The following links will take you to the Terra documentation for setting up and linking external accounts.
- [Set up a Gen3 account](https://gen3.theanvil.io/login) - allows you to use the Gen3 data explorer to create artificial cohorts over AnVIL datasets that have been indexed by Gen3.
- [Link Gen3 and Terra accounts](https://support.terra.bio/hc/en-us/articles/360050390451) - allows you to analyze Gen3 data on Terra.
- [Link Terra and eRA Commons ID](https://support.terra.bio/hc/en-us/articles/360038086332-Linking-Terra-to-External-Servers) - To use controlled-access data on Terra, you will need to link your Terra user ID to your authorization account (such as a dbGaP account). Linking to external servers will allow Terra to automatically determine if you can access controlled datasets hosted in Terra (ex. TCGA, TOPMed, etc.) based on your approved dbGaP applications.
## Wrap-Up {#data-analysts-wrap-up}
**Congratulations! You have successfully set up your AnVIL account!**
Your PI or lab manager should be now be able to add you to Workspaces so that you can perform analyses. Please contact your PI or manager to coordinate your user permissions for Terra Projects and Workspaces.
To learn more about how to perform analyses on AnVIL, see the **Working on AnVIL** section of this book.
- The [Workspaces] chapter introduces AnVIL Workspaces, the fundamental unit of research organization on AnVIL. All analyses on AnVIL are performed in a Workspace.
- The [Tools], [Data], and [Workflows] chapters explain how to perform a variety of common research tasks on AnVIL.