This document details the pre-processing steps run before the rest of the analysis scripts, including pointing to which scripts were run to perform each step.
See code in .qmd document for LaTeX table.
For both Slide-seq and Visium data, we built custom bowtie2 indices for the pooled transcriptome of the 129 and CAST mice.
Alignment was conducted with e.g. the command:
bowtie2 -x bowtie2_index_129xCAST \
-k 100 \
-p 32 \
--very-sensitive \
-U ./tagged2.fastq |
samtools view -bS - > ./tagged_bwt2_129_CAST.bam
BAM files were processed with a custom Python script to get uniquely mapped reads based on number of mismatches, as well as the number of reads uniquely mapped but unable to be assigned to one allele (used as input for cell type assignment).
RCTD was run on each sample individually using the scripts:
scripts/run_rctd_hippo1.R > results/rctd_hippo_1.rds
scripts/run_rctd_hippo2.R > results/rctd_hippo_2.rds
scripts/run_rctd_hippo3.R > results/rctd_hippo_3.rds
scripts/run_rctd_cere3.R > results/rctd_cere_3.rds
scripts/run_rctd_cere4_visium.R > results/rctd_cere_4_visium.rds
scripts/run_rctd_mix5_visium.R > results/rctd_mix_5_visium.rds
Note that I use >
to show what the output of each script was, but it
is not necessary to run the script with an output pipe.
See run_rctd.sbatch
for SLURM job submission resources.
Overall maternal/paternal bias - we assume $\text{logit}(p_{j}) = \beta_{0,j}$, i.e. the mean maternal probability does not change based on cell type or spatial location.
run_spase_hippo1_overall_bias.R > results_overall_bias_hippo_1.rds
run_spase_hippo2_overall_bias.R > results_overall_bias_hippo_2.rds
run_spase_hippo3_overall_bias.R > results_overall_bias_hippo_3.rds
run_spase_cere3_overall_bias.R > results_overall_bias_cere_3.rds
run_spase_cere4_visium_overall_bias.R > > results_overall_bias_cere_4_visium.rds
See run_spase_overall_bias.sbatch
for SLURM job submission resources.
Overall spatial pattern (no cell type effect) - we assume $$\text{logit}(p_{i,j}) = \beta_{0,j} + \sum_{\ell=1}^L x_{i,\ell}\beta_{\ell,j},$$ where $x_{i,\ell}$ are degrees of freedom $L$ thin plate spline basis functions evaluated at spots $i$.
run_spase_hippo1_overall_spatial.R > results_overall_spatial_hippo_1.rds
run_spase_hippo2_overall_spatial.R > results_overall_spatial_hippo_2.rds
run_spase_hippo3_overall_spatial.R > results_overall_spatial_hippo_3.rds
run_spase_cere3_overall_spatial.R > results_overall_spatial_cere_3.rds
run_spase_cere4_visium_overall_spatial.R > results_overall_spatial_cere_4.rds
See run_spase_overall_spatial.sbatch
for SLURM job submission
resources.
C-SIDE and spASE were run on each sample individually using the scripts:
run_spase_hippo1_celltype.R > results_celltype_hippo_1_df_5.rds
run_spase_hippo2_celltype.R > results_celltype_hippo_2_df_5.rds
run_spase_hippo3_celltype.R > results_celltype_hippo_3_df_5.rds
run_spase_cere3_celltype.R > results_celltype_cere_3_df_5.rds
run_spase_cere4_visium_celltype.R > results_celltype_cere_4_df_5.rds
See run_spase_celltype.sbatch
for example SLURM job submission
resources.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.