View source: R/get-snp-den-track.R
getSNPDensityTrack | R Documentation |
Generate the SNP density DataTrack (from 'Gviz') for selected chromosome
getSNPDensityTrack(
chrom = "chr1",
sampleName = "s1",
path_loc = ".",
nwindow = 80,
plot_type = "hist",
log = TRUE
)
chrom |
the chromosome |
sampleName |
the sample name, which is the prefix of sscocaller's output files |
path_loc |
the path prefix to the output files from sscocaller including "*_totalCount.mtx" and "_altCount.mtx" |
nwindow |
the number of windows for binning the chromosome |
plot_type, |
the DataTrack plot type, default to be 'hist' |
log, |
whether the histogram of SNP density should be plotted on log scale (log10) |
DataTrack object plotting the SNP density histogram
Ruqian Lyu
demo_path <- system.file("extdata",package = "comapr")
snp_track <- getSNPDensityTrack(chrom ="chr1",
path_loc = demo_path,
sampleName = "s1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.