Closed Aminach1 closed 5 months ago
Most probably this is because each group of files have non-overlapping channels and therefore cannnot unify names. Are these from different cytometers or with different settings?
Thank you for your prompt response. All 11 files were measured with the same cytometer and also with the same settings (also with the same panel).
Can you send me a couple of files for each one of the groups with different headers, please? (jgarces@unav.es)
Okay, Thank you!
Hi @Aminach1, thanks for your patience. It seems that the problem with your files is the header of the second one includes additional text in front of the channels’ names and this is crashing the function.
What I suggest to you is to adjust them manually through these lines:
file <- "flowframe2.fixed.fcs"
aux <- flowCore::read.FCS(file)
colnames(aux) <- gsub("FJComp-", "", colnames(aux))
flowCore::write.FCS(aux, filename = paste0(gsub("fcs", "", file), "fixed.fcs"))
I'm closing this issue. Please, feel free to re-open it again if needed. Thanks.
Hello,
I am encountering an issue while executing the unify.FCSheaders function. Specifically, when I set fix=F, the identification of name inconsistencies appears to be functioning correctly. In my example, three files exhibit variations in marker names.
However, when I set the "fix" option to TRUE, the files with inconsistencies are not replaced by the corrected versions, resulting in the following error.
How can I resolve this problem? Thanks!