-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.Rmd
More file actions
96 lines (72 loc) · 2.27 KB
/
Copy pathREADME.Rmd
File metadata and controls
96 lines (72 loc) · 2.27 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
title: ""
author: "`r rworkflows::use_badges()`"
date: "<h4>README updated: <i>`r format( Sys.Date(), '%b-%d-%Y')`</i></h4>"
output:
github_document
---
```{r, echo=FALSE, include=FALSE}
pkg <- read.dcf("DESCRIPTION", fields = "Package")[1]
title <- read.dcf("DESCRIPTION", fields = "Title")[1]
description <- read.dcf("DESCRIPTION", fields = "Description")[1]
URL <- read.dcf('DESCRIPTION', fields = 'URL')[1]
owner <- tolower(strsplit(URL,"/")[[1]][4])
```
## `r pkg`: `r title`
`r description`
### Key Features
- **Multi-source import**: Fetch peaks from GEO, ENCODE, ROADMAP, and AnnotationHub with a single function
- **Automatic peak calling**: When peak files aren't available, automatically calls peaks from bedGraph or bigWig files using MACS3 or SEACR
- **Region filtering**: Import only peaks overlapping regions of interest
- **Genome build handling**: Automatic liftOver between genome builds (hg19/hg38)
- **Parallelisation**: Efficiently import multiple peak files in parallel
## Installation
```R
if(!require("BiocManager")) install.packages("BiocManager")
BiocManager::install("`r owner`/`r pkg`")
library(`r pkg`)
```
## Quick Start
```R
library(PeakyFinders)
# Import peaks from multiple sources at once
ids <- c(
"GSM945244", # GEO
"ENCSR000AHD", # ENCODE
"AH32001" # AnnotationHub
)
peaks <- import_peaks(
ids = ids,
builds = "hg38",
searches = list(narrowPeak = "narrowpeak")
)
# Filter to a specific region
query_region <- GenomicRanges::GRanges("chr22:1-50000000")
peaks_filtered <- import_peaks(
ids = ids,
builds = "hg38",
query_granges = query_region,
query_granges_build = "hg38"
)
# Search for available datasets
encode_metadata <- search_encode(
target = "H3K27ac",
biosample = "K562"
)
```
## Documentation
### [Website](https://`r owner`.github.io/`r pkg`)
### [Getting started](https://`r owner`.github.io/`r pkg`/articles/peakyfinders)
## Citation
If you use `r pkg`, please cite:
> `r utils::citation(pkg)$textVersion`
<hr>
## Contact
### [Neurogenomics Lab](https://www.neurogenomics.co.uk/)
UK Dementia Research Institute
Department of Brain Sciences
Faculty of Medicine
Imperial College London
[GitHub](https://github.com/neurogenomics)
[DockerHub](https://hub.docker.com/orgs/neurogenomicslab)
<br>