View source: R/getRandomSubsample.R
getRandomSubsample | R Documentation |
Generating a random subsample. This function is used by the turbo_gliph
function to generate random subsamples of naive reference
sequences with a similar size as the sample size for random repeat sampling.
If specified the function tries to maintain the distribution of cdr3 lengths and/or V-gene usage of the whole sample in the subsample.
getRandomSubsample( cdr3_len_stratify = FALSE, vgene_stratify = FALSE, refseqs_motif_region, motif_region, motif_lengths_list, ref_motif_lengths_id_list, motif_region_vgenes_list, ref_motif_vgenes_id_list, ref_lengths_vgenes_list, lengths_vgenes_list )
cdr3_len_stratify |
logical. By default |
vgene_stratify |
logical. By default |
refseqs_motif_region |
character vector. Contains the motif regions of reference sequences. |
motif_region |
character vector. Contains the motif regions of sample sequences. |
motif_lengths_list |
list. Required if |
ref_motif_lengths_id_list |
list. Required if |
motif_region_vgenes_list |
list. Required if |
ref_motif_vgenes_id_list |
list. Required if |
ref_lengths_vgenes_list |
list. Required if |
lengths_vgenes_list |
list. Required if |
getRandomSubsample
returns a character vector containing a subsample of refseqs_motif_region
with the same size as motif_region
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.