getFcsNEvents: Check the number of events in .fcs files

View source: R/exportedUtils.R

getFcsNEventsR Documentation

Check the number of events in .fcs files

Description

Many clustering algorithms cannot handle data objects with no events, so this utility is provided as a way to quickly check the number of events in a file. The number of events is parsed from the text header using low-level file I/O, so counting the events in very large .fcs files will not take longer than smaller files. It was modified in Feb 2022 to use flowCore functions that read the data location from the header tags if the values are missing from the initial header string.

Usage

getFcsNEvents(fcsFile)

Arguments

fcsFile

A string containing the location of an .fcs file

Value

Numeric indicating the number of events listed in the .fcs header

Author(s)

Mario G Rosasco

Matthew J Dufort, mdufort@benaroyaresearch.org


BenaroyaResearch/briDiscovr documentation built on March 15, 2024, 12:31 a.m.