Creation of flowSet using lapply
0
0
Entering edit mode
Wilson Yeo • 0
@wilson-yeo-9259
Last seen 7.1 years ago
Singapore

Hi,

I received the below error message when I was creating a flowSet consisting of two .lmd files. 

Error in names(from) <- paste("V", seq(1, length(from)), sep = "") : 
  'names' attribute [2] must be the same length as the vector [0]

My entire workscreen is as follows,

Loading required package: flowCore
> library(flowCore)
> library(flowViz)
Loading required package: lattice
> x <- read.FCS("G://FCM files/JennyG4a23052015.LMD")
Warning message:
No '$PnE' keyword available for the following channels: 6
Using '0,0' as default. 
> x
flowFrame object 'JennyG4a23052015.LMD'
with 50000 cells and 6 observables:
    name              desc range minRange maxRange
$P1  FL3  FL3 Fluorescence  1024 1.009044    10000
$P2   EV Electronic Volume  1024 0.000000     1023
$P3  FL1  FL1 Fluorescence  1024 1.009044    10000
$P4  FL2  FL2 Fluorescence  1024 1.009044    10000
$P5   SS      Side Scatter  1024 1.009044    10000
$P6 TIME              Time  1024 0.000000     1023
383 keywords are stored in the 'description' slot
> frames <- lapply(dir(system.file("G://FCM files/JennyG4a23052015.LMD", "G://FCM files/JennyG4b23052015.LMD", 
+                                  package="flowCore"), full.names=TRUE), 
+                  read.FCS)
> as(frames, "flowSet")
Error in names(from) <- paste("V", seq(1, length(from)), sep = "") : 
  'names' attribute [2] must be the same length as the vector [0]

Thank you in advance!

Best Regards,

Wilson

 

 

 

lapply • 1.2k views
ADD COMMENT

Login before adding your answer.

Traffic: 807 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6