Skip to content

WagnerLabPapers/Waskom_PNAS_2017

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Analyses for Waskom and Wagner (2017) PNAS

This repository contains analysis code for the following paper:

Waskom M.L., Wagner A.D. (2017). Distributed representation of context by intrinsic subnetworks in prefrontal cortex. Proceedings of the National Academy of the Sciences, USA.

The paper can be accessed at the PNAS website.

Data can be accessed at the Stanford Digital Repository.

A high-level overview of the commands that were executed to perform the analyses can be found in commands.md. Some of these commands execute lyman workflows using the parameters defined in the lyman/ subdirectory. Others execute experiment-specific code that are included in this repository. The experiment-specific code falls into a few different categories:

Data extraction

  • roi_cache.py: Extracts timeseries data from the regions of interest that are analyzed in the paper.

Analysis scripts

Data compilation

  • compile_data.py: Reads the individual outputs of the analysis scripts and compiles some summary data into tidy .csv files (stored in the data/ subdirectory).

Statistical analyses

  • paper_statistics.ipynb: The statistical results reported in the paper were produced by analyses performed in this notebook.

Figure scripts

These scripts generate each of the figures in the paper. They are contained in .py files with names corresponding to the relevant figure.

Support libraries

  • surfutils.py: Functions for going between volumetric and surface representations of data.

  • plotutils.py: Functions that are useful for generating consistent figures.

Version information

  • lyman/environment.yml: A conda environment file that should be able to reproduce all relevant software versions used for the analyses in the paper.

License

Copyright (c) 2017, Michael Waskom

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

Neither the name of the copyright holder nor the names of the software contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.