Skip to content

Study of pulmonary immune response to Toxoplasma gondii infection through bulk RNA-seq data analysis using data set GSE119855

License

Notifications You must be signed in to change notification settings

MOISECHRIST/RNAseq_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autor : MEKA Moise Christian Junior
Email :

Institution : University of Bern - Switzerland


RNAseq Project

About the project

This project investigates the pulmonary immune response to Toxoplasma gondii infection in mice using bulk RNA-seq data analysis. T. gondii is a medically important intracellular parasite capable of causing severe disease in immunocompromised individuals and in susceptible tissues such as the lungs during acute infection.

Using a dataset designed to profile global immune gene expression responses across multiple pathogens, we focus here on comparing wild-type mice with double-knockout (IFNAR⁻/⁻ IFNGR⁻/⁻) mice to assess the contribution of type I and type II interferon signaling pathways to lung immunity during T. gondii infection.

Pipeline summary

Usage

Clone repository

#In your computer
##clone the repository 
git clone https://github.com/MOISECHRIST/RNAseq_Project.git 
##Move in the repository
cd RNAseq_Project
##Install the R environment 
Rscript -e "if (!requireNamespace('renv', quietly = TRUE)) install.packages('renv'); renv::restore()"

#In the IBU cluster 
##clone the repository 
git clone git@github.com:MOISECHRIST/RNAseq_Project.git /data/user/${USER}/RNAseq_Project
##Move in the repository 
cd /data/user/${USER}/RNAseq_Project

Run analysis

  • Step 1 : in the IBU HPC (run script 01 to 12)
chmod u+x main.sh
./main.sh
  • Step 2 : R data analysis (run script 13)
## Move to your repository and create folter results to store the next analysis results 
cd /path/to/RNAseq_Project
mkdir results

## Copy results from your IBU HPC user acount to your computer 
## NB : Replace 'username' by your username 
scp -r username@login8.hpc.binf.unibe.ch:/data/users/username/RNAseq_Project/results/summary results/.

#Then run the R data analysis script
Rscript ./scripts/13-Run_R_data_analysis.R $PWD

Requirements

Category Tool / Package Version
Quality control FastQC v0.12.1
Quality control MultiQC v1.32
Read alignment HISAT2 v2.2.1
Alignment processing SAMtools v1.20
Read quantification featureCounts v2.0.6
R package Rtracklayer v1.66.0
R package DESeq2 v1.46.0
R package clusterProfiler v4.12.6

Method and materials

Data set

The lung dataset provided for this project contains 15 samples, each represented by paired-end Illumina FASTQ files with a read length of 75 bp, as well as a README file containing the associated metadata. Inspection of the README indicates that the dataset includes four experimental groups: - WT control (3 samples), - WT case (5 samples), - DKO control (3 samples), - and DKO case (4 samples).

The DKO mice carry a homozygous deletion of the interferon receptors Ifngr (Ifngr-/-) and Ifnar (Ifnar-/-).

Quality Control

The lung dataset contains 15 samples which with paired-end fastq file and a README file containing metadata about each sample. To assess the quality control of our data set, we use FastQC , a tool using to assess quality of fastq files. For each sample, FastQC gives a report (html) and some additional data in a archive. These archives are used by MultQC to merge the quality report of each fastq file in only one report (html).

Map reads to the reference genome

In this step of our analysis workflow we used Hisat2 to align our paired-end sequences to the reference (Mus Musculus GRCm39.115) downloaded from Ensembl ftp site. In this particular step, we first did indexing of the reference using Hisat2, then for each sample we align the reads from fastq file to the reference. The results Sam files (one per sample) are use as input in Samtools view to convert them into Bam files. After obtaining the Bam files, the next steps are sorting Bam files and indexing the sorted Bam files.

In addition to quality report given by Hisat2 during the alignment, we also get other information with Samtools stats and Samtools coverage to assess how the alignment was performed.

Count the number of reads per gene

After read mapping, the next step in our workflow was to count the number of reads per gene. Here, we used the featureCounts tool on all our BAM files, which returned a feature count table containing all genes in our reference in the rows and the sample ID in the columns.

The second result of featureCounts is a summary text file. This summary text file was loaded into a MultiQC report to get a better glimpse of the per-gene counting read statistics.

Exploratory data analysis

At this stage of the analysis, the featureCounts results, together with the sample metadata, were integrated into a DESeqDataSet object using the DESeq2 package (v1.46.0). A Variance Stabilizing Transformation (VST) was then applied to the count matrix, without considering the experimental groups (blind=TRUE). The resulting VST-normalized matrix was used for Principal Component Analysis (PCA), focusing on the 500 most variable genes, to visualize how the samples cluster based on their gene expression profiles.

