-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHiContactsData.Rmd
75 lines (62 loc) · 2.73 KB
/
HiContactsData.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
---
title: "HiContactsData"
author: "Jacques Serizay"
date: "`r Sys.Date()`"
output:
BiocStyle::html_document
vignette: >
%\VignetteIndexEntry{HiContactsData}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---
```{r, eval = TRUE, echo=FALSE, results="hide", message = FALSE, warning = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
suppressPackageStartupMessages({
library(HiContactsData)
})
```
## Introduction to HiContactsData
HiContactsData is a companion data package giving programmatic access to
several processed Hi-C files for demonstration, such as cool, mcool and
pairs files. It is meant to be used with `HiContacts`.
```{r}
library(HiContactsData)
```
The only function provided by HiContactsData package is `HiContactsData()`.
Several files are available using this function, namely:
- S288C fastq files (R1 & R2) (`sample`: `yeast_wt`, `format` = `fastq_R{12}`)
- S288C HiCool processing log (`sample`: `yeast_wt`, `format` = `HiCool_log`)
- S288C.cool (`sample`: `yeast_wt`, `format` = `cool`)
- S288C.mcool (`sample`: `yeast_wt`, `format` = `mcool`)
- S288C_G1.mcool (`sample`: `yeast_g1`, `format` = `mcool`)
- S288C_G2M.mcool (`sample`: `yeast_g1`, `format` = `mcool`)
- S288C_G1.pairs (`sample`: `yeast_g2m`, `format` = `pairs`)
- S288C_G2M.pairs (`sample`: `yeast_g2m`, `format` = `pairs`)
- S288C.hic (`sample`: `yeast_wt`, `format` = `hic`)
- S288C.hicpro.matrix (`sample`: `yeast_wt`, `format` = `hicpro_matrix`)
- S288C.hicpro.bed (`sample`: `yeast_wt`, `format` = `hicpro_bed`)
- S288C.pairs.gz for chrII only (`sample`: `yeast_wt`, `format` = `pairs`)
- S288C_Eco1-AID.mcool (`sample`: `yeast_Eco1`, `format` = `mcool`)
- S288C_Eco1-AID.pairs.gz for chrII only (`sample`: `yeast_Eco1`, `format` = `pairs`)
- mESCs.mcool (`sample`: `mESCs`, `format` = `mcool`)
- mESCs.pairs.gz for chr13 only (`sample`: `mESCs`, `format` = `pairs`)
- microC_HFFc6_chr17.mcool (`sample`: `microC`, `format` = `mcool`)
Yeast data comes from [Bastie, Chapard et al., Nature Structural & Molecular Biology 2022](https://doi.org/10.1038/s41594-022-00780-0)
and mouse ESC data comes from [Bonev et al., Cell 2017](https://doi.org/10.1016/j.cell.2017.09.043).
Human HcFF6 micro-C data comes from [Krietenstein et al., Mol. Cell 2020](https://doi.org/10.1016/j.molcel.2020.03.003).
To download one of these files, one can specify a `sample` and a file `format`:
```{r}
cool_file <- HiContactsData()
cool_file <- HiContactsData(sample = 'yeast_wt', format = 'cool')
cool_file
```
## HiContacts and HiContactsData
`HiCExperiment` package can be used to import data provided by `HiContactsData`.
Refer to `HiCExperiment` package documentation for further information.
## Session info
```{r}
sessionInfo()
```