Search
Question: Creation of flowSet using lapply
0
gravatar for Wilson Yeo
3.0 years ago by
Wilson Yeo0
Singapore
Wilson Yeo0 wrote:

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

 

 

 

ADD COMMENTlink written 3.0 years ago by Wilson Yeo0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 223 users visited in the last hour