View source: R/extract_hic_eigenvectors.R
extract_hic_eigenvectors | R Documentation |
This function uses Juicer command line tools to extract first eigenvectors across chromosomes from counts data in a .hic file and outputs them to text file of the structure chr start end score where the score column contains the eigenvector elements.
extract_hic_eigenvectors( hicfile, mode = "KR", binsize = 250e3, chrs = NULL, gen = "Hsapiens", gen_ver = "hg19" )
hicfile |
path to the input .hic file. |
mode |
Normalization mode to extract first eigenvectors from
Allowable options are: 'NONE' for raw (normalized counts if .hic file is
written using |
binsize |
the uniform binning size for compartment scores in bp. Defaults to 100e3. |
chrs |
a subset of chromosomes' e.g.,
c('chr21','chr22'). Defaults to all chromosomes except "Y", and "M" for
the specified |
gen |
name of the species: e.g., default |
gen_ver |
genomic assembly version: e.g., default |
path to the eigenvector text files for each chromosome containing
chromosome, start, end
and compartment score values that may need to be flipped signs for each
chromosome. File paths
follow gsub('.hic','_<chromosome>_eigenvectors.txt',hicfile)
eigenvector_filepaths<-extract_hic_eigenvectors( hicfile=system.file("extdata", "eigenvector_example.hic", package = "HiCDCPlus"), chrs=c("chr22"),binsize=250e3,mode="NONE")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.