swapScores {CAGEfightR} | R Documentation |
Take scores for a specific sample and a specific assay and put them into rowData.
swapScores(object, outputColumn = "score", inputAssay, sample)
object |
SummarizedExperiment: CAGE-data |
outputColumn |
character: Column in rowData to to hold swapped in scores. |
inputAssay |
character: Name of assay to take scores from. |
sample |
character: Name of sample to take scores from. |
SummarizedExperiment with sample scores from inputAssay in rowRata.
Other Swapping functions:
swapRanges()
data(exampleCTSSs) sample_names <- colnames(exampleCTSSs) # Replace scores with values from the first sample: x <- swapScores(exampleCTSSs, inputAssay='counts', sample=sample_names[1]) rowRanges(x)