View source: R/addTBsignature.R
addTBsignature | R Documentation |
This function allows users to integrate new signatures into the TBSP with a function that updates the TBsignatures, TBcommon, sigAnnotData and common_sigAnnotData objects. Users that wish to use this function should do so with the downloaded package as a working directory, and not as a casual package function. This function does not complete all required updates to the package for a signature to be full added; users should check the vignette "Submitting Signatures to the TBSP Package" on the TBSP website for a walkthrough of this complete process. Also note that this function only adds one signature at a time, and must me run multiple times to add subsequent signatures.
addTBsignature(
sigsymbols,
authname,
signame_common = NULL,
sigtype,
tissuetype,
saveobjs = FALSE,
views = TRUE
)
sigsymbols |
a |
authname |
a |
signame_common |
a |
sigtype |
a |
tissuetype |
a |
saveobjs |
|
views |
logical. If |
Either data objects TBsignatures
, TBcommon
,
sigAnnotData
, and common_sigAnnotData
will be updated with the
new signature and overwritten if saveobjs = FALSE
, or no output will
be produced except errors and messages for checking that the function
runs correctly given the inputs.
# Mock example signature
TBSignatureProfiler:::addTBsignature(sigsymbols = c("GBP5", "BATF2", "GZMA"),
authname = "Odom",
signame_common = NULL,
sigtype = "Disease/HIV",
tissuetype = "PBMC",
saveobjs = FALSE,
views = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.