gpatterns.filter_loci | R Documentation |
Clusters the loci with kmeans with a relatively high k, calculates the sd
of each cluster centers,
and then removes loci that are within clusters with low variance.
gpatterns.filter_loci(
avgs,
k = NULL,
center_sd_thresh = NULL,
min_loci_frac = 0.3,
seed = NULL,
tidy = TRUE,
avg_col = "avg",
plot_cluster_sd = FALSE,
ret_clust_sd = FALSE
)
avgs |
'tidy' output of |
k |
number of clusters to divide to. if NULL - k would be chosen as number of loci divided by 150, in order to have ~100 loci per cluster. |
center_sd_thresh |
minimal sd of the cluster centers. if NULL - |
min_loci_frac |
minimal fraction of loci to return in case |
seed |
seed to use in |
tidy |
return tidy output |
avg_col |
column of average methylation in |
plot_cluster_sd |
plot the standard deviation of clusters. |
ret_clust_sd |
return a list with the filtered loci (under 'avgs'), and the cluster sd plot (under 'clust_sd_p') |
see ret_clust_sd
. if tidy
: avgs
data frame without the filtered loci. if tidy == FALSE
: intervals set with additional fields with regularized average methylation for each sample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.