Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

filter_wells

Filter wells


Description

Filter out wells for which the number of active electrodes is less than 4, at least 70 percent of the time

Usage

filter_wells(unfiltered_df, nae,min_electrodes = 4, 
well_max_div_inactive_ratio = 0.5)

Arguments

unfiltered_df

Dataframe generated by the spike_features() function

nae

A dataframe containing the number of active electrodes for the recording

min_electrodes

Minimum number of active electrode to consider a well for analysis

well_max_div_inactive_ratio

The DIV inactive/active well ratio below which a well will be considered active for a set of DIVs

Value

A dataframe identical in format to the input, except that wells that do not meet the filtering criteria are removed.

Examples

data("S")
	data("parameters")
	s<-list(); s[[1]]<-S
	spike_features<-aggregate_features(s, feat_type="spike", parameters )
	nae = spike_features$nae
  filtered.spike.features = lapply(spike_features, function(x) filter_wells(x, nae))

meaRtools

Micro-Electro Array (MEA) Analysis

v1.0.4
GPL (>= 3)
Authors
Quanli Wang [aut, ctb], Sahar Gelfman [aut, ctb, cre], Diana Hall [aut, ctb], Ryan Dhindsa [aut, ctb], Matt Halvorsen [aut, ctb], Ellese Cotterill [aut, ctb], Tom Edinburgh [aut, ctb], Stephen J. Eglen [aut, ctb, ths]
Initial release
2018-7-1

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.