Coder Social home page Coder Social logo

aaltoimaginglanguage / conpy Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 17.0 39.64 MB

Python package for power mapping and functional connectivity using DICS

Home Page: https://aaltoimaginglanguage.github.io/conpy/

License: BSD 3-Clause "New" or "Revised" License

Python 61.92% TeX 35.45% Shell 2.62% Perl 0.01%
beamformer connectivity meg neuroimaging neuroscience

conpy's People

Contributors

jundurraga avatar wmvanvliet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

conpy's Issues

why the n_conns in LabelConnectivity becomes 0 while in VertexConnectivity is not?

Hi,
Thanks a lot for creating such a handy package!
I got a VertexConnectivity object 'con_clust' which shows that '<VertexConnectivity | n_sources=3331, n_conns=329, subject=fsaverage>', when I tried to parcel it using 'con_parc = con_clust.parcellate(labels, summary='degree', weight_by_degree=False)', the info of con_parc shows that: <LabelConnectivity | n_sources=68, n_conns=0, subject=fsaverage>.
I'm wondering why the n_conns in LabelConnectivity becomes 0 while in VertexConnectivity is not?

Add connectivity between MEG source level and external sensor(s)

Todo:

  • Get some example data going
  • Get first proof of concept
  • Design the API (=user interface: what functions, what parameters...)
  • First implementation: test on example data
  • Write unit tests
  • Write example/tutorial to serve as documentation
  • Merge into conpy

Reviewer 2

Hello, Reviewer 2 here, nice to meet you.

Thank you for the last round of changes. I'm running through the latest version now and everything seems to be working well so far. I will feedback once it has completed.

I have attached the squircle image from my previous last analysis. The cross-hemisphere connections shown in the manuscript are still present and very similar, though there seem to be more connections within the left hemisphere, particularly around the pre/post central gyri. Does this match what you found on your side?

Cheers,
Andrew
squircle.pdf

Allow computing coherence with an external reference

At the moment, conpy only supports connectivity between sensors/sources. A common use case is to compute coherence between the sensors/sources and an external sensor, for example an EMG sensor.

The API could look like this:

# Include the EMG sensors in the CSD matrix computations.
# (By default, only MEG and EEG is included)
csd_picks = mne.pick_types(epochs, meg=True, emg=True)
csd = mne.time_frequency.csd_epochs(epochs, picks=picks)

# Compute one-to-all connectivity pairs between the EMG sensor and all source vertices
pairs = conpy.sensor_to_source_pairs('EMG001', src)

# Specify during connectivity computations that the origin is not on the cortex,
# but the targets are
con = conpy.dics_connectivity(pairs, fwd, csd,
                              sources_on_cortex=False, targets_on_cortex=True)

an issue when running the script "plot simulation"

Hello, I am very interested at your conpy package. And thanks for your sharing. But I run into an error when the code runs to line 185 ie."info.update(fwd['info'])". I tried to check the reason but failed. I suspect it may be a data path problem because my data_path、meg_path etc are not in the script folder. So could you help me to find what results in the problem.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.