permute_cells: Permute cell labels for computing empirical p-values

Description Usage Arguments See Also Examples

Description

Permute individual labels to compute empirical p-value for similarity metrics comparing the observed individual level coefficients of variation (CV). This function was developed for Tung et al. (2006) in comparing adjusted coefficients of variation computed from three subsets of cells, each of which is quantified for a LCL.

Usage

1
2
permute_cells(log2counts, grouping_vector, number_permute,
  subset_matrix = NULL)

Arguments

log2counts

log2counts matrix of gene by cells

grouping_vector

the grouping vector corresponds to variable of interest

number_permute

number of permuted samples

See Also

Other single.cell: cell_phase_assign, plot_density_overlay

Examples

1
2
3
4
# tmp <- permute_cells(log2counts = molecules_final_df[1:5,],
#                      grouping_vector = anno_filter$individual,
#                      number_permute = 2,
#                      subset_matrix = molecules_expressed_df[1:5, ])

jhsiao999/Humanzee documentation built on May 19, 2019, 9:28 a.m.