Differential expression analysis

To retain only differentially expressed genes that are both statistically significant and biologically meaningful, we selected genes with adjusted p-value (padj) < 0.05 and |Log2FoldChange| > 1 for subsequent analyses. This step was performed using the DESeq2 package (v1.46.0).

Overrepresentation analysis

In the final step of our analysis, we used the clusterProfiler package (v. 4.12.6) to identify Gene Ontology (GO) biological processes that are significantly enriched for differentially expressed genes beyond what would be expected by chance. GO enrichment analysis was performed using the enrichGO function for each pairwise comparison, with the following parameters:

  • keyType = "ENSEMBL" to specify gene identifiers,
  • OrgDb = org.Mm.eg.db for mouse gene annotation,
  • ont = "BP" to restrict the analysis to the Biological Process subontology,
  • and the set of genes tested in each pairwise comparison used as the background universe.

Results

Presented below are the results of the analyses performed on the lung dataset, along with the answers to the various questions asked at each stage of the project.

Quality Control

Below we are going to answer to all question about quality control of our 15

Question 1 : How many reads do we have per sample?

For each sample, the total number of reads is the same for the 2 pairs. If we considerate only one mate for each sample, the range of the total number of reads is from 31.6M to 54.7M. More than half of our data set have less than 40M of reads (53.33%). The second bigger part is between 40M still 50M, where we have 40% of our same. There is only one sample with more than 50M reads (SRR7821924).

Fig. 1 : General statistics of raw FASTQs quality assessment

Question 2 : How does the average base quality change along the length of the reads, and between mates 1 and 2?

As we can see in the plot below, all our reads have the length of 75bp, and the quality of each position is in the green part, which indicate that, our reads have a good average quality and we do not need to clean these reads in term of quality.

Fig. 2 : Plot of average quality along the length of reads

Question 3 : Is there evidence of adapter sequences?

The plot below that, adapters are present only from 55bp and the percentage of reads are less than 1%. With this low level of adapter, we do not really need to remove them.

Fig. 3 : Adapter content

Question 4 : Do you spot any issues that need to be addressed before you continue with the analysis?

Regarding of the information above, we can see that we do not need to clean our data set before next steps in our analysis workflow.

Map reads to the reference genome

The next lines below present some of these results and the related interpretation.

Question1 : What are the alignment rates observed across samples?

The table below present general statistics of the mapping. The column % Mapped shows that, the alignment rate across samples where 95% with a range in percentage of 93.4 still 97.6. Regarding mapping depth and quality we see that, the average depth across samples was 2.0x (with a range of 1.7x to 2.9x) and the minimum average quality was 54.1.

Tab. 1 : General statistics of mapping to reference given by samtools

Question 2 : What is concordant alignment and how many reads are concordantly aligned in the different samples?

Concordant alignment refers to paired-end reads that are aligned so that their orientations are consistent and respect the expected spatial relationship.

Based on HISAT2 alignment statistics, we generated the plot below that represent the proportion of concordant alignment in each sample. As we can see here, across all our samples, there are in average 87% of reads aligned concordantly exactly 1 time. That means that around 87% of the sequence pairs (reads) for each sample have been mapped onto the reference genome at locations that are correct and consistent with the expected relative orientation and distance between the two reads of each pair.

Fig. 4 : Distribution of concordant alignment across samples

Question 3 : Is there evidence of multimapped reads? If so, is this a concern for downstream analyses?

Figure 4 shows that across our samples, an average of 5.6% of read pairs aligned more than once concordantly to the reference genome. This indicates the presence of multimapped reads in our BAM files.

The consequences of this phenomenon are as follows: these ambiguous reads likely originate from repetitive sequences or highly similar gene families. During the quantification (counting) steps, most tools ignore these multimapped reads by default.

Consequently, this 5.6% of data will be lost for expression analysis, leading to a potential underestimation of gene expression for genes located within these repetitive regions.

Count the number of reads per gene

The figure 5 below shows the percentage of reads assigned to exons (Assigned) and other information, such as the percentage of unmapped reads (Unassigned: Unmapped), the percentage of multimapped reads (Unassigned: Multi Mapping), the percentage of reads mapped on introns (Unassigned: No Features), and the percentage of reads those aligning equally well on multiple loci (Unassigned: Ambiguity).

Fig. 5 : featureCounts : assignment reads to exons

Question 1 : What proportion of reads overlaps with annotated genes in each sample?

