This repository holds all the scripts (in python and R) that were used for data analysis and figure creation for the dominance strain comparison manuscript. Full disclosure: this repository was reorganized with no double checking about dependencies in terms of calling data or other code; so be ware that that could be an issue while running things. Best MC
data/
: Contains raw data (reward comp has been updated)mpc_scripts/
: Contains med pc scripts used during the reward competition and training (written in med pc code) author: mixedresults/
: contains most of the code2023_05_12_pilot_consolidation
: author RIdata
: should be empty, i put the excel sheets i need for figures 3-5 in therefigure 3
: contains an old boris analysis script in python, it calculated the percentage of trials across behaviors, does not include stats or figures,
author: MICfigure 4
: contains 3 scripts forcontested_vs_uncont.ipynb
: fig4. B constested vs uncontested figure creation and some data carpentry (no stats) author: AHrc_diff.ipynb
: fig4 C percent trials won across winner vs losers, data carpentry only author: AHfeature_extraction_sleap.ipynb
: fig4 D-I all the sleap analysis (feature extraction, umap, gif creation, enrichment plots etc) all figure creation is in here and stats, should also exist inpose_tracking_repo; author: MC
figure 5
: has some old elo score calculations and an old correlations script, author RI for elo, correation author MCdavid_score_calculation.py
: calculates david score, author CYdavid_score_plotting.py
: plots correlation matrices (fig 5 E + F, fig S3), author CYlinearity_matrix_generation.ipynb
: takes in the template dat in the outer most data folder and produces an output excel sheet of matrices of wins to be used in the R markdown linearity; author: MCtube_test_matrix.ipynb
: create s matrix for tube tes tdata, author KP
old_figures
: author RIR_GLMs_DCI
: has all the R scripts for the DCI calculations and GLMs including the project and R markdowns; author: MCGLM_stats.Rproj
: the project filelinearity.Rmd
: calculates DCI based on output from the py scriptlinearity_matrix_generation.ipynb
lmer_tubetest.RMD
: stats for fig 3, does the mixed model on the boris data for tube testrewardcomp.Rmd
: does stats on the reward comp data (number of trials won per subject per strain per winer vs loser)urine_marking.Rmd
: runs a GLM mixed effects model on urine spots, winner/loser, subject, stats for fig 2
reward_training
: calculates training progession, latencies and port probabilities; author RIrewardcomp_sleap
: calculates distance to port and other things; author RI
src/
: src code for elo scores and med pc extracting (this might throw an error as i reorganized without checking to see if the elo scores and med pc scripts would run); author: RI