sample_reference_data: Sample genes from reference dataset

Description Usage Arguments Examples

View source: R/reference.R

Description

Sample genes from reference dataset

Usage

1
2
sample_reference_data(reference_data, p, percent_ZI = NULL,
  threshold_ZI = 0.2)

Arguments

reference_data

The reference data.frame to use.

p

The number of genes (columns) to sample

percent_ZI

The percentage of genes to be zero inflated. If NULL, the genes are sampled at random; in this case, the empirical distribution of gene expression profiles will determine the probablility that a sampled gene is zero inflated.

threshold_ZI

The minimum proportion of zero counts for a gene to be considered as zero inflated.

Examples

1
2
3
data(reference)
rnaseq <- reference$rnaseq
rnaseq_subset <- sample_reference_data(rnaseq, 10)

tgrimes/SeqNet documentation built on Sept. 1, 2020, 7:50 a.m.