Questions tagged [neuroscience]
Neuroscience is the study of nervous systems. This tag is broadly applied to questions from the various subbranches like brain imaging, neural engineering, computational and systems neuroscience.
162
questions
0
votes
0
answers
12
views
Notch filtering in stereoelectroencephalography
How I can remove line noise on stereoEEG? .
I have tried using:
Fir filter
Iir notch
Butter notch filter
Fieldtrip notch filter
Comb filter.
Have used higher order filters
I expected the line noise ...
0
votes
0
answers
11
views
Leaky Integrate and fire neuron model - Linear decay of the membrane potential
I know that the in the LIF model, in the absence of input signals, the membrane potential will decay non linearly following an exponential of exp(t/tm) where tm is The membrane time constant. I am ...
0
votes
0
answers
15
views
Why does my class incremental learning accuracy decrease in the middle?
I am trying to generate a class-incremental framework which decreases forgetting on a split-cifar10 dataset but I am running into problems.
I am trying to use a memory buffer and train my model on ...
0
votes
0
answers
36
views
Brian2 error: 'Attribute' object has no attribute 'id' and Unknown syntax: Call
I have tried to construct a Hodgkin-Huxley Model with brian2 and encountered the following error messages at the same time: 'Attribute' object has no attribute 'id' and Unknown syntax: Call at the ...
0
votes
0
answers
45
views
Shapes must be equal rank, but are 0 and 2 From merging shape 0 with other shapes. for '{{node AddN}} = AddN[N=2, T=DT_FLOAT] bug?
I am currently trying to train an EEGnet model with tensorflow to do binary classification of EEG signals ( paper: [https://arxiv.org/abs/1611.08024] . My model is as follows
fs = 512 # ...
0
votes
1
answer
67
views
How to move the leaky integrate and fire model from using the Euler method to a Python ODE solver?
I have a questions with regards to the implementation of the leaky integrate and fire model in Python using ODE solvers.
I have an implementation using the Euler method with a for loop:
import numpy ...
1
vote
0
answers
39
views
Too many parameters in model
Hi I wanted to create a 'mega' linear mixed effects model with nested fixed effects (using the lme4 package) where the interaction effect of type and language was modelled within each level of brain ...
0
votes
0
answers
58
views
How to plot the discretized Hodgkin Huxley Equation for different locations along a 10 cm axon?
I'm trying to plot this equation at various locations on the axon (ie, 1, 2, 4, 6 cm):
in python using the Forward Euler method. There are two boundary conditions at k=1 where (V_{k+1} + V_{k-1}-2V_{...
0
votes
0
answers
45
views
Error "File too small" When using spm_slice_vol, Fieldtrip MATLAB
When I was trying to convert a CT scan file's coordinate system into an approximation of the ACPC coordinate system on Fieldtrip MATLAB for a tutorial, there was error prompting that:
Warning: Cant ...
0
votes
0
answers
14
views
How can I download a package with 'invalid active developer path'? [duplicate]
I am trying to download a package 'neuroCombat' in MacOS (Catalina) but having no success.
I have tried just the basic 'install.packages("neuroCombat") but get the error 'Warning in install....
1
vote
0
answers
48
views
How to fix "TypeError: loop of ufunc does not support argument 0 of type Mul which has no callable tanh method"?
I am trying to get the nullclines of Morris-Lecar model using the equation and solve commands from sympy module, but it tells me "loop of ufunc does not support argument 0 of type Mul which has ...
0
votes
0
answers
21
views
Dataset for task fMRI
I can't find any preprocessed dataset for task-fmri on which I can apply dynamic causal modeling (Friston et al. 2003). Does anyone know any dataset (other than the 3 region attention to motion ...
0
votes
0
answers
41
views
pyod for EEG outlier detection
I have segments of EEG data as 19 epochs:
np.shape(epoch)
Out: (19, 2)
For ith epoch, epoch[i][0] is the data and epoch i is the time. So,
np.shape(epoch[0][0])
Out: (5, 127501)
is the data from ...
1
vote
1
answer
107
views
How to understand the dimensionality of 3D MRI or Nifti images?
I see that 3D images in the shape of XYZ, where X is the height of the image, Y the breadth, and Z the depth. Depth indicates the number of 2D images that make this single 3D MRI images. Right?
Is my ...
0
votes
1
answer
120
views
Why am I getting this error with 3dDeconvolve when I run my AFNI script on an Ubuntu bash shell?
I'm trying to run a variation of the doDecon.sh AFNI script in the OpenScience_Scripts repository that will process the functional neuroimaging data for each of the three tasks I am analyzing ...
1
vote
1
answer
143
views
Coloring area between pixels based on thickness
I'm trying to isolate the gray matter in a brain image and color it based on the cortical thickness at each point giving a result similar to this:
Cortical thickness map based on this original: ...
0
votes
1
answer
27
views
How to round Quantity instances in brian2?
I have this problem:
equilibrium_potential = my_func() # outputs equilibrium_potential*mV
I want to check that equilibrium_potential is around 77*mV. I've tried calling base python round on the ...
0
votes
1
answer
87
views
NII Files Voxel Data Ordering
I have a .nii file with the following meta data
NII Header Size: 348
NII Magic Number: n+1
Dimension Information:
Frequency Dimension: 0
Phase Dimension: ...
0
votes
0
answers
130
views
Probabilistic Atlas in Advanced Normalization Tools (ANTs)
thanks for reading.
I´m new in the world of neuroimaging, where I want to quantify certain structures in the brain (Locus coeruleus), using ANTS and a Probabilistic Atlas of the Human Locus Coeruleu (...
4
votes
2
answers
1k
views
How to read .eeg file from BrainVision Core Data Format in python?
I have a dataset in BrainVision Core Data Format which consists of the header file (.vhdr), marker file (.vmrk), and raw EEG data (.eeg) file for each subject. I know that python has mne.io....
0
votes
0
answers
304
views
Modeling a leaky integrate-and-fire neuron
I'm really struggling trying to finish filling in this code, I have completed some of it but would really appreciate some guidance/help for the rest! Thank you!
I'm trying to run a simulation of the ...
0
votes
1
answer
803
views
How to Plot a Bar Graph with Two Categorical Variables on X-Axis (one nested by the other, but both visible), and other variables as fill?
I have a dataset with two categorical variables, region and function. In total there are 92 regions, divided into 13 functional categories. In addition to these regions belonging to a functional ...
-3
votes
1
answer
81
views
How can I generate an array of float values of a given length in a given range and of a pre-defined mean value using Python [duplicate]
I ran into an issue when trying to generate jittered interstimulus intervals for an fMRI project and I couldn't find any resources online to generate these times. For those that don't know, within ...
0
votes
1
answer
589
views
How to extract hand tracking data from HoloLens2 into a data analysis format
I'd like to preface this StackOverflow post by saying I have very little experience with mixed reality software development. However, as part of my Neurosurgery research, I have been tasked with using ...
0
votes
1
answer
72
views
Neurons firing simultaneously in Python
I was making a neuron project on Python.
In a previous post, I asked how I could make the neurons fire to each other. I used my Dad's account for that post, but I and only I asked that question. I put ...
0
votes
1
answer
163
views
Plot of spike trains segmented into trials in Python (Neuroscience)
I want to create a spike train with multiple trains on the y axis
and this is the task:
Plot of spike trains segmented into trials
A more sophisticated way of illustrating neuronal responses to ...
2
votes
1
answer
52
views
Is the problem my function or the dataset I'm trying to use?
I'm new to Julia programming, so researching for my thesis I found the following code, but I can't seem to grasp what the error is. The function main is supposed to take a dataset and then plot some ...
1
vote
1
answer
28
views
Are rank checks allowed for spike recording in Arbor simulations?
In the Arbor simulator one can specify whether to record no, local, or all spikes when working with distributed MPI simulations. Are there any reasons to record locally on each MPI and broadcasting ...
1
vote
1
answer
2k
views
Material-UI prevent Accordion default collapse on AccordionDetails click
I have a React web with two equal menus, so I've made a component with the menu and I render it twice in App component.
For the menu I use Material UI Accordion but when I click on the menu details, ...
1
vote
1
answer
40
views
Datajoint: suggestions for how to handle stages needing manual review in a neuroscience data pipeline?
Wondering if there are good examples or suggestions for how to handle steps that require manual review in a database-based scientific data pipeline (datajoint). For example, we'd like to handle the ...
0
votes
1
answer
48
views
Datajoint scientific pipeline: how to efficiently store data and design pipeline when attributes can change and data come from arrays
We need to load the output from our neuroscience animal behavior training sessions into our datajoint database pipeline. We run experiments with a platform called Bpod that implements a finite state ...
0
votes
1
answer
282
views
Asking advice on EEG classification using Keras
I have a dataset on EEG, with this shape:
(11,1158, 200)
Where
11 is the number of EEG channel
1158 is the number of each task
200 is the time interval of each task
for example, if you plot a task, ...
1
vote
1
answer
115
views
Is there a way to make a plot clickable so it will tell me what EEG channel I am looking at?
Note: This is a question relating to mouse EEG data plotting.
I made a plot showing the averaged trial signals for filtered EEG electrode channels. While plotting this I saw a few signals that I want ...
0
votes
0
answers
31
views
Value Error: Create a new column in excel which attributes a value assigned to a ROI depending on time
I am a beginner in programming so I hope my question will be clear:
I have a .csv file that gives me in 2 columns the coordinates in X and Y of a mouse during a 15-min test in an elevated-plus maze (...
1
vote
1
answer
147
views
Neuroimage MRI scan CNN model preparation
I would like to know a couple of things to clear my confusion. I want to work on a medical neuroimage MRI image scans dataset from the ADNI database.
Each Alzheimer's Disease (AD) MRI image scan has ...
0
votes
1
answer
347
views
FLIRT registration via nipype doesn't run (google colab)
I am trying to perform FLIRT registration vi nipype package in Google Colab, but I don't know how to fix it. If someone knows how to fix it, please help me.
!pip install nipype
from nipype.interfaces ...
1
vote
1
answer
154
views
multi-threading problem for NEST simulator
I want to use multi-threading function in NEST simulator (version 2.20.1). However, it gives a warning No multithreading available, using single threading. Can anyone help me to solve it?
I install ...
1
vote
1
answer
134
views
installing Brain Scaffold Builder with broken rtree dependency
I have recently installed NEST on my MAC. I have to install the Brain Scaffold Builder. I followed the instructions and wrote bsb==3.6.0b6 and I received the following error message
Using cached bsb-3....
0
votes
0
answers
73
views
Deeplab cut TypeError: init() missing 1 required positional argument: ‘d’ during installation
I couldn't find solution anywhere so posting here. I don't have experience with machine learning and only lightly know oop in python.
I have set up the conda environment and pip install deeplabcut ...
1
vote
0
answers
94
views
How can I use PyMC3 to estimate a discrete value A over which a for loop must be constructed?
This is a properly articulated version of an old question.
I'm working on condensing some code written for a neuroscience paper: https://doi.org/10.1371/journal.pcbi.1007481. Without delving into ...
1
vote
0
answers
59
views
Using PyMC3 to uncover various qualities of a simulated neurological system
I'd like to preface this by making it clear that I am not interested in someone doing all of this work for me - I'm only interested in guidance.
I am reading a paper: https://doi.org/10.1371/journal....
0
votes
2
answers
176
views
new in python. I want to apply an algorithm to different images from a folder and save the new ones in another folder. Biology research images
I want to inverse colors in a black and white image and then change the background in transparent, with the following codes:
imgg = Image.open('HSPl4_E5_LP8.png')
data = np.array(imgg)
converted = np....
0
votes
1
answer
480
views
Using nibabel to save nifti in "SPM" style
I have used python to analyse some fMRI data and would now like to save my results as niftis that I can then use in an SPM analysis.
My data scores is an array of float64 of shape (97, 115, 97). I ...
1
vote
1
answer
753
views
How to plot multiple slices of a 3D brain image with nilearn and matplotlib subplots
I'm new to coding, so if I'm completely wrong just tell me.
I want to plot 25 slices of a brain scan using nilearn. These 25 slices should go along the z axis in steps of value=2. I want to use ...
0
votes
1
answer
835
views
Plotting Three Levels of Nested Data Using ggplot and R
I recently ran a few 2x3 Mixed ANOVAs for a neuroscience project with age and valence as predictors of correlation values. These analyses were ran three times, once for each ROI, or brain region. I ...
1
vote
1
answer
98
views
How to set a Connection's synapse type in the NEST simulator?
Following the tutorial for the Python interface to the NEST simulator I have created 2 neuron populations and connected them:
import nest
ndict = {"I_e": 200.0, "tau_m": 20.0}
nest....
0
votes
1
answer
194
views
Issues loading fieldtrip data with MNE python
I am having challenges loading fieldtrip data with MNE python. When I enter the code below
import mne
original_data = mne.io.read_raw_fif('data.fif', preload=False)
original_info = original_data.info
...
-1
votes
1
answer
109
views
Neuroimaging: AFNI bash
This is the error that I receiveI am new to this, and I want to run the following script in shell
but I am getting errors, COLUMN.nii file is the nifty file with a collection of masks with value ...
0
votes
1
answer
93
views
fsl resampled image comes out cropped
I am using fsleyes to resample image by providing reference image, but the generated resampled image is cropped ?
the blue is resampled overlay
I tried increasing the resolution of reference image ...
1
vote
0
answers
23
views
General Linear mode mri data
General Linear model analysis is usually done for fMRI data. I have applied the same analysis to MRI data and found the clusters which are linearly related to columns of behavioral scores(design ...