View source: R/VDJ_get_public.R
VDJ_get_public | R Documentation |
Function to get shared elements across multiple repertoires, specified by the feature.columns parameter (a column of the VDJ matrix). If two columns are specified in feature.columns, the resulting shared features will combine the values from each column (at a per-cell level).
VDJ_get_public(
VDJ,
feature.columns,
repertoire.column,
specific.repertoires,
find.public.all,
find.public.percentage,
treat.combined.features,
output.format
)
VDJ |
VDJ or VDJ.GEX.matrix[[1]] object, as obtained from the VDJ_GEX_matrix function in Platypus. |
feature.columns |
Character or character vector columns of features to be assayed |
repertoire.column |
string - the repertoire-defining column (default to 'sample_id'). |
specific.repertoires |
vector of strings or NULL - if only the shared elements from specific repertoires should be taken into account. If NULL, will output the shared/public elements across all repertoires. |
find.public.all |
boolean - if T, will look for the public elements across all repertoires |
find.public.percentage |
list - the first element denotes the percentage of repertoires to get shared elements for, the second element is the maximum number of repertoire combinations to consider (can be NULL to consider all). |
treat.combined.features |
string - 'exclude' will exclude combined features with one element missing, 'include' will include and considers them as a new feature value. |
output.format |
string - 'df' to get a shared element dataframe (with columns = Repertoire and Public), 'list' for a list of shared elements. |
Either a dataframe of public elements across multiple repertoires or a list.
VDJ_get_public(VDJ = Platypus::small_vgm[[1]],
feature.columns='VDJ_cdr3s_aa', find.public.all=TRUE,
output.format='df')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.