exportToPairedGSEA | R Documentation |
This function prepares input data for paired paired DGE/DGS analysis by extracting a count matrix and corresponding metadata (design matrix) from a switchAnalyzeRlist
object. The results can be saved as an RDS file for downstream analysis.
exportToPairedGSEA(
switchAnalyzeRlist,
pathToOutput = getwd(),
writeToFile = FALSE,
rdsFileName = "pairedGSEA_input.rds",
overwrite = TRUE,
quiet = FALSE
)
switchAnalyzeRlist |
A |
pathToOutput |
The directory where the RDS file should be saved if |
writeToFile |
A logical value indicating whether to save the results as an RDS file. Default is |
rdsFileName |
The name of the RDS file to be saved when |
overwrite |
A logical value indicating whether to overwrite an existing RDS file with the same name. Default is |
quiet |
A logical value indicating whether to suppress progress messages. Default is |
This function extracts a count matrix and design matrix from the switchAnalyzeRlist
and prepares them for pairedGSEA analysis, specifically paired_diff function. The count matrix is modified such that row names follow the format gene_id:isoform_id
. If the writeToFile
argument is set to TRUE
, the result is saved as an RDS file in the specified directory.
A list containing the following elements:
count_matrix
: A modified count matrix where row names follow the format gene_id:isoform_id
.
metadata
: The design matrix extracted from the switchAnalyzeRlist
.
If writeToFile=TRUE
, the list is also saved as an RDS file in the specified directory.
Chunxu Han, Kristoffer Vitting-Seerup
switchAnalyzeRlist
### Example usage
# Load example data
data("exampleSwitchList")
# Export data for paired GSEA without saving to file
pairedGSEAList <- exportToPairedGSEA(
switchAnalyzeRlist = exampleSwitchList,
writeToFile = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.