[R] Reading FCS files with flowCore package
Martin Morgan
mtmorgan at fredhutch.org
Mon Nov 24 19:36:58 CET 2014
On 11/24/2014 06:18 AM, Luigi wrote:
> Dear all,
> I would like to use the R's Bioconductor package flowCore to do flow cytometry
Please address questions about Bioconductor packages to the Bioconductor support
site
https://support.bioconductor.org
and...
> analysis.
> I generated a FCS file using the file>export function of the FACSDiva Software
> Version 8 from a BD LSRII machine. I then used the functions:
> file.name <-system.file("extdata", "cd cells_FMO 8_003.fcs",
> package="flowCore")
system.file() is used to access files installed in R packages, but probably you
want to access your own file. Try
file.name = file.choose()
and selecting the file that you want to iniptu. Verify that the path is correct
by displaying the result
file.name
Martin
> x <-read.FCS(file.name, transformation = FALSE)
> as shown in the flowCore: data structure package... vignette (20 May 2014) as
> available from the internet. However the result is an error:
> >Error in read.FCS(file.name, transformation = FALSE) : ' ' is not a valid
> file
> I then used the function:
> isFCSfile("cd cells_FMO 8_003.fcs")
> where cd cells_FMO 8_003.fcs is the name of the file. As expected I obtained the
> following message:
> >cd cells_FMO 8_003.fcs FALSE
> meaning I reckon that the file is not a FCS. Since I am completely new to this
> kind of analysis but I would not like to use flowJo, could anybody tell me how
> to load the FCS files? In the rest of the file I am pasting the beginning of the
> cd cells_FMO 8_003.fcs file for further reference (I can't attach the whole
> thing or even attaching the file because it is too big). From its gibberish I
> reckon that the encoding is probably wrong: I was expecting a flatfile after all
> not ASCII. Would the problem be how the run was exported? FlowJo however
> recognizes the files...
> Best regards,
> Luigi
>
> ==============================
> FCS3.0 256 1927 1933 1192532 0 0
> $BEGINANALYSIS0$ENDANALYSIS0$BEGINSTEXT0$ENDSTEXT0$BEGINDATA1933$ENDDATA1192532
> $FIL180444.fcs$SYSWindows 7 6.1$TOT29765
> $PAR10$MODEL$BYTEORD4,3,2,1$DATATYPEF$NEXTDATA0CREATORBD FACSDiva
> Software Version 8.0TUBE NAMEFMO 8$SRCcd
> cellsEXPERIMENT
> NAMEExperiment_001GUID4171c2f1-427b-4cc5-bf86-39bb76803c48$DATE31-OCT-2014$BTIM16:07:12$ETIM16:09:25SETTINGSCytometerWINDOW
> EXTENSION0.00EXPORT USER NAMELuigiMarongiuEXPORT
> TIME31-OCT-2014-16:07:11FSC ASF0.78AUTOBSTRUE$INST
> $TIMESTEP0.01SPILL3,405-450/50-A,405-655/8-A,405-525/50-A,1,0.0028442147740618787,0.0923076944711957,0,1,0,0.3425525014147933,0.08630456626553264,1APPLY
> COMPENSATIONTRUETHRESHOLDFSC,5000$P1NTime$P1R262144$P1B32$P1E0,0$P1G0.01P1BS0P1MS0$P2NFSC-A$P2R262144$P2B32$P2E0,0$P2V450$P2G1.0P2DISPLAYLINP2BS-1P2MS0$P3NFSC-H$P3R262144$P3B32$P3E0,0$P3V450$P3G1.0P3DISPLAYLINP3BS-1P3MS0$P4NFSC-W$P4R262144$P4B32$P4E0,0$P4V450$P4G1.0P4BS-1P4MS0$P5NSSC-A$P5R262144$P5B32$P5E0,0$P5V319$P5G1.0P5DISPLAYLINP5BS-1P5MS0$P6NSSC-H$P6R262144$P6B32$P6E0,0$P6V319$P6G1.0P6DISPLAYLINP6BS-1P6MS0$P7NSSC-W$P7R262144$P7B32$P7E0,0$P7V319$P7G1.0P7BS-1P7MS0$P8N405-450/50-A$P8Scd8
> - pac
> blue$P8R262144$P8B32$P8E0,0$P8V450$P8G1.0P8DISPLAYLOGP8BS-1P8MS0$P9N405-655/8-A$P9Scd45ra
> -
> q655$P9R262144$P9B32$P9E0,0$P9V450$P9G1.0P9DISPLAYLOGP9BS-1P9MS0$P10N405-525/50-A$P10Sld
> -
> acqua$P10R262144$P10B32$P10E0,0$P10V450$P10G1.0P10DISPLAYLOGP10BS-1P10MS0CST
> BEADS EXPIREDFalse BHffEùëGwI,E p FÑgG F{¨
> DË×ÀG®CçË
BI33GAàõG¬GA G1ÊqG
> G" Bôk
Ab=pBÜ.BI33EÝ-ÂGÊÀEÚ Fe×Gh±Fc DN
> =ÀAë
CÝqBK33FÀúGJF½ FVG{ÚeF| Bp¤Cb=pAÊ BM33GõÇG¡ÃGÁö G³ôãG;G
> CÓREY6CiO\BO33EÑÞfGPlEÂ8 El G4.E0 Cp¤ÃHýqC!BQ33FKòGUùF6 FûG¾vF
> Â-¸RC0À ÂJ BTffG^ùõGm at G5L GHîGÏüG8ø Ap¤FBÅõÂBVÌÍF¥Ý£G®ÑdFrä G8ÐG÷âG!Ý
> C&¦fB ÀG®BZ F®G)~Fb F±ÕG´ôF ¢ Áâ=pBW
> B \)B]33FøuáG0ÏFߪ G¸.GE¤G
> Õ Bâ=pF0fB=áHB_EÇÙÂG
ÒdE¿( FRÙGÈFE DgáÃ
CzáBaF×Õ£G¥ÌF¦Þ
> Fë¦HG¬:FÐ~ BøuÂC#¸BAë
BbÌÍGaGG: G$ÛOGÜ¡Gà
> C#¸Fï=BffBhffGß^Gí¾Gw@ G~GSFõ( BêQëFÕ¥
CW
> BhffFÜ
> (GÂOFÕÆ F}v)G¡ùFHL BÃð¤Âb=pB9×
> BiG©MGi0GGDGf·G*½ Bî\)C³Ç®CAë
Bj G5[ðGsûGG G]¾Gö!G3
> CR{F$HBG®Bj FÜéG/FÀ G(ñGGÛ B
> ffGxRCÍBlÌÍE××GEÁ E±
G»E¬ Àâ=pCtk
@G®BnÌÍGGcG
> G/$;Gë]G!` B¥£×FBfG®BzffE³QG:zE F0y GµF/
> DEÂþ
C®B{G¨\G)JGz G,Gª¬G¥ Bk
G(ÊÔBÜ.B|ffG*<ðGÚ}G´
> FéGØ8FÎ` AúzáÂLÍB\B|ÌÍG¬}\GGGY
> GÕG@) CÝqGp¶CnB~ÌÍFñ3GïpFÑ Fª¤GFà CG®F9
>
> etc.
>
>
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109
Location: Arnold Building M1 B861
Phone: (206) 667-2793
More information about the R-help
mailing list