The figure 5 above shows that, the proportion of reads assigned to annotated genes is between 61.5% (SRR7821919) and 77.4% (SRR7821938) with a median of 69.94%. That means that, the half of our data set have at less 69.93% of reads overlapped with annotated genes.

Question 2 : How many reads, on average, are unassigned due to ambiguity? Can you think of situation when it may not be possible to assign a read unambiguously to a particular gene?

A quick look at the featureCounts summary shows that, on average, 707 911.467 reads are unassigned due to ambiguity. This means that 1.52% of the reads overlap multiple genes and cannot be assigned to a single one. These reads are therefore excluded from downstream analyses.

The inability to unambiguously assign reads to a specific gene is a key challenge in RNA-seq transcript quantification. This issue arises when reads map to multiple genes or isoforms, often due to gene duplications, gene families, or repetitive sequences. Indeed, Eukaryotic genomes contain numerous duplicated sequences arising from mechanisms such as recombination, whole-genome duplication, or retrotransposition. These duplications complicate gene and transcript quantification in RNA-seq analyses, as some reads align to multiple regions, including within embedded genes (Deschamps-Francoeur et al. 2020).

Exploratory data analysis

Question 1 : In some way, visualise how the samples cluster based on their gene expression profiles

Fig. 6 : Principal Component Analysis (PCA) plot of the samples

Question 2 : Briefly comment on the observed pattern and what it means for downstream analysis

Using the top 500 most variable genes from our count matrix for PCA, the first two principal components retained 84% of the total variance. Examination of the clustering pattern reveals distinct sample groupings:

PC1 (Primary axis of variation): PC1 separates samples primarily by infection status:

  • Control samples (both wild-type and double knockout) cluster together and contribute positively to PC1
  • Infected wild-type samples form a distinct cluster and contribute negatively to PC1
  • Infected double knockout samples occupy an intermediate position

PC2 (Secondary axis of variation): PC2 distinguishes between genetic backgrounds in the infected state:

  • Infected wild-type samples contribute negatively to PC2
  • Infected double knockout samples contribute positively to PC2
  • Control samples (both genotypes) cluster together with negative contributions to PC2

Summary of clustering patterns:

Samples group according to three main clusters:

  1. All control samples (wild-type and double knockout combined)
  2. Infected wild-type samples
  3. Infected double knockout samples

Biological interpretation:

This quality control analysis reveals three key patterns:

  1. Baseline similarity: Wild-type control and double knockout control samples show nearly identical gene expression profiles, indicating minimal constitutive effects of the knockout in uninfected conditions.
  2. Divergent infection responses: Two distinct gene expression patterns emerge upon infection:
    • Infected wild-type samples remain transcriptionally similar to control samples, while infected double knockout samples show marked divergence. This suggests these genes are upregulated in wild-type mice upon infection but downregulated (or fail to respond) in double knockout mice.
    • Both infected wild-type and infected double knockout samples diverge from controls in the same direction. This indicates genes whose infection-induced expression changes are preserved despite the knockout, suggesting IFN-independent infection responses.

These patterns confirm that the double knockout substantially alters the transcriptional response to T. gondii infection for a subset of genes, while other infection-responsive genes remain intact.

Differential expression analysis

We asked ourselves questions based on the research questions. This enabled us to draw the following pairwise comparisons :

Tab. 2 : Selected pairwise comparisons

Objectives Pairwise comparison Question asked
Understand host immune response to parasite infection WT control vs WT case Which genes respond to T. gondii infection in wild-type mice ?
Understand host immune response to parasite infection WT control vs DKO case What is the overall impact of T. goodii infection in Double Knockout mice ?
Investigate similarities / differences between genetic backgrounds WT control vs DK control Which genes are expressed differently between DKO and WT in the absence of infection ?
Investigate similarities / differences between genetic backgrounds WT case vs DKO case Which genes show a response to infection that is significantly different between WT and DKO mice ?

Question 1 & 2 :

  • How many genes are differentially expressed (DE) in the pairwise comparison you selected,
  • How many of the differentially expressed genes are up-regulated vs down-regulated?

To keep only differentially expressed genes which are both statistically significant and biologically relevant (a sufficient change in expression to be interesting), genes with padj < 5% and Log2FoldChange > 1 or Log2FoldChange < -1 were selected for the next steps of our analysis. The following figure represent for each pairwise comparison, the number of differentially expressed genes, the up-regulated genes (log2FC > 1) and the down-regulated genes (log2FC < -1).

Fig. 7 : Differentially Expressed Genes Summary

