Generate both alfa and beta chains

This commit is contained in:
coolneng 2021-02-25 20:00:35 +01:00
parent f63fabac4f
commit 010849d4c9
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 17 additions and 9 deletions

View File

@ -1,13 +1,21 @@
library(immuneSIM)
sim_repertoire <- immuneSIM(
number_of_seqs = 1000,
generate_repertoires <- function(number_of_sequences) {
a_chain <- immuneSIM(
number_of_seqs = number_of_sequences,
species = "hs",
receptor = "tr",
chain = "a",
verbose = TRUE
)
b_chain <- immuneSIM(
number_of_seqs = number_of_sequences,
species = "hs",
receptor = "tr",
chain = "b",
verbose = TRUE
)
)
return(list("a_chain" = a_chain, "b_chain" = b_chain))
}
save(sim_repertoire, file = "data/repertoire")
plot_report_repertoire(sim_repertoire, output_dir = "data/reports")