Skip to content

hummuscience/neuroimgr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a package intended to ease the import and manipulation of calcium and voltage imaging data in R.

The package uses the SummarizedExperiment class from Bioconductor and allows all usual manipulations such as subsetting etc.

Additionally, the package implements some useful general functions explained below:

Issues

python 3.6 dependency for readSuite2p

Since suite2p stores some of its data in a format that can only be read by numpy from python 3.6+ the readSuite2p function requires python 3.6 to perform correctly. The function relies on the reticulate package which usually ends up using the standard python 2.7 installation of the system. To ensure that python 3.6 is used, add the path of your python 3.6 installation to your .Renviron or .Rprofile files. Below is an example of a miniconda installation on macOS.

RETICULATE_PYTHON="/opt/miniconda3/bin/python"

bla <- as.data.frame(raw(calexp))
bla <- bla[,1:2]
bla$t <- 1:nrow(bla)


fits <- bla %>%
  gather(key = key, value = y, -t) %>%
  group_by(key) %>% 
  do(fit = nls(y ~ SSasymp(t, yf, y0, log_alpha), data = .)) %>% 
  tidy(fit) %>% 
  select(key, term, estimate) %>% 
  spread(term, estimate) %>% 
  mutate(alpha = exp(log_alpha))

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages