https://github.com/ctlab/phantasus
Tip revision: 352afd17e53dcc6d6682988d722127ba8a2190bd authored by Alexey Sergushichev on 29 March 2024, 23:37:48 UTC
Skipping absent file when generating counts index
Skipping absent file when generating counts index
Tip revision: 352afd1
renameColumn.R
renameColumn <- function (es, isFeature = TRUE, oldName, newName) {
if (isFeature) {
fData(es)[[newName]] <- fData(es)[[oldName]]
fData(es)[[oldName]] <- NULL
} else {
phenoData(es)[[newName]] <- phenoData(es)[[oldName]]
phenoData(es)[[oldName]] <- NULL
}
assign("es", es, envir = parent.frame())
}