-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepare_data.Rmd
executable file
·48 lines (35 loc) · 2.25 KB
/
prepare_data.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
---
title: 'Download SPEAQeasy Example'
output:
BiocStyle::html_document:
toc: true
toc_float: true
toc_depth: 2
code_folding: show
author:
- name: Nicholas J. Eagles
affiliation:
- &libd Lieber Institute for Brain Development, Johns Hopkins Medical Campus
date: '9/18/2020'
---
# Clone this repository
First, make sure the main repository is cloned to your system, as it contains code and data which will be used in the upcoming analysis.
```{bash "clone repo", eval = FALSE}
git clone [email protected]:LieberInstitute/SPEAQeasy-example.git
```
This repository contains genotype and phenotype data for the example set of 42 human samples, as well as the associated main outputs from the [SPEAQeasy](https://github.com/LieberInstitute/SPEAQeasy) pipeline. For the purposes of this example, the main outputs include a single VCF file of genotype calls for all samples, and `RangedSummarizedExperiment` objects containing gene, exon, and exon-exon junction counts.
## Download static files
Alternatively, you can download the contents of this repository using `r BiocStyle::CRANpkg("usethis")` ^[It will download the latest version, which you will need to re-run in case we make any changes.]
```{r "download_with_usethis", eval = FALSE}
library("usethis")
use_course(
"https://github.com/LieberInstitute/SPEAQeasy-example/archive/master.zip"
)
```
# Pull example FASTQ data for use in SPEAQeasy
You are encouraged to optionally reproduce our SPEAQeasy results before moving on to the identity resolution and differential expression steps. Those interested in running SPEAQeasy on the raw FASTQ files must download these files. Note that this is an optional step, as we provide the relevant SPEAQeasy outputs for those interested simply in how to use these outputs in subsequent analyses.
We provide a bash script, which utilizes [synapse](https://www.synapse.org/) to download the publicly available FASTQ files. Run this script and specify a directory where you wish to place the FASTQ files:
```{bash "pull data", eval = FALSE}
bash pull_data/pull_fastq_data.sh [/destination_dir]
```
This script also writes a `samples.manifest` file to the same directory. This text file is used by SPEAQeasy to find the input FASTQ files and associate them with a unique ID.