shared.repertoire - make a shared repertoire of sequences from the given list of data frames.
shared.matrix - leave columns, which related to the count of sequences in people, and return them as a matrix.
I.e., this functions will remove such columns as 'CDR3.amino.acid.sequence', 'V.gene', 'People'.
shared.repertoire(.datalist, .type = 'avrc', .min.ppl = 1, .head = -1,
.clear = T, .verbose = T, .by.col = '', .sum.col = '',
.max.ppl = length(.datalist))shared.matrix(.shared.rep)
.by.col and .sum.col will be ignored. If not supplied, than columns
in .by.col and head function, applied to all data frames before clearing.shared.repertoire, matrix for shared.matrix..type is a string of length 4, where:
set.rankfunction using "Umi.count" / "Read.count" column.# Set "Rank" column in data by "Read.count" column.
# This is doing automatically in shared.repertoire() function
# if the "Rank" column hasn't been found.
immdata <- set.rank(immdata)
# Generate shared repertoire using "CDR3.amino.acid.sequence" and
# "V.gene" columns and with rank.
imm.shared.av <- shared.repertoire(immdata, 'avrc')Run the code above in your browser using DataLab