View source: R/ClusteredSignal_TSNE.R
ClusteredSignal_TSNE | R Documentation |
ClusteredSignal_TSNE
ClusteredSignal_TSNE( signal_profile_dt, query_gr, manual_assigned = list(), nclust = 6, signal_var = "y", signal_var.within = "y", facet_var = "name_split", extra_var = character() )
signal_profile_dt |
Tidy data.table containing profile information. See output of seqsetvis::ssvFetchBam. |
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. |
signal_var |
Variable name for signal information to cluster upon in signal_profile_dt. Default is "y". |
signal_var.within |
Variable name for ranking items within clusters. The Default is the same as signal_var. |
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_TSNE object containing clustering and TSNE information.
signal_profile_dt = seqsetvis::CTCF_in_10a_profiles_dt setnames(signal_profile_dt, "sample", "name_split") query_gr = seqsetvis::CTCF_in_10a_overlaps_gr clust_sig = ClusteredSignal_TSNE(signal_profile_dt, query_gr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.