LoadTrackFile | R Documentation |
Load Track File to Dataframe.
LoadTrackFile( track.file, track.folder = NULL, format = c("bam", "wig", "bw", "bedgraph"), meta.info = NULL, meta.file = "", bamcoverage.path = NULL, norm.method = c("RPKM", "CPM", "BPM", "RPGC", "None"), single.nuc = FALSE, single.nuc.region = NULL, bin.size = 10, bc.extra.para = NULL )
track.file |
Track file, when |
track.folder |
Track file folder. Default: NULL. |
format |
Track file format, chosen from bam, wig, bw(bigwig), bedgraph(bedGraph). |
meta.info |
Track file metadata. The columns should be: SampleName ( |
meta.file |
File contains track file metadata. Default: "". |
bamcoverage.path |
The path to |
norm.method |
Methods to normalize the number of reads per bin, chosen from "RPKM", "CPM", "BPM", "RPGC", "None". Default: RPKM. |
single.nuc |
Logical value, whether to visualize at single nucleotide level. Default: FALSE. |
single.nuc.region |
Region for |
bin.size |
Size of the bins, in bases. Default: 50. |
bc.extra.para |
Extra parameters for |
A dataframe.
library(ggcoverage) sample.meta <- data.frame( SampleName = c("Chr18_MCF7_ER_1", "Chr18_MCF7_ER_2", "Chr18_MCF7_ER_3", "Chr18_MCF7_input"), Type = c("MCF7_ER_1", "MCF7_ER_2", "MCF7_ER_3", "MCF7_input"), Group = c("IP", "IP", "IP", "Input") ) # track folder track.folder <- system.file("extdata", "ChIP-seq", package = "ggcoverage") # load bigwig file track.df <- LoadTrackFile( track.folder = track.folder, format = "bw", meta.info = sample.meta )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.