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

Can't open FCS files that were created using HistoCAT #133

Closed
dtelad11 opened this issue Oct 26, 2018 · 6 comments
Closed

Can't open FCS files that were created using HistoCAT #133

dtelad11 opened this issue Oct 26, 2018 · 6 comments

Comments

@dtelad11
Copy link

Describe the bug
When trying to use flowCore::read.FCS with an FCS file that was created using HistoCAT, I get the following error:

Error in readFCSgetPar(x, paste("$P", 1:nrpar, "B", sep = "")) : 
  Parameter(s) $P1B not contained in 'x'
Parameter(s) $P2B not contained in 'x'
Parameter(s) $P3B not contained in 'x'
Parameter(s) $P4B not contained in 'x'
Parameter(s) $P5B not contained in 'x'
Parameter(s) $P6B not contained in 'x'
Parameter(s) $P7B not contained in 'x'
Parameter(s) $P8B not contained in 'x'
Parameter(s) $P9B not contained in 'x'
Parameter(s) $P10B not contained in 'x'
Parameter(s) $P11B not contained in 'x'
Parameter(s) $P12B not contained in 'x'
Parameter(s) $P13B not contained in 'x'
Parameter(s) $P14B not contained in 'x'
Parameter(s) $P15B not contained in 'x'
Parameter(s) $P16B not contained in 'x'
Parameter(s) $P17B not contained in 'x'
Parameter(s) $P18B not contained in 'x'
Parameter(s) $P19B not contained in 'x'
Parameter(s) $P20B not contained in 'x'
Parameter(s) $P21B not contained in 'x'
Parameter(s) $P22B not contained in 'x'
Parameter(s) $P23B not contained in 'x'
Parameter(s) $P24B not contained in 'x'
Parameter(s) $P25B not contained in 'x'

To Reproduce
Just run

fcs <- flowCore::read.FCS("filename.fcs")

Where filename.fcs was exported from HistoCAT.

Expected behavior

I expected the file to import normally.

Additional context

I have an example file I could share. Please contact me at el.ad.david.amir@gmail.com and I'll send it to you. Once we figure it out I'm happy to contact HistoCAT and explain the issue to them, hopefully they can fix it on their end.

@gfinak
Copy link
Member

gfinak commented Oct 26, 2018

The error is due to the FCS file being malformed.
There is no keyword for parameter $P1B, instead these are named "1B" and so forth.

@dtelad11
Copy link
Author

Thank you. I will reach out to HistoCAT.

@DenisSch
Copy link

I will follow up on this in the next few days! Thank you!

@DenisSch
Copy link

I can not reproduce the error in histoCAT so far. Please share the histoCAT's "sessionData"

The parameters should be included:
https://github.com/BodenmillerGroup/histoCAT/blob/bb14e391ce98ae61aaf22df0f055a4df9990b78a/histoCAT/3rdParty/fca_fcs/fca_writefcs.m#L24

@gfinak
Copy link
Member

gfinak commented Nov 26, 2018

I'll keep this open until someone, maybe @dtelad11 , can reproduce this. We were just handed a malformed FCS file. flowCore et al. never touched the file.

@dtelad11
Copy link
Author

Since this is a HistoCAT issue (rather than a flowCore issue) I think you can safely close this, no?

@gfinak gfinak closed this as completed Nov 27, 2018
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

3 participants