-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
56 lines (40 loc) · 2.29 KB
/
README.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
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# DPLabR
<!-- badges: start -->
<!-- badges: end -->
The goal of DPLabR is to collect custom functions written in different .R files in different
projects in the same place. The need came up when I realized how hard it would be to keep track of different
versions of the same custom functions scattered around different .R files. So i decided to grop them here.
The DPLabR's functions cover different omics technologies, namely `Bulk RNAseq`, `ChIPseq`, `scRNAseq` and `Proteomics`. It's probably not straight forward to remember which function belong to which tech, so i'll try to be as exaustive as possible when writing the documentation.
## Installation
Get the latest stable `R` release from [CRAN](http://cran.r-project.org/). Note
that you need to have `R >= 4.3`. You can get devel version of DPLabR from [GitHub](https://github.com/AndreaMariani-AM/DPLabR) with:
``` r
# install.packages("devtools")
devtools::install_github("AndreaMariani-AM/DPLabR")
```
## Example (undre dev)
This is a basic example which shows you how to solve a common problem for each tech.
### Combinatorial Indexing
If you have run our pipeline based on [Alevin-fry](https://github.com/COMBINE-lab/alevin-fry) pipeline then an intuitive to lead your experiment is to leverage `DPLabR::load_split_seq`, which internally uses `fishpond::loadFry` function and does some additional things like standardizing gene names and creating an object based on the specie you specify.
Then, there's an optional function to add a sample info on the experiment if this is provided.
Read the docs for more
```r
# Load expr
sce <- load_split_seq(fryDir, outputFormat, expType)
# Add sample info
sce <- add_sample_info(sce, fryDir, bc_filter)
```
### ChIPseq
Some routine analysis you might want to do, is quantify your ChIPseq experiments for some features. We use `get_coverage_custom` function to compute average scores from a list of [bigwig](https://genome.ucsc.edu/goldenPath/help/bigWig.html) files across a list of genomic regions in [BED format](https://genome.ucsc.edu/FAQ/FAQformat.html#format1).