View source: R/ClusteredSignal.R
ClusteredSignal.fromConfig | R Documentation |
ClusteredSignal.fromConfig
ClusteredSignal.fromConfig(
signal_config,
query_gr,
manual_assigned = list(),
nclust = 6,
facet_var = "name_split",
extra_var = character(),
bfc = new_cache()
)
signal_config |
A valid QcConfigSignal |
query_gr |
A GRanges containing regions to retrieve signal data at. |
manual_assigned |
NYI but should allow manual cluster assignment. |
nclust |
Number of k-means clusters to calculate. Default is 6. |
facet_var |
Variable that will eventually be used in heatmap facets. Ensures it is preserved and not aggregated away. Default is "name_split". |
extra_var |
Any extra variables to preserve and avaoid aggregating away. |
bfc |
BiocFileCache to use, uses default location otherwise. |
A ClusteredSignal object containing clustered signal profiles.
options(mc.cores = 10)
set.seed(0)
feature_config_file = system.file(package = "ssvQC", "extdata/ssvQC_peak_config.csv")
feature_config = QcConfigFeatures.parse(feature_config_file, process_features= TRUE)
bam_config_file = system.file(package = "ssvQC", "extdata/ssvQC_bam_config.csv")
bam_config = QcConfigSignal.parse(bam_config_file)
sqc = ssvQC(feature_config, bam_config)
prepS
query_gr = feature_config$assessment_features$CTCF_features
sclust = ClusteredSignal(sqc@signal_profile, sqc@feature_config$assessment_features)
sclust$
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.