Giter Club home page Giter Club logo

dtm-fmri's Introduction

Uncovering time-varying latent brain states with dynamic topic modeling

Jonathan Nicholas, Kaustubh Supekar, Weidong Cai, Vinod Menon

Data

Texts

Functional connectivity at each time point was converted via Symbolic Aggregate Approximation (SAX) and saved in documents in the DTM/texts directory for each dataset. This is input data for the dynamic topic model. Raw timeseries for HCP data are in this repository, but if you are part of SCSNL, the non-public timeseries are located in the copy on sherlock:

$OAK/projects/jnichola/dtm-fmri

Code

DTM/main.py

Runs a dynamic topic model for either the optogenetic, working memory, or math longitudinal datasets depending on input arguments. Will cluster data according to labels determined via hierarchical clustering and the NbClust R package.

DTM/utilities.py

Holds a number of functions used by main.py to load input data, run models, cluster, and save output

DTM/analysis.py

Contains all plotting functions. The main function contains variables that can be changed depending upon which dataset is being plotted and what plots you would like to run.

DTM/create_fit_summaries.py

Creates files that summarize the fits and extract the most important parts to be used in the paper. Then moves these to the for_paper directory.

SAX/runSAX.m

This is the primary script to run symbolic aggregate approximation (SAX) on an input timeseries of shape nSubjects x nRois x Time. Wrappers for sherlock job submission are included here as well.

Paper

Everything needed to create figures and run stats on the fit models is in the 'for_paper' directory.

for_paper/dtm_figures.ipynb

This python notebook creates every panel that goes into all figures in the paper

Results

Models

All fit models are in the directory DTM/fit_models

Matrices

Group and individual probabilitiy matrices for each topic are in DTM/gammas_out

Topics

Topics containing probability distributions over all words are in DTM/topics

Figures

Figures used in the presentation labmeeting07-17-17.pptx can be found in DTM/figures

Methods

dtm-fmri's People

Contributors

jonathanicholas avatar

Stargazers

Elinta Lapatina avatar Dong avatar Keveen Rodriguez avatar Baby-Baby avatar Satpreet avatar

Watchers

 avatar

Forkers

satpreetsingh

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.