Open lbeltrame opened 1 month ago
It's weird though, because it should avoid doing so:
Oddly enough, it doesn't:
qseaSet@cnv %>%
data.frame(check.names = FALSE, check.rows = F) %>% head()
seqnames start end width strand X10876287 X5494098 X5837175 X5848539 X5910748 sample_29_09_2023 sample_HL_02_10_2023
The problem is in the conversion of the GRanges itself, unfortunately:
I'd highly recommend that you don't use sampleNames that can't be converted cleanly into column names, it'll break several things. If there isn't already a check then it should be added to makeQset to prevent people from doing that earlier on.
Those unfortunately are names that come from the wet side, and changing them will break sample identification later on. I'd rather avoid that if possible.
EDIT: I assume there's no easy way of changing sample names short of recreating the qseaSet
?
Yes, you can rename sample names using either renameSamples
or renameQsetNames
. At some point renameQsetNames
should probably be removed IMO.
Thanks, for now I renamed the samples.
Case in point:
The first columns, which had numeric IDs, have been changed by R, therefore all selection operators which involve these columns will fail: