Skip to content

gardner-lab/visualTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visualization Tools

Python based visualization tools for low dimensional embeddings of spectral and neural data

Spectrogram Viewer

Quick tool for visual comparison of two 'Wav' files

image

Dependencies: matplotlib, pyqtgraph, PyQt5, scipy, numpy

Run viewer.py or import DataPlotter class and run the following commands

plotter = DataPlotter()
plotter.setupPlot()
plotter.addFile('/Users/ethanmuchnik/Desktop/specViewer/Demo_Wav/USA5207_45107.22309894_6_30_6_11_49.wav','top')
plotter.addFile('/Users/ethanmuchnik/Desktop/specViewer/Demo_Wav/USA5207_45107.22652648_6_30_6_17_32.wav','bottom')
plotter.startLink()
plotter.show()

Neural Embedding Scroller

Traverse neural, behavioral, and low dimensional data Dependencies:: matplotlib, pyqtgraph, PyQt5, numpy

Run improvedGUI.py or import DataPlotter class and run the following commands

# Instantiate the plotter    
plotter = DataPlotter()

# Accept folder of data
plotter.accept_folder('/Users/ethanmuchnik/Desktop/Series_GUI/SortedResults/Pk146-Jul28')

# Show
plotter.show()

image

Audio Embedding Selection Tool

Dependencies:: matplotlib, pyqtgraph, PyQt5, numpy

Inputs:

npz file with:

  • 'embVals' : N by 2 array of x,y values for low dimensional embedding
  • 'embStartEnd' : 2 by N array of start,end times for each of the N slices
  • 'behavioralArr': Np array of spectrogram (must be representative of the time bounded by the first start and last end of embStartEnd)
Neural Embedding Scroller
app = QApplication([])
# Instantiate the plotter    
plotter = DataPlotter()
# Accept file of data
plotter.plot_file('/Users/ethanmuchnik/Downloads/demoCanaryLarge3.npz')
plotter.addROI()
# Show
plotter.show()

Plotting Techniques/Ideas

Pixelated UMAP

Neural Embedding Scroller

PYTHON NOTEBOOKS

See the IPYNB notebooks in the corresponding folder. To see descriptions follow the link:

https://docs.google.com/document/d/1b8mM1iIZQ_d6nVThbMlvDFKTJ4s32-cboXrCIKfY-aQ/edit?usp=sharing

Contact

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published