sleep_architecture

Scripts to analyse sleep stages bout durations and transitions.

https://github.com/genzellab/sleep_architecture

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.0%) to scientific vocabulary
Last synced: 7 months ago · JSON representation ·

Repository

Scripts to analyse sleep stages bout durations and transitions.

Basic Info
  • Host: GitHub
  • Owner: genzellab
  • License: gpl-3.0
  • Language: MATLAB
  • Default Branch: main
  • Size: 105 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • Open Issues: 1
  • Releases: 0
Created about 5 years ago · Last pushed over 2 years ago
Metadata Files
Readme License Citation

README.md

sleep architecture analysis :sleeping: :rat:

Scripts to analyse sleep stages bout durations and transitions from rat LFP.

OLDER VERSION

SleepArchitectureOS.m : Outputs total sleep time per stage.Start by going into the project folder. Data should be organized rat/SD Using the these scripts you can analyses sleep architecture: (1) total time in each state , total time of recording and total sleep time (in seconds); (2) number of transitions between different states; and (3) count and duration of NREM, intermediate and REM bouts.

Input used by these scripts: the vectors ('-states.mat') obtained from manual sleep scoring using Andressleepscorer. It is a vector that includes 1=awake, 3=NREM, 4=Intermediate, 5=REM across the whole recording in 1 sec bin.

These scripts were created for the sleeparchitecture analysis of the object space task in rat and the data structure is project name\folder per animals\folder per study day. (which should contain:rat name, study day, condition (or=overlapping, od=stable, con=random, hc=homecage) and should finish by a number which corresponds to the session of that condition condition (e.g. Rat157986SD2OD_1).

Important!!! (1) Adritools and CorticoHippocampal will be needed in your Matlab path. Else Matlab won't recognize'getfolder' or 'ConsecutiveOnes'. (2) Be sure that the files from manual scorer '-states.mat' are organized in the correct temporal sequence
(pre-sleep, posttrial1, posttrial2, posttrial3, posttrial4, posttrial5, pre-sleeptest, posttrial6). In case, pre-sleepTest and posttrial6 are inside of an extra folder called 'Test', move them to the current directory. (3)Check that only one file per resting period is in the folder, so in case there were more than one (e.g ...posttrial51 and posttrial5_2, concatenated both files first and delete o put the other two files in a different folder. (4) Check that you have the same structure for all animals. In case a vector for a particular trial is missing, create an empty one and save it with a name that keep in the correct temporal sequence (e.g states=(nan:1:2700) or states=(nan:1:10800))

NEWEST VERSION (FINAL RGS14 & CBD papers)

  • concatenate_states.m
  • AnalysisOSSleeparchwholedaySleepstageepisode_MA15.m
  • AnalysisOSSleeparch45minbinv4SleepstageepisodeMA15.m

Credits:

Owner

  • Name: Genzel Lab
  • Login: genzellab
  • Kind: user
  • Location: Nijmegen, The Netherlands
  • Company: @Donders-Institute

We love memory and sleep.

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: Sleep architecture repository
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Adrian
    family-names: Aleman-Zapata
    email: jraleman10@gmail.com
    affiliation: >-
      Donders Institute for Brain, Cognition and
      Behaviour
    orcid: 'https://orcid.org/0000-0002-9894-4370'
  - given-names: Irene
    family-names: Navarro-Lobato
    
license: GNU General Public License v3.0    
repository-code: 'https://github.com/genzellab/sleep_architecture'
keywords:
  - sleep
  - architecture
  - hippocampus
  - cortex
  - ripples
date-released: 2023-01-01

GitHub Events

Total
Last Year