The comparative gene expression analysis between wild-type (WT) and double knockout (DKO) mice reveals that Toxoplasma gondii infection induces a massive reprogramming of the host genome. However, the efficacy and specificity of this response depend critically on the integrity of the host genotype.

  • A discrete mutation under homeostatic conditions : the examination of the basal state (WT control vs. DK control) demonstrates that the double gene deletion only superficially alters the gene expression profiles at rest, with only 491 genes affected. This suggests that, under non-infectious conditions, the targeted genes are not essential for maintaining cellular homeostasis, or that genetic redundancy mechanisms compensate for their absence.
  • Infection as a catalyst for divergence : the contrast between the control and infected states (WT control vs. WT case) confirms the high virulence of T. gondii, triggering changes in the expression of over 6200 genes. This "normal" response is characterized by a high proportion of down-regulated genes (3667), likely reflecting a hijacking of host metabolism by the parasite or a cellular strategy to deprioritize non-essential functions in favor of defense. While the DKO mutant appears to show a global response of similar magnitude (6041 genes modified compared to the control), a fine-grained analysis proves that this response is dysfunctional.
  • The signature of DKO immune failure : the highlight of this study lies in the WT case vs. DKO case comparison. The fact that 3638 genes are differentially expressed between the two genotypes during infection (compared to only 491 in the healthy state) proves that the deleted genes act as master regulators specifically activated by infectious stress.
    • Regulatory failure: The DKO mice fail to replicate the transcriptional program of the wild-type.
    • Increased vulnerability: This massive divergence (affecting approximately 60% of the overall infection response) suggests that the DKO mutant is unable to coordinate the necessary signaling pathways (such as pro-inflammatory cytokines or intracellular effector mechanisms) required to control T. gondii proliferation.

Question 3 : Selection of three genes and investigate their expression level

Below is a selection of three genes of interest and how their expression levels varied according to observations made in Singhania et al., 2019:

  • Mx1 (Myxovirus Resistance 1): A classical marker of the Type I IFN response, this gene demonstrates that IFN-γ is indispensable for activating genes normally considered to be under the exclusive control of Type I IFN in the context of T. gondii infection.
  • Ifit1 (Interferon-Induced Protein with Tetratricopeptide Repeats 1): A member of the Type I IFN response, it follows the same expression profile as Mx1. Its reduced basal expression in uninfected Ifnar⁻/⁻ mice reveals a constitutive tonic activity (basal vigilance) of Type I IFN in healthy lung tissue.
  • Tap1 (Transporter Associated with Antigen Processing 1): A gene essential for antigen presentation, it serves as a control for the IFN-γ pathway. Its expression is independent of the Type I IFN pathway, but it exhibits a basal tonic activity dependent on IFN-γ, confirming constant immune vigilance even in the absence of infection.

Fig. 8 : Differential expression patterns of Mx1, Ifit1, and Tap1 genes upon infection in Wild-type versus Double Knockout mice

Figure 8 illustrates the expression patterns of three key interferon-stimulated genes (Mx1, Ifit1, and Tap1) across experimental conditions and genotypes.

In wild-type (WT) mice, T. gondii infection triggers a robust and significant induction of all three genes compared to control samples, reflecting a successful activation of the host immune response.

In stark contrast, the double-knockout (DKO) group reveals two critical defects:

  • Reduced Basal Expression: Even in control conditions, DKO mice exhibit significantly lower expression levels of these genes compared to WT controls. This confirms that intact interferon signaling is required for the "basal tonic activity" or immune vigilance necessary for lung tissue homeostasis.
  • Failure of Induction: Upon infection, the DKO mice fail to upregulate these genes. Instead, expression levels remain largely stagnant (Ifit1) or show a slight downward trend (Mx1 and Tap1), highlighting a complete collapse of the interferon-dependent transcriptional program.

Overall, these patterns demonstrate that the transcriptional induction of these genes during infection is strictly dependent on both Type I (IFNAR) and Type II (IFNGR) interferon signaling pathways. The loss of these receptors in DKO mice not only prevents a response to the parasite but also compromises the pre-existing baseline of immune readiness.

Overrepresentation analysis

Question 1 : What are the top GO terms detected in the overrepresentation analysis ?

