Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renaming inside fcs file #270

Open
parikhhm opened this issue Jun 12, 2024 · 1 comment
Open

Renaming inside fcs file #270

parikhhm opened this issue Jun 12, 2024 · 1 comment

Comments

@parikhhm
Copy link

I am using your “flowCore” package.

We want to change sample name in the header line. I am using “flowCore::read.FCSheader” function. How can I change “$FIL” field and save it as a new .fcs file?

library(flowCore)
library(premessa)
library(CytoExploreR)

fcs_hq <- flowCore::read.FCS("T001_Panel2.fcs.astrolabe.fcs", transformation = FALSE)

I want to change "T001_Panel2.fcs.astrolabe.fcs" to "TN1_Panel2.fcs.astrolabe.fcs" inside the fcs file.

Thanks for your kind help!

Hemang

@SamGG
Copy link
Contributor

SamGG commented Jun 13, 2024

Hi! Me, I will not try to change any of the information within an FCS file. I consider an FCS file as a RAW data. At one step or another, we need to add metadata (annotations) to each FCS file (biological sample). Therefore I use an external Excel or CSV file for handling metadata, which is already integrate when reading a flowset. Best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants