Inverse of toMNE(): reads the signal matrix, channel names/types, sampling
rate, electrode montage and annotations from an MNE Raw object into a
PhysioExperiment. The import is recorded in the object's provenance.
Arguments
- raw
An MNE
Rawobject (e.g. fromtoMNE()ormne.io.read_raw_*).
Examples
if (hasMNE()) {
pe <- PhysioExperiment(
assays = S4Vectors::SimpleList(raw = matrix(rnorm(300), 100, 3)),
colData = S4Vectors::DataFrame(label = c("Fp1", "Fp2", "Cz"),
type = rep("eeg", 3)),
samplingRate = 100)
pe2 <- fromMNE(toMNE(pe))
}
#> Downloading uv...
#> Done!