The README is still being built
This is a script for human imaging transcriptomics analysis using Allen Human Brain Atlas (AHBA). The script is used in R
and some python
scripts are called via the reticulate
package.
The codes were tested on Windows 10 system with R
4.4.1 and python
3.9.7.
The preprocessed data (brain atlas, RNA-seq data etc.) can be downloaded from here. Users should put the data
folder in the root path of this script.
python
packages requirement:
- pyls (should be installed from github)
- neuromaps (should be installed from github; Connectome Workbench is needed)
- brainsmash (Connectome Workbench is needed)
- abagen
R
packages needed can be found in ./R/base/load_packages.R
for main analysis and in corresponding scripts in ./R/Plots
for visualization.
What you need is to prepare a single 3D brain imaging file in Nifti format (.nii
or .nii.gz
). It can either be a statistic map or other imaging phenotypes. You can click and open the main.R
file in the ./R
folder to perform an imaging transcriptomics analysis starting with the acquisition of the regional gene expression matrix.
reticulate
crash or similar problems: py_run_file_impl() crashing since .v1.27: ReinstallR
might help.Error in serialize(data, node$con): error writing to connection
: This may be related to insufficient memory, especially for GSEA analysis of multiple PLS components.
- Tight fitting genes: finding relations between statistical maps and gene expression patterns (repo: https://github.com/chrisgorgo/alleninf)
- Integrating neuroimaging and gene expression data using the imaging transcriptomics toolbox (repo: https://github.com/alegiac95/Imaging-transcriptomics)
Highlight: Compared with these toolboxes, our processing workflow allows the use of any user-provided brain atlas/parcellations in the MNI space, and offer a variaty of statistic methods to link spatial gene expression with brain imaging such as partial least squares regression (PLSR), linear regression, and weighted gene coexpression network analysis (WGCNA). At the same time, we also used a spatial null model to increase the statistical power.