-
Notifications
You must be signed in to change notification settings - Fork 1
/
03.06-microbial_metatranscriptomics.Rmd
98 lines (70 loc) · 4.43 KB
/
03.06-microbial_metatranscriptomics.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Microbial metatranscriptomics (HT) data processing {#microbial-metatranscriptomics-data-processing}
Metatranscriptomics is a powerful tool for investigating gene expression patterns in complex microbial communities. It allows researchers to explore the functional diversity of microbial populations, providing insights into the metabolic pathways and interactions that drive community dynamics. The analysis of microbial metatranscriptomic data can be conducted following two main strategies, which depend on whether a reference catalogue of annotated bacterial genomes is available or not.
In the following two chapters, you will find example pipelines to process microbial metatranscriptomic data through both strategies:
* **[Reference-based microbial metatranscriptomics (MT) data processing](#microbial-metatranscriptomics-data-processing-reference-based)**
* **[Reference-free microbial metatranscriptomics (MT) data processing](#microbial-metatranscriptomics-data-processing-reference-free)**
## Reference-based microbial metatranscriptomics (MT) data processing {#microbial-metatranscriptomics-data-processing-reference-based}
In reference-based metatranscriptomics, sequencing reads are aligned to a reference genome or transcriptome, allowing for the identification and quantification of transcripts from known genes. This approach provides a more focused analysis of gene expression in microbial communities and can be particularly useful when studying well-characterized microbial systems.
### Quality filtering {-}
Fastp is a high-performance FASTQ preprocessor that can be used to clean up raw sequencing reads from Illumina platforms. It provides various quality control, filtering, and trimming options to remove low-quality bases, contaminants, and adapter sequences. The code provided performs a number of these steps, including trimming of poly-G and poly-X tails, which are commonly observed in Illumina reads, filtering reads based on quality and length, and removing adapter sequences. The resulting cleaned reads are then written to the specified output files. Additionally, fastp provides comprehensive quality control reports in both HTML and JSON formats, which can be used to assess the quality of the input reads and the impact of the processing steps. Overall, pre-processing raw sequencing reads with fastp is a critical step in ensuring the accuracy and reliability of downstream bioinformatics analyses.
\small
```{sh mt-fastp, eval=FALSE}
fastp \
--in1 {input.r1i} --in2 {input.r2i} \
--out1 {output.r1o} --out2 {output.r2o} \
--trim_poly_g \
--trim_poly_x \
--n_base_limit 5 \
--qualified_quality_phred 20 \
--length_required 60 \
--thread {threads} \
--html {output.fastp_html} \
--json {output.fastp_json} \
--adapter_sequence CTGTCTCTTATACACATCT \
--adapter_sequence_r2 CTGTCTCTTATACACATCT
```
\normalsize
### Ribosomal RNA removal {-}
Ribodetector can be used for efficient removal of rRNA sequences from microbial metatranscriptomics data, improving accuracy and reducing computational time. This tool helps to better identify transcripts and understand gene expression in complex microbiomes.
\small
```{sh mt-ribodetector, eval=FALSE}
#Code to be added here
```
\normalsize
### Host genome indexing {-}
In order to use STAR for host transcriptomics, it is neccesary to first generates a genome index, which can be used for multiple RNA-seq experiments.
\small
```{sh mt-star-index, eval=FALSE}
#Code to be added here
```
\normalsize
### Host genome mapping {-}
STAR (Spliced Transcripts Alignment to a Reference) can be used for efficiently mapping host reads against a selected reference genome, and thus filter them out from subsequent metatranscriptomic analyses.
\small
```{sh mt-star, eval=FALSE}
#Code to be added here
```
\normalsize
### Generating and indexing the microbial genome catalogue {-}
Explanations to be added here.
\small
```{sh mt-bowtie2-index, eval=FALSE}
#Code to be added here
```
\normalsize
### Mapping against the microbial genome catalogue {-}
Explanations to be added here.
\small
```{sh mt-bowtie2-mapping, eval=FALSE}
#Code to be added here
```
\normalsize
### Calculate gene counts {-}
Explanations to be added here.
\small
```{sh mt-coverm, eval=FALSE}
#Code to be added here
```
\normalsize
## Reference-free microbial metatranscriptomics (MT) data processing {#microbial-metatranscriptomics-data-processing-reference-free}
Contents to be added here.