sampleFromPooled: Pool and resample samples to create reference/background...

View source: R/RepDaAnalysisFns.R

sampleFromPooledR Documentation

Pool and resample samples to create reference/background repertoires and return only CDR3s, normalizes samples to equal number of sequence reads

Description

Pool and resample samples to create reference/background repertoires and return only CDR3s, normalizes samples to equal number of sequence reads

Usage

sampleFromPooled(repSeqObj, nClones, cType = "AA", useProb = T)

Arguments

repSeqObj

is an object containing all repertoire sample data

nClones

number of CDR3 sequences to randomly draw

cType

the type of CDR3 sequence to return for the drawn clones, either AA or NT

useProb

a boolean to indicate whether the resampling should be done probablistically or not.

Value

returns a vector of CDR3 sequences with size nClones that is randomly sampled from the pooled datasets of all repseq samples in repSeqObj


dyohanne/RepAn documentation built on Feb. 3, 2023, 2:41 p.m.