# Limit the number of threads used by the underlying DB for this session.
# Change this only if you know what you're doing (e.g., multi-user machines, shared CI/servers).
db_exec("SET threads TO 2")
# Load data
if (FALSE) {
immdata <- get_test_idata() |> agg_repertoires("Therapy")
}
#
# airr_stats_chains
#
if (FALSE) {
airr_stats_chains(immdata)
}
#
# airr_stats_lengths
#
if (FALSE) {
airr_stats_lengths(immdata)
}
#
# airr_stats_genes
#
if (FALSE) {
# V gene usage by receptor count
airr_stats_genes(immdata, gene_col = "v_call", level = "receptor")
# V gene usage by summed cell/UMI counts (if a count column is present)
airr_stats_genes(immdata, gene_col = "v_call", level = "barcode")
# Split by locus (TRA/TRB/... if locus column exists)
airr_stats_genes(immdata, gene_col = "v_call", level = "receptor", by = "locus")
}
Run the code above in your browser using DataLab