Posts

Showing posts from May, 2016

Visualizing Cortical Thickness In a Population

Image
Today my goal is to develop some methods for comparing an individual's neuroanatomy to a population's and make some graphs that help convey my findings. To demonstrate this I will be using the Pediatric Template of Brain Perfusion (PTBP), which has already been processed and can be found here . I'll start off by loading some libraries I'll need and the CSV file. The CSV file contain demographics data and anatomically specific information about the cortical thickness, fractional anistrophy, cerebral blood flow, and blood oxygenation level. For now I'm just going to focus on cortical thickness (found by the prefix “Thick*”). Picture of amygdala from recent paper on the effects of cannabis suppressPackageStartupMessages(library(dplyr)) suppressPackageStartupMessages(library(ggplot2)) home <- '/Users/zach8769/' ptbp <- read.csv(paste(home, 'Desktop/ptbp/data/ptbp_summary_demographics.csv', sep = ""), header = TRUE) thick_pt

Using SLURM: This Time It's Personal

I thought it might be helpful to include a little extra stuff on SLURM about how to replicate scripts for each subject. When I’m preprocessing a brain scan each subject is processed separately but I don’t want to have to type out each script individually. So I usually put together the first script (in this case it’s saved as BE_0.sh ) and it looks something like this… #!/bin/bash #SBATCH --time=3:00:00 #SBATCH --ntasks=1 #SBATCH --nodes=1 #SBATCH --mem-per-cpu=8192M #SBATCH -o /fslhome/username/logfiles/oasis/output_BE_0.txt #SBATCH -e /fslhome/username/logfiles/oasis/error_BE_0.txt #SBATCH -J "BE_0" #SBATCH --mail-user=myemail@email.com #SBATCH --mail-type=BEGIN #SBATCH --mail-type=END #SBATCH --mail-type=FAIL export PBS_NODEFILE=`/fslapps/fslutils/generate_pbs_nodefile` export PBS_JOBID=$SLURM_JOB_ID export PBS_O_WORKDIR="$SLURM_SUBMIT_DIR" export PBS_QUEUE=batch export OMP_NUM_THREADS=$SLURM_CPUS_ON_