Description Usage Arguments Value Examples
View source: R/import_and_subset.R
Read preprocessed genomic interaction files into an InteractionSet object.
1 | import_chrom(bed, raflist = NULL, workDir = getwd(), binned = FALSE)
|
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. |
binned |
Boolean, whether the matrix is already binned. Defaults to FALSE. |
An InteractionSet object containing all interactions from all input raf files, and the bin size (if any) in the metadata.
1 2 3 4 5 6 7 8 9 | # You can import several specific raf files from the same directory
# (the working directory if no workDir is specified).
# myInteractions <- import_chrom(bed = "annotation.bed",
# raflist = list("1.raf", "2.raf"))
# Or just choose all raf files within a specific directory
myInteractions <- import_chrom(bed = "RFanno_HindIII.bed",
workDir = system.file("extdata", package = "chromium"),
binned = F)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.