|
 |
f025e53 |
# Enabled by default
|
|
 |
f025e53 |
# If the package needs to download data for the test which cannot be done in
|
|
 |
f025e53 |
# koji, these can be disabled in koji by using `bcond_with` instead, but the
|
|
 |
f025e53 |
# tests must be validated in mock with network enabled like so:
|
|
 |
f025e53 |
# mock -r fedora-rawhide-x86_64 rebuild <srpm> --enable-network --rpmbuild-opts="--with tests"
|
|
 |
f025e53 |
%bcond_without tests
|
|
 |
f025e53 |
|
|
 |
f025e53 |
# Requires m2r2 and other deps so disabled for the moment
|
|
 |
f025e53 |
%bcond_with docs
|
|
 |
f025e53 |
|
|
 |
f025e53 |
%global pypi_name LFPykit
|
|
 |
f025e53 |
%global lower_name lfpykit
|
|
 |
f025e53 |
|
|
 |
f025e53 |
%global _description %{expand:
|
|
 |
f025e53 |
This Python module contain freestanding implementations of electrostatic
|
|
 |
f025e53 |
forward models incorporated in LFPy (https://github.com/LFPy/LFPy,
|
|
 |
f025e53 |
https://LFPy.readthedocs.io).
|
|
 |
f025e53 |
|
|
 |
f025e53 |
The aim of the LFPykit module is to provide electrostatic models in a manner
|
|
 |
f025e53 |
that facilitates forward-model predictions of extracellular potentials and
|
|
 |
f025e53 |
related measures from multicompartment neuron models, but without explicit
|
|
 |
f025e53 |
dependencies on neural simulation software such as NEURON
|
|
 |
f025e53 |
(https://neuron.yale.edu, https://github.com/neuronsimulator/nrn), Arbor
|
|
 |
f025e53 |
(https://arbor.readthedocs.io, https://github.com/arbor-sim/arbor), or even
|
|
 |
f025e53 |
LFPy. The LFPykit module can then be more easily incorporated with these
|
|
 |
f025e53 |
simulators, or in various projects that utilize them such as LFPy
|
|
 |
f025e53 |
(https://LFPy.rtfd.io, https://github.com/LFPy/LFPy). BMTK
|
|
 |
f025e53 |
(https://alleninstitute.github.io/bmtk/,
|
|
 |
f025e53 |
https://github.com/AllenInstitute/bmtk), etc.
|
|
 |
f025e53 |
|
|
 |
f025e53 |
Its main functionality is providing class methods that return two-dimensional
|
|
 |
f025e53 |
linear transformation matrices M between transmembrane currents I of
|
|
 |
f025e53 |
multicompartment neuron models and some measurement Y given by Y=MI.
|
|
 |
f025e53 |
|
|
 |
f025e53 |
The presently incorporated volume conductor models have been incorporated in
|
|
 |
f025e53 |
LFPy (https://LFPy.rtfd.io, https://github.com/LFPy/LFPy), as described in
|
|
 |
f025e53 |
various papers and books:
|
|
 |
f025e53 |
|
|
 |
f025e53 |
- Linden H, Hagen E, Leski S, Norheim ES, Pettersen KH, Einevoll GT (2014) LFPy:
|
|
 |
f025e53 |
a tool for biophysical simulation of extracellular potentials generated by
|
|
 |
f025e53 |
detailed model neurons. Front. Neuroinform. 7:41. doi: 10.3389/fninf.2013.00041
|
|
 |
f025e53 |
|
|
 |
f025e53 |
- Hagen E, Næss S, Ness TV and Einevoll GT (2018) Multimodal Modeling of Neural
|
|
 |
f025e53 |
Network Activity: Computing LFP, ECoG, EEG, and MEG Signals With LFPy 2.0.
|
|
 |
f025e53 |
Front. Neuroinform. 12:92. doi: 10.3389/fninf.2018.00092
|
|
 |
f025e53 |
|
|
 |
f025e53 |
- Ness, T. V., Chintaluri, C., Potworowski, J., Leski, S., Glabska, H., Wójcik,
|
|
 |
f025e53 |
D. K., et al. (2015). Modelling and analysis of electrical potentials recorded
|
|
 |
f025e53 |
in microelectrode arrays (MEAs). Neuroinformatics 13:403–426. doi:
|
|
 |
f025e53 |
10.1007/s12021-015-9265-6
|
|
 |
f025e53 |
|
|
 |
f025e53 |
- Nunez and Srinivasan, Oxford University Press, 2006
|
|
 |
f025e53 |
|
|
 |
f025e53 |
- Næss S, Chintaluri C, Ness TV, Dale AM, Einevoll GT and Wójcik DK (2017).
|
|
 |
f025e53 |
Corrected Four-sphere Head Model for EEG Signals. Front. Hum. Neurosci. 11:490.
|
|
 |
f025e53 |
doi: 10.3389/fnhum.2017.00490}
|
|
 |
f025e53 |
|
|
 |
f025e53 |
Name: python-%{lower_name}
|
|
 |
f025e53 |
Version: 0.3
|
|
 |
ca78808 |
Release: 4%{?dist}
|
|
 |
f025e53 |
Summary: Electrostatic models for multicompartment neuron models
|
|
 |
f025e53 |
|
|
 |
f025e53 |
License: GPLv3+
|
|
 |
f025e53 |
URL: https://pypi.org/pypi/%{pypi_name}
|
|
 |
f025e53 |
Source0: %pypi_source
|
|
 |
f025e53 |
|
|
 |
f025e53 |
BuildArch: noarch
|
|
 |
f025e53 |
|
|
 |
f025e53 |
%description %_description
|
|
 |
f025e53 |
|
|
 |
ba3d8ae |
%package -n python3-%{lower_name}
|
|
 |
f025e53 |
Summary: %{summary}
|
|
 |
f025e53 |
BuildRequires: python3-devel
|
|
 |
f025e53 |
BuildRequires: python3-setuptools
|
|
 |
f025e53 |
BuildRequires: %{py3_dist h5py}
|
|
 |
f025e53 |
BuildRequires: %{py3_dist meautility}
|
|
 |
f025e53 |
BuildRequires: %{py3_dist numpy}
|
|
 |
f025e53 |
BuildRequires: %{py3_dist pytest}
|
|
 |
f025e53 |
BuildRequires: %{py3_dist scipy}
|
|
 |
f025e53 |
|
|
 |
f025e53 |
%if %{with docs}
|
|
 |
f025e53 |
# Documentation
|
|
 |
f025e53 |
BuildRequires: make
|
|
 |
f025e53 |
BuildRequires: %{py3_dist sphinx}
|
|
 |
f025e53 |
BuildRequires: %{py3_dist numpydoc}
|
|
 |
f025e53 |
%endif
|
|
 |
f025e53 |
|
|
 |
ba3d8ae |
%description -n python3-%{lower_name} %_description
|
|
 |
f025e53 |
|
|
 |
f025e53 |
%package doc
|
|
 |
f025e53 |
Summary: %{summary}
|
|
 |
f025e53 |
|
|
 |
f025e53 |
%description doc
|
|
 |
f025e53 |
Documentation for %{name}.
|
|
 |
f025e53 |
|
|
 |
f025e53 |
%prep
|
|
 |
f025e53 |
%autosetup -n %{pypi_name}-%{version}
|
|
 |
f025e53 |
rm -rf %{pypi_name}.egg-info
|
|
 |
f025e53 |
|
|
 |
f025e53 |
find . -type f -name "*.py" -exec sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' {} 2>/dev/null ';'
|
|
 |
f025e53 |
|
|
 |
f025e53 |
%build
|
|
 |
f025e53 |
%py3_build
|
|
 |
f025e53 |
|
|
 |
f025e53 |
%if %{with docs}
|
|
 |
f025e53 |
make -C doc/source SPHINXBUILD=sphinx-build-3 html
|
|
 |
f025e53 |
rm -rf doc/source/_build/html/{.doctrees,.buildinfo} -vf
|
|
 |
f025e53 |
%endif
|
|
 |
f025e53 |
|
|
 |
f025e53 |
%install
|
|
 |
f025e53 |
%py3_install
|
|
 |
f025e53 |
|
|
 |
f025e53 |
%check
|
|
 |
f025e53 |
%if %{with tests}
|
|
 |
f025e53 |
%{pytest}
|
|
 |
f025e53 |
%endif
|
|
 |
f025e53 |
|
|
 |
ba3d8ae |
%files -n python3-%{lower_name}
|
|
 |
f025e53 |
%license LICENSE
|
|
 |
f025e53 |
%doc README.md
|
|
 |
f025e53 |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
|
 |
f025e53 |
%{python3_sitelib}/%{lower_name}
|
|
 |
f025e53 |
|
|
 |
f025e53 |
%files doc
|
|
 |
f025e53 |
%license LICENSE
|
|
 |
f025e53 |
%doc examples
|
|
 |
f025e53 |
%if %{with docs}
|
|
 |
f025e53 |
%doc doc/source/_build/html
|
|
 |
f025e53 |
%endif
|
|
 |
f025e53 |
|
|
 |
f025e53 |
%changelog
|
|
 |
ca78808 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-4
|
|
 |
ca78808 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
 |
ca78808 |
|
|
 |
ac2528d |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-3
|
|
 |
ac2528d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
 |
ac2528d |
|
|
 |
ba3d8ae |
* Thu Jul 01 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3-2
|
|
 |
ba3d8ae |
- Use lowername for sub package
|
|
 |
ba3d8ae |
|
|
 |
f025e53 |
* Sun Jun 27 2021 Ankur Sinha <ankursinha AT fedoraproject DOT org> - 0.3-1
|
|
 |
f025e53 |
- Initial package
|
|
 |
f025e53 |
|