All code was used to generate and analyze the data presented in the following paper:
Styfhals, R., Zolotarov, G., Hulselmans, G., Spanier, K. I., Poovathingal, S., Elagoz, A. M., Deryckere, A., Rajewsky, N., Ponte,
G., Fiorito, G. Aerts, S., Seuntjens, E. (2022). Cell type diversity in a developing octopus brain. BioRxiv, 1–34.
Rscript to build a neighbor-joining cell type tree based on the distance matrix of averaged gene expression per cell type.
Rscript to analyze, subset, visualize the sn/sc data.
Code used to analyze Bulk RNA seq data and to identify differentially expressed genes between the optic lobe and central brain.
Code to assess transcriptional diversity.
Pre-processing steps, data integration, cluster stability and clustering of the sn/sc data.
Jupyter notebook to calculate the enrichment of different transcription factor families within the rank of tau (cell type specicity index).
Rscript for data preparation for tau calculations.
Rscript for a two-sided Fisher's Exact Test to analyze the overrepresentation of certain gene sets versus the background. Contingency tables should be constructed accordingly so that Odds Ratio's < 1 indicate enrichment, Odds Ratio's > indicate an underrepresentation.
matrix(c(total number of other genes in cell type of interest, total number of genes of interest in cell type of interest, total number of other genes in all other cell types, total number of genes of interest in all other cell types), nrow=2)
Jupyter notebook to change the color scale from RGB to CMY.
Script to generate loom files for data visualization in SCope.
For more information: https://github.com/atarashansky/SAMap
Please cite their most recent publication when using SAMap: https://elifesciences.org/articles/66747
Rscript used to visualize cross-species mappings.
git clone https://github.com/atarashansky/SAMap.git ${staging}kspan/progs/SAMap/SAMap_v0p1p7/
git checkout d560861
conda create -n SAMapv0.1.6 -c conda-forge python=3.7 pip pybind11 h5py=2.10.0 leidenalg python-igraph texttable
conda activate SAMapv0.1.6
pip install .