Description Usage Arguments Value Examples
View source: R/import_and_subset.R
Read preprocessed genomic interaction files to produce RFanno and RFpairs.
1 | read_bed_raf(bed, raflist = NULL, workDir = getwd())
|
bed |
File name of a bed file without header, with columns for chromosome (Ensembl format, no "chr"), start, end, and restriction fragment ID of each restriction fragment. |
raflist |
A list of file names containing the interactions. The files are in raf format, meaning they contain two columns (no header) with the interacting restriction fragment IDs. If raflist=NULL, all raf files in the directory will be read. |
workDir |
The directory where all input files are located. Defaults to the current working directory. |
A list consisting of an RFanno dataframe containing the restriction fragment annotation, and an RFpairs dataframe containing the interacting restriction fragment pairs.
1 2 | # RFanno <- read_bed_raf(bed = "annotation.bed", raflist = list("1.raf", "2.raf"))[[1]]
# RFpairs <- read_bed_raf(bed = "annotation.bed", raflist = list("1.raf", "2.raf"))[[2]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.