Based on the Gene Ontology (GO) overrepresentation analysis, here is a detailed breakdown of the biological processes most affected by the infection and the mutation.

  • Global Immune Response (Innate and Adaptive)
    • In wild-type mice (WT control vs WT case), infection predominantly triggers the adaptive immune response and leukocyte mediated immunity.
    • The WT case vs DKO case comparison highlights a failure in the regulation of innate immune responses, showing that the DKO genotype cannot properly coordinate early defense signals.
  • Pathogen Defense Mechanisms
    • Terms like "defense response to bacterium" and "defense response to virus" are enriched across the board.
    • This confirms that while the infection is recognized as a threat, the DKO mice lack the specific "antiviral-like" machinery required to contain T. gondii.
  • Leukocyte Dynamics (Activation and Migration)
    • Leukocyte proliferation and mononuclear cell proliferation are top terms in infected wild-type mice.
    • In the infected mutant (WT control vs DKO case), there is a strong enrichment in chemotaxis and leukocyte migration. This implies that immune cells are signaling to move, but the overall protective response is disrupted.
  • Interferon-Mediated Signaling Pathways (The Core Defect)
    • This is the most critical finding. The WT case vs DKO case comparison isolates "response to type II interferon" and "response to interferon-beta" as the most significant terms.
    • This confirms that the DKO mice suffer from a complete collapse of interferon signaling, providing the functional explanation for the lack of induction in genes such as Mx1, Ifit1, and Tap1.

Fig. 9 : The top 10 GO terms detected per pairwise comparisons

Question 2 : Briefly discuss your results based on what you know about these samples, e.g. from the original publication.

Figure 10 displays the gene-concept networks (Cnetplots) visualizing the interactions between differentially expressed genes (DEGs) and enriched biological processes across the four pairwise comparisons.

A. WT control vs WT case Comparison

In the infected wild-type lung, the network is structured around two highly dense and interconnected central hubs: antigen processing and presentation and the response to type I interferon. The majority of associated genes, including Stat1, Irf7, Mx1, and MHC class II molecules (H2-Aa, H2-Ab1, H2-Eb1), exhibit high positive fold changes, illustrated by intense dark blue coloring.

B. WT control vs DK control Comparison

At the basal state, the network is markedly smaller with low connectivity. Several genes related to interferon signaling (Mx2, Isg15, Ifit1) are colored red, indicating significantly lower expression levels in the double-knockout (DKO) mutant compared to the wild-type control in the absence of infection.

C. WT control vs DKO case Comparison

Upon infection of the mutant mice, an antigen presentation hub is identified, but it exhibits lower gene density and connectivity than that observed in the wild-type. The genes are predominantly colored light or pale blue, reflecting an induction of lower magnitude.

D. WT case vs DKO case Comparison

The direct comparison between the two infected genotypes shows that the interferon response and antigen presentation hubs consist almost exclusively of under-expressed genes (red coloring) in the DKO mutant. Pivotal effectors such as Stat1, Tap1, Oas1a, and the entire set of major histocompatibility complex (MHC) genes display significantly lower expression levels than those of the infected wild-type.

Fig. 10 : Gene connect network per pairwise comparisons for Type I IFN/Ifit/Oas and Ifng/Gbp/Antigen presentation

Project structure

.
├── main.sh
├── imgs
|   └── [list of images for readme.md]
├── container
|   └── [list of containers (.sif)]
├── data
│   ├── dataset -> /data/courses/rnaseq_course/toxoplasma_de/reads_Lung
|   |   ├── README
|   |   └── [Pairend reads (SRR78219*_[12].fastq.gz)]
│   └── refseq
|       ├── Mus_musculus.GRCm39.115.exon
|       ├── Mus_musculus.GRCm39.115.fa
|       ├── Mus_musculus.GRCm39.115.gff3
|       ├── Mus_musculus.GRCm39.115.gtf
|       ├── Mus_musculus.GRCm39.115.idx.[1-8].ht2
|       └── Mus_musculus.GRCm39.115.ss
├── .log
│   ├── errors
|   |   └── [error logs (.err)]
│   └── output
|       └── [output logs (.out)]
├── results
│   ├── SRR78219*
│   │   ├── fastqc
|   |   |   └── [raw reads QC results]
│   │   └── hisat2
|   |      |── [alignment results]
|   |      |── [alignment QC results]
|   |      └── [featureCounts results]
│   └── summary
|       ├── featureCounts
|       |   └── [featureCount Results]
│       ├── DE_Analysis
|       |   |── [cleaned featureCount Matrix]
|       |   |── Mus_musculus.GRCm39.115.csv
|       |   |── differential_expression_model.RData
|       |   └── plots
|       |       └── [plot images]
│       └── quality_control
│           |── multiqc_data
|           └── multiqc_report.html
└── scripts
    |── [R script]
    └── [bash script]

About

Study of pulmonary immune response to Toxoplasma gondii infection through bulk RNA-seq data analysis using data set GSE119855

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published