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.
153
questions
0
votes
0
answers
18
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 (...
0
votes
0
answers
17
views
How can I integrate my diffusion equation into Nmodl?
I would like to insert a new mechanism into a Neuron model that is linked. The equation is . I want to create adjustable variables out of this equation into the model gui and multiply the of Vmax this ...
1
vote
1
answer
88
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
32
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
54
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
48
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
0
answers
32
views
ImageFileError when using Brain_Data() of nltools
I'm really new to neuroimaging process and trying to load neuroimaging data by using nltools. So the dataset can be found at: https://gin.g-node.org/ljchang/Localizer
I have downloaded it to my local ...
0
votes
1
answer
108
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
41
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
59
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
38
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 ...
0
votes
0
answers
28
views
Loop function outputting columns of differing length in Matlab
Im looking to find the open and closed time of an ion channel using patch clamp electrophysiology. I have been able to generate a loop function to find the open probability, but now im interested in ...
0
votes
0
answers
95
views
How to create overlapping frames (based on a condition) from raw EEG data using MNE (data does not have any events)
I’m new to the MNE library. I have a question about windowing EEG data. I’m working on an EEG dataset in order to detect Seizures. The dataset I’m using is CHB-MIT Scalp. There is a huge imbalance in ...
0
votes
0
answers
11
views
How to record spikes of specific cells in Arbor?
The docs mention sim.spikes() as an iterator over all of the recorded spikes, but is it possible to obtain just the spikes of a certain cell or group of cells?
import arbor
sim = arbor.simulation(...
1
vote
1
answer
24
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 ...
0
votes
0
answers
14
views
Understanding the difference between "volume source estimate" and "source estimate" from MNE preprocessing package
MNE is a package for prop-recessing brain activity data obtained by devices such as MEG.
There are two concepts explained in the documents: source estimate and volume source estimate
What are the ...
0
votes
0
answers
30
views
calculate the average of response to stimuli every fixed time
Here i have this graph:
every red line represents the starting time for stimuli, every black line represents the end time for stimuli, now I want to average the response after every stimulus ...
0
votes
0
answers
31
views
Is it correct to calculate Kullback–Leibler divergence as I did
I'm ML-student, and I try to make Variational Autoencoder with convolutional layers (just experiment).
After encoder I have μ (z_mean) and σ (z_log_var) vectors of shape = (batch_size, 14, 14, 1). Now ...
1
vote
1
answer
1k
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
37
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
36
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
0
answers
23
views
Is it possible to calculate the total volume of a neuron based on its SWC reconstruction file?
I am trying to get the total volume of neurons of interest with the Allen SDK python packages.
When I do reconstruction = ctc.get_reconstruction(555241040), for example, I get a swc file of that ...
0
votes
1
answer
145
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
41
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
26
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
90
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
189
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
102
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
92
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
61
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
66
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
52
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
148
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
261
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
423
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
287
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
59
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
136
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
74
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
53
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
19
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 ...
2
votes
2
answers
831
views
How can I apply a function to each row in a pandas dataframe?
I am pretty new to coding so this may be simple, but none of the answers I've found so far have provided information in a way I can understand.
I'd like to take a column of data and apply a function ...
-1
votes
1
answer
116
views
Baseline correction on epoched EEG dat
I am new to the Neuroscience topic and I am supposed to baseline correct some EEG data that I have already epoched. I have been googling to try to find out how to do this on Matlab but I am not sure ...
0
votes
1
answer
201
views
Flirt registration tool for brain MRI gives incredible results
I have a brain MRI that contains slices from this angulation:
I was playing with the registration tool for brain MRI called Flirt. The code is available also for Python
I tried to use as reference ...
0
votes
0
answers
203
views
How to align Brain MRIs
I have a dataset of nifti files about Brain MRI performed to different patients and i've loaded them in Python using a library called Nibabel.
Here a slice of an MRI taken from my dataset:
As you ...
3
votes
1
answer
3k
views
Loading a Nifti through Nibabel and using the shape function
I have a nifti file 1.nii.gz
Now, i never dealt with nifti files.
So, just opening it using this software i realized that a nii.gz is a sort of container that contains 3 arrays of 2d pictures. In ...
1
vote
1
answer
120
views
In Brainrender is there a way to at labels and stop the brain from load upside down?
I am using brainrender to show where I've placed some electrodes. However, whenever I load brainrender my brain always loads upside down:
brainrender
Is there a way to fix this? Or do I just have ...
1
vote
0
answers
166
views
Is there a way to plot EEG electrodes onto a model of a mouse brain?
I am trying to figure out a way to plot EEG electrode coordinates onto a 3D image of a mouse brain, similar to this:
Sorry there are a lot of pictures showing what's been done. I'm a bit new to ...
1
vote
1
answer
32
views
How to fit time series data as sum of time-shifted kernels
I have some voltage data recorded from brain electrophysiology that look like this:
Raw voltage trace
Notice that the fluctuations <200 uV is the actual data and the huge peaks are artifacts that ...
0
votes
1
answer
307
views
Python program to calculate voxel count
I want to write a script to calculate voxel count using python. I have one main folder named "PET-CT" and inside this main folder there are 100 "mrn" sub-folder named as 12345, 43523, 73092,....... ...