permu_edge: get lists of permuted weighted within-sample edge-counts and...

View source: R/permu_edge.R

permu_edgeR Documentation

get lists of permuted weighted within-sample edge-counts and between-sample edge-counts

Description

get lists of permuted weighted within-sample edge-counts and between-sample edge-counts

Usage

permu_edge(n_per, E, n1, n2, wei, progress_bar = FALSE)

Arguments

n_per

number of permutations.

E

an edge matrix representing a similarity graph. Each row represents an edge and records the indices of two ends of an edge in two columns. The indices of observations in sample 1 are from 1 to n1 and indices of observations in sample 2 are from 1+n1 to n1+n2.

n1

number of observations in sample 1.

n2

number of observations in sample 2.

wei

a vector of weights of each edge.

progress_bar

a logical evaluating to TRUE or FALSE indicating whether a progress bar of the permutation should be printed.

Value

R1

the permuted weighted within-sample edge-counts for sample 1.

R2

the permuted weighted within-sample edge-counts for sample 2.

R

the permuted weighted between-sample edge-counts.


rgTest documentation built on Aug. 14, 2023, 5:08 p.m.