Project Background:Metagenomic sequencing of 6 samples was completed, yielding 6Gb of data per sample and a total of 36Gb,The data volume per sample shall not be less than 90% of the target data volume ,and complete standard metagenomic bioinformatics analysis.
Table 1 Basic Sample Information Table
The first column is the name of the analyzed sample; the second column is the grouping information
Metagenomics is a scientific method for studying the collective genetic material of microbial communities. It does not rely on the isolation and cultivation of individual microorganisms, but rather directly extracts all DNA from environmental samples for study. The process includes sample preparation, nucleic acid extraction quality control, library construction, sequencing, data quality control, and data analysis. Metagenomics; Provides powerful tools for understanding the complexity of microbial communities, which is of significant importance in fields such as biodiversity conservation, disease prevention and control, environmental management, and biotechnological applications.
Metagenomic sequencing is a high-throughput sequencing technology that studies the genetic information of all microorganisms in environmental samples. The process includes steps such as sample preparation, nucleic acid extraction quality control, library construction, sequencing, data quality control, and data analysis. First, sample testing is conducted to ensure sample quality, followed by DNA extraction and nucleic acid testing to obtain high-quality DNA samples; Subsequently, library construction is performed to convert DNA samples into libraries suitable for sequencing. Next, sequencing is carried out to obtain a large amount of sequence data; thereafter, data quality control is performed to remove low-quality data and ensure data accuracy. Finally, data analysis is conducted, including data quality control, metagenome assembly, non-redundant gene set construction, community functional annotation, differential gene analysis, species composition, and diversity analysis.
Figure 1 Technical roadmap
Metagenomic data analysis includes the following steps: data quality control, metagenome assembly, gene prediction and construction of a non-redundant gene set, gene functional annotation, gene abundance and differential analysis, species composition and diversity analysis, and species differences. Through these steps, researchers can gain insights into the diversity, composition, and functions of microorganisms in the samples, thereby providing important information for research in fields such as ecology, medicine, and agriculture.
1、Processing and statistics of sequencing data, including filtering low-quality sequences, data output, and quality control statistics;
2、Metagenome assembly;
3、Genome component analysis, including gene prediction and non-redundant gene set construction;
4、Functional annotation, including annotations from general databases such as KEGG, Nr, UniProt, GO, COG, KOG, Pfam, RefSeq, Tigerfam, and special databases such as CAZY, ARDB, VFDB, CARD, PHI, CYPED, TCDB;
5、Gene abundance estimation, differential gene statistics, and functional enrichment analysis;
6、Species composition and diversity analysis, including species annotation, species abundance charts, α diversity, β diversity, etc.;
A total of 7.20 Gb of raw data was obtained from 6 samples using second-generation Illumina sequencing, with an average of 1.20 Gb of data per sample.
Due to the possibility of low-quality sequences and adapter sequences in the raw sequencing data, the raw sequencing data was processed using fastp software to remove adapters and low-quality sequences, resulting in clean reads for subsequent analysis.
Table 2 Second-Generation Sequencing Data Summary Table
Note: SampleId refers to the sample identifier; RawReads refers to the number of raw sequences; RawBases refers to the amount of raw data; CleanReads refers to the number of filtered sequences; CleanBases refers to the amount of filtered data; Q20 refers to the ratio of Q20 reads after filtering; Q30 refers to the ratio of Q30 reads after filtering; GC_content(%) is the GC ratio of filtered reads.
MEGAHIT software was used to perform metagenome assembly on second-generation data, resulting in the final assembly for subsequent analysis.
Table 3 Assembly Results Data Statistics
Note: Sample: sample name; Contig Num: number of contigs after assembly; Total Len: total number of bases in all contigs; Largest Len: number of bases in the longest contig; N50: when contigs are sorted from longest to shortest and the cumulative length reaches half of the total length of all contigs upon adding a specific contig, the length of that contig is defined as N50; GC: percentage calculated as G+C/A+T+G+C.
Result file:01.assemble/assemble.stat.txt
This project utilized Prokka software to call Prodigal for ORF prediction on the assembly results. The prediction results for each sample are shown in the table below:
Table 4 Gene Prediction Results Statistics
Note: Sample: Sample Name; GeneNum: Number of Predicted Genes; geneLen: Total Base Count of All Predicted Genes; minLen: Minimum Length of Predicted Genes; maxLen: Maximum Length of Predicted Genes; meanLen: Average Length of Predicted Genes; N50: Genes are sorted from longest to shortest, and the cumulative length is calculated. When adding a certain gene causes the cumulative length to equal half of the total length of all genes, the length of that gene is defined as N50.
Result file:02.gene/geneStat.txt
After gene prediction is completed, CD-HIT is used to remove redundancy from the annotated genes. The statistics of the number of genes after redundancy removal are shown in the table below:
Table 5 Non-redundant Gene Prediction Results Statistics
Note: Geneset_number: Number of predicted gene sets; Total_Len: Total number of bases of all predicted genes; Average: Average number of bases of predicted genes; Max_length: Maximum length of predicted genes; Min_length: Minimum length of predicted genes.
Result file:02.gene/
CRISPR prediction of the genome was performed using the minced software, and the CRISPR prediction statistics for each sample are shown in the table below:
Table 6 CRISPR Prediction Results Statistics for Each Sample
Note: sample: Sample name; numbers: Number of predicted CRISPRs; length: Total length of predicted CRISPRs.
Result file:03.genomeElement/CRISPR/
Prophages in the genome were predicted using the PhiSpy software, and the statistical results for each sample are shown in the table below.
Table 7 Statistical results of prophage predictions for each sample
Note: sample: sample name; numbers: number of predicted prophages; length: total length of predicted prophages.
Result file:03.genomeElement/Prophage/
Genomic islands present in the genome were predicted using the IslandPath software, and the statistical results for each sample are shown in the table below.
Table 8 Prediction results of genomic islands
Note: sample: sample name; numbers: number of predicted genomic islands; length: total length of predicted genomic islands.
Result file:03.genomeElement/Island/
Using methods based on BLAST, Diamond, or HMMER alignment, the predicted protein sequences of the genes are compared with functional databases such as UniProt, KEGG, GO, RefSeq, COG, and Pfam to obtain gene functional annotation results. The annotation statistics for each database are shown in the table below:
Table 9 Database Annotation Proportion Statistics
Note: In the first column, ‘All’ refers to all genes; ‘Annotation’ refers to genes with at least one annotation; ‘KEGG’ refers to genes annotated to the KEGG database; ‘Pathway’ refers to genes annotated to the KEGG Pathway database; ‘Nr’ refers to genes annotated to the Nr database; ‘Uniprot’ refers to genes annotated to the Uniprot database; ‘GO’ refers to genes annotated to the GO database; ‘COG’ refers to genes annotated to the COG database; ‘KOG’ refers to genes annotated to the KOG database; ‘Pfam’ refers to genes annotated to the Pfam database; ‘Refseq’ refers to genes annotated to the Refseq database; ‘Tigerfam’ refers to genes annotated to the Tigerfam database; the second column shows the number corresponding to each item; the third column shows the proportion of each item.
Result file:04.regularFunction/stat.xls
KEGG (Kyoto Encyclopedia of Genes and Genomes) is a major public database for systematically analyzing the metabolic pathways of gene products in cells and the functions of these gene products. Utilizing KEGG allows for further research into the complex behaviors of genes in biology. After performing KEGG annotation on the genes, they are classified based on the KEGG metabolic pathways they participate in, as shown in the figure below.
Figure 2 Classification of KEGG pathway results
Note: The vertical axis represents KEGG level 2 classification; the horizontal axis represents the number of annotated genes, with different colors representing different KEGG level 1 classifications.
Result file:04.regularFunction/kegg/
Gene Ontology (abbreviated as GO) is an internationally standardized gene function classification system that provides a dynamically updated controlled vocabulary to comprehensively describe the attributes of genes and gene products in organisms. After simplifying the GO (Gene Ontology) annotation information, the GOslim classification is obtained. The functions of genes are summarized from three aspects: cellular components, molecular functions, and biological processes. The top 20 GOslim secondary classifications with the most annotations in each category are selected for plotting, as shown in the figure below.
Figure 3 GO Annotation Result Classification Chart
Note: The horizontal coordinate represents the annotated GO classification; the vertical coordinate represents the number of annotated genes; different colors represent different major categories.
Result file:04.regularFunction/go/
Cluster of Orthologous Groups of proteins (COG) is a database for the classification of gene products based on direct homologs. Each COG protein is assumed to originate from an ancestral protein. The COG database is constructed based on the coding proteins of bacteria and algae with complete genomes and their phylogenetic relationships. By aligning the Unigene and COG databases, we predict the possible functions of genes and perform functional classification statistics, thereby gaining a macro understanding of the gene function distribution characteristics of the species. COG is divided into 26 groups. The genes annotated by COG are classified according to the COG groups, as shown in the figure below.
Figure 4 COG Results Classification Chart
Note: The horizontal coordinate represents the 26 COG categories; the vertical coordinate represents the number of annotated genes.
Result file:04.regularFunction/cog/
Nr (Non-Redundant Protein Sequence Database) is a non-redundant protein database that includes all non-redundant protein sequences from GenBank, EMBL, DDBJ, and PDB. For all known or potential coding sequences, the NR records provide the corresponding amino acid sequences (inferred from known or potential reading frames) as well as sequence numbers from specialized protein databases. After performing Nr annotation on the genes, annotations are made based on their homologous sequences in the alignment, and the species to which the aligned genes belong are extracted. The top ten species with the highest number of aligned genes are plotted, as shown in the figure below.
Figure 5 Species distribution map of Nr results
Note: The figure legend corresponds to the species indicated by color.
Result file:04.regularFunction/nr/
Using the hmmer software, the protein sequences of non-redundant genes were aligned with the CAZy database to identify potential carbohydrate-active enzymes present in the gene sequences. The distribution ratios of various types of carbohydrate enzymes are shown in the figure below.
Figure 6 Distribution Proportion of Carbohydrate Enzymes
Result file:05.specificFunction/cazy/
The Antibiotic Resistance Genes Database (ARDB) is primarily constructed through literature review, database searches, comparative analysis, and organization. In addition to resistance genes, it also includes 12 drug action targets.
Table 10 ARDB Database Annotation (20 rows displayed)
Note: SeqID is the gene set gene ID; ProteinID is the annotated gene name; Pident is the annotation consistency; Qcovs is the annotation coverage; ResistanceType is the resistance gene type name; Description is the description of the antibiotic resistance gene; ResistanceProfile is the name of the resistance gene; Require is the common name of the gene annotated to the resistance gene.
Result file:05.specificFunction/ardb/
Using the tool software rgi from the CARD database, the protein sequences of non-redundant genes were aligned with the database to identify corresponding sequences in the database and obtain related resistance genes and resistance-related information.
Table 11 CARD database annotation (20 rows displayed)
Note: ORF_ID is the gene set gene id; Best_Hit_ARO is the best matching ARO; Best_Identities is the highest alignment rate; ARO is the ARO ID; Drug Class is the type of drug resistance; Resistance Mechanism is the mechanism of resistance; AMR Gene Family is the resistance gene family to which the resistance gene belongs.
Result file:05.specificFunction/card/
The protein sequences of non-redundant genes were aligned with the VFDB database using Blast, and the alignment results are as follows:
Table 12 VFDB Annotation (Displaying 20 rows)
Note: SeqID refers to the gene set gene id; Pident refers to the consistency of the annotation; Qcovs refers to the coverage of the annotation; Accession refers to the annotated VFDB id; Annotation refers to the VFDB annotation information.
Result file:05.specificFunction/vfdb/
Using Diamond blastp to align the protein sequences of non-redundant genes to the PHI database, the results are shown in the table below:
Table 13 PHI Annotation (Displaying 20 rows)
Note: SeqID refers to the gene set gene id; Pident refers to the consistency of the annotation; Qcovs refers to the coverage of the annotation; ProteinID refers to the annotated PHI sequence ID; PhiID refers to the annotated PHI id; PathogenGene refers to the pathogen gene; PathogenSpecies refers to the species of the pathogen; MutantPhenotype refers to pathogenicity.
Result file:05.specificFunction/phi/
Aligning the protein sequences of non-redundant genes to the CYPED database, the statistical results are as follows:
Table 14 CYPED Annotation (showing 20 rows)
Note: SeqID is the gene set gene id; Pident is the consistency of the annotation; Qcovs is the coverage of the annotation; SequenceID is the p450 number of the annotation; ProteinID is the p450 protein number of the annotation; HomologousFamilies is the homologous family number of the annotation; Superfamilies is the sub-number of the homologous family of the annotation; GI is the GI number of the annotated gene on NCBI; TaxonID is the NCBI species taxonomy number; Species is the Latin name of the annotated species.
Result file:05.specificFunction/cyped/
Aligning the protein sequences of non-redundant genes to the TCDB database, the statistical results are as follows:
Figure 7 TCDB classification bar chart
Note: The horizontal coordinate represents the type of transport protein; the vertical coordinate represents the number of genes annotated to this type; different colors represent different types.
Result file:05.specificFunction/tcdb/
Quantification of the non-redundant gene set was performed using the salmon software, with gene abundance standardized using the TPM (Transcripts Per Million) algorithm.
A density plot based on standardized gene abundance is drawn:
Figure 8 Gene abundance density plot
Note: The horizontal coordinate is log10(TPM); the vertical coordinate is density; different colors represent different samples.
Result file:06.geneExpression/sample.density.png
Based on the standardized gene abundance, the correlation between samples is calculated, and a heatmap is drawn to display the similarity and clustering relationships among the specimens.
Figure 9 Sample Correlation Clustering Heatmap
Result file:06.geneExpression/corHeatMap/
Principal Component Analysis (PCA) is a technique for analyzing and simplifying datasets by decomposing variance, reflecting the differences of multiple datasets in a two-dimensional coordinate graph. By analyzing the gene abundance of different samples, the differences and distances between the samples can be reflected; the closer the distance between two samples in the graph, the more similar their compositions are.
Figure 10 Gene Abundance PCA Graph
Note: The points represent each sample; different colors indicate different groups; the horizontal coordinate represents the first principal component, and the percentage indicates the contribution value of the first principal component to the sample differences; the vertical coordinate represents the second principal component, and the percentage indicates the contribution value of the second principal component to the sample differences; different colors represent different groups.
Result file:06.geneExpression/PCA
When there are multiple groups and each group has at least one replicate, DESeq2 is used for differential analysis between pairs of samples; When there is a single group with multiple samples or multiple groups without replicates, edgeR is used for differential analysis between pairs of samples. The statistical table of the number of differential genes for each differential combination is as follows:
Table 15 Differential gene count statistical table
The first column is the name of the differential combination; the second column is the number of significantly differential genes; the third column is the number of upregulated genes; the fourth column is the number of downregulated genes.
The volcano plot of differential genes for group.A_vs_B is as follows: (Other differential combination results can be found in the result file)
Figure 11 Volcano plot of differential genes
Note: Each point in the figure represents a gene; the horizontal coordinate is the logarithmic value (base 2) of the abundance difference of a gene between two samples; the vertical coordinate represents the logarithmic value (base 10) of the p-value (padj) after multiple testing correction, multiplied by -1.
Result file:06.geneExpression/DEG/
Based on the R package clusterProfiler, KEGG and GO functional enrichment analyses were conducted on differential genes to investigate whether the functional differences in abundance are concentrated in certain specific functional classifications.
This section only presents the KEGG and GO enrichment analysis results of differential genes for group.A_vs_B; results for other differential combinations can be found in the result file.
Figure 12 Bubble chart of KEGG enrichment for differential genes
Note: In the above figure, the horizontal axis represents GeneRatio (the proportion of differential genes in this Pathway classification to all differential genes), the vertical axis represents KEGG Pathway classification, the color of the points represents q-value, and the size of the points represents the number of differential genes.
Figure 13 Bubble chart of GO enrichment for differential genes
Note: In the above figure, the horizontal axis represents GeneRatio (the proportion of differential genes in this GO classification to all differential genes), the vertical axis represents Gene Ontology functional classification, the color of the points represents q-value, and the size of the points represents the number of differential genes.
Result file:06.geneExpression/DEG/
This project uses Kraken2 software for read-based metagenomic species annotation. This method is more comprehensive and accurate, eliminating the resource consumption of assembly and gene prediction processes, allowing for the annotation of more low-abundance species, and significantly improving the accuracy of species annotation and relative abundance.
Table 16 Statistical table of species classification levels
The first column is the sample ID, and the second to eighth columns represent the number of annotations at the kingdom, phylum, class, order, family, genus, and species levels, respectively.
Using Venn diagrams (suitable for 2-5 samples or groups) or petal diagrams (for sample or group numbers greater than or equal to 2) can display the number of shared and endemic species between different samples or groups, visually representing the overlap of species among different samples or groups, and identifying shared endemic microorganisms in different environments. The results are shown in the figure below.
Figure 14 Venn diagram
Note: The numbers in the overlapping areas between multiple colors in the figure represent the number of shared species among multiple samples, while the non-overlapping areas represent the number of endemic species for each sample.
Figure 15 petal diagrams
Note: The number in the center circle of the figure indicates the total number of species shared by all samples, the numbers on the petals pointing outward indicate the number of species unique to each sample, and the numbers on the petals pointing inward indicate the number of species shared with other samples.
Result file:07.taxonomy/taxonomy/venn/
To optimize the visual effect, only the top ten species by abundance are displayed, and other species are combined and shown as ‘Others’ in the figure. ‘Unclassified’ represents species that have not been assigned a taxonomic annotation.
Figure 16 Bar chart of species composition at the phylum level
Note: The horizontal coordinate represents samples, the vertical coordinate represents relative abundance, and different colors represent different species.
Figure 17 Bar chart of species composition at the class level
Note: The horizontal coordinate represents samples, the vertical coordinate represents relative abundance, and different colors represent different species.
Figure 18 Bar chart of species composition at the order level
Note: The horizontal coordinate represents samples, the vertical coordinate represents relative abundance, and different colors represent different species.
Figure 19 Bar chart of species composition at the family level
Note: The horizontal coordinate represents samples, the vertical coordinate represents relative abundance, and different colors represent different species.
Figure 20 Bar chart of species composition at the genus level
Note: The horizontal coordinate represents samples, the vertical coordinate represents relative abundance, and different colors represent different species.
Figure 21 Bar chart of species composition at the species level
Note: The horizontal coordinate represents samples, the vertical coordinate represents relative abundance, and different colors represent different species.
Result file:07.taxonomy/taxonomy/barplot/
A heatmap is a graphical representation that uses a color gradient to represent the magnitude of values in a data matrix and clusters based on the similarity of species or sample abundance. High and low abundance species are clustered and aggregated, reflecting the similarity and differences in the community composition of multiple samples through color gradients and degrees of similarity. Based on the relative abundance of species in each sample, the top 50 species (excluding unclassified ones) are selected at the phylum, class, order, family, genus, and species taxonomic levels for heatmap generation.
Figure 22 Heatmap of species abundance at the phylum level
Note: The horizontal coordinate represents samples, the vertical coordinate represents species, and different colors indicate varying levels of abundance.
Figure 23 Heatmap of species abundance at the class level
Note: The horizontal coordinate represents samples, the vertical coordinate represents species, and different colors indicate varying levels of abundance.
Figure 24 Heatmap of species abundance at the order level
Note: The horizontal coordinate represents samples, the vertical coordinate represents species, and different colors indicate varying levels of abundance.
Figure 25 Heatmap of species abundance at the family level
Note: The horizontal coordinate represents samples, the vertical coordinate represents species, and different colors indicate varying levels of abundance.
Figure 26 Heatmap of species abundance at the genus level
Note: The horizontal coordinate represents samples, the vertical coordinate represents species, and different colors indicate varying levels of abundance.
Figure 27 Heatmap of species abundance at the species level
Note: The horizontal coordinate represents samples, the vertical coordinate represents species, and different colors indicate varying levels of abundance.
Result file:07.taxonomy/taxonomy/heatmap/
Usage KRONAVisual representation of species annotation results; in the displayed results, the circles represent different taxonomic levels from the inside out, and the size of the sectors represents the relative proportions of different classification annotation results. Here, the results for sample A1 are shown; other samples can be found in the result file.
Note: From inside to outside represents from kingdom to species, and the size of the sectors indicates abundance levels; options are available on the left side to select different samples, levels, etc.
Result file:07.taxonomy/taxonomy/krona/
Using QIIME2 software, the Alpha diversity index of the samples was evaluated. The statistical values of the Alpha diversity index for each sample are shown in the table below.
Table 17 Alpha diversity index table
A box plot was used to display the differences in alpha diversity between groups, and variance analysis was conducted for statistical testing, with the results shown in the figure below:
Figure 28 ACE index box plot
Note: The horizontal coordinate represents the group names, and the vertical coordinate represents the values of the Alpha diversity index.
Figure 29 Chao1 index box plot
Note: The horizontal coordinate represents the group names, and the vertical coordinate represents the values of the Alpha diversity index.
Figure 30 Shannon index box plot
Note: The horizontal coordinate represents the group names, and the vertical coordinate represents the values of the Alpha diversity index.
Figure 31 Simpson index box plot
Note: The horizontal coordinate represents the group names, and the vertical coordinate represents the values of the Alpha diversity index.
Result file:07.taxonomy/alphaDiversity/rarefaction_curve
The Rarefaction Curve randomly samples a certain number of sequences from the sample, counts the number of species represented by these sequences, and constructs a curve using the number of sequences and the number of species. This is used to verify whether the amount of sequencing data is sufficient to reflect the species diversity in the sample and indirectly reflects the richness of species in the sample. The figure below reflects the rate of appearance of new features (new species) under continuous sampling: within a certain range, as the number of sequences increases, if the curve shows a sharp rise, it indicates that a large number of species have been discovered in the community; When the curve tends to flatten, it indicates that the number of species in this environment does not significantly increase with the increase in sequencing quantity. The dilution curve can serve as a judgment of whether the sequencing quantity of each sample is sufficient. A steep rise in the curve indicates insufficient sequencing quantity, necessitating an increase in the number of sequences; conversely, it indicates that the sample sequences are sufficient and data analysis can proceed.
Figure 32 between-sample dilution curve graph
Note: The horizontal coordinate represents the randomly selected number of sequences, while the vertical coordinate represents the number of features obtained based on that sequencing quantity. Each curve represents a sample/group, marked with different colors.
Figure 33 between-group dilution curve graph
Note: The horizontal coordinate represents the randomly selected number of sequences, while the vertical coordinate represents the number of features obtained based on that sequencing quantity. Each curve represents a sample/group, marked with different colors.
Result file:07.taxonomy/alphaDiversity/rarefaction_curve
Unlike the rarefaction curve, the abundance rank curve arranges the features in each sample in order of their abundance along the horizontal coordinate, using their respective abundance values as the vertical coordinate, connecting each feature with lines or curves to reflect the distribution pattern of feature abundance in each sample (see https://en.wikipedia.org/wiki/Rank_abundance_curve for details). For microbial community samples, this curve can intuitively reflect the quantity of both high-abundance and rare features within the community.
Figure 34 Abundance rank curve chart
Note: The horizontal coordinate represents the ranking of features sorted from largest to smallest abundance, while the vertical coordinate represents the corresponding relative abundance of the features.
Result file:07.taxonomy/alphaDiversity/rank_abund_curve
Species accumulation curves are similar to rarefaction curves and are used to measure and predict the extent to which species richness in a community increases with the expansion of sample size. They are widely used to assess whether the sample size is sufficient and to estimate community richness. Generally speaking, when the sample size is small, there is a greater likelihood of discovering a large number of new species with the addition of new samples; at this point, the curve will exhibit a sharp upward trend. When the sample size is already large, the total number of ASVs in the community will no longer significantly increase with the addition of new samples, and the curve will tend to flatten. Therefore, the species accumulation curve can be used to determine whether the sample size is sufficiently large: if the curve consistently shows an upward trend, it indicates that the sample size is insufficient and the sampling scale needs to be expanded; conversely, it indicates that the sample size is adequate to reflect the species composition of the community.
Figure 35 Species accumulation curve
注:横坐标为样本量,纵坐标为观测到的种水平物种数目,core表示共有的物种数目,total表示总物种数目。
Result file:07.taxonomy/alphaDiversity/specaccum
Principal Component Analysis (PCA) is a technique for analyzing and simplifying datasets by decomposing variance, reflecting the differences among multiple groups of data in a two-dimensional coordinate graph. By analyzing the distances between different samples, the differences among the samples can be reflected. PCA utilizes variance decomposition to represent the differences of multiple data sets on a two-dimensional coordinate graph, with the axes representing the two feature values that can maximally reflect the variance. The closer the distance between two samples, the more similar their compositions are.
Figure 36 binary jaccard algorithm
Note: Points represent each sample; different colors and shapes represent different groups; The horizontal coordinate represents the first principal component, and the percentage indicates the contribution value of the first principal component to the sample differences; The vertical coordinate represents the second principal component, and the percentage indicates the contribution value of the second principal component to the sample differences.
Figure 37 bray curtis algorithm
Note: Points represent each sample; different colors and shapes represent different groups; The horizontal coordinate represents the first principal component, and the percentage indicates the contribution value of the first principal component to the sample differences; The vertical coordinate represents the second principal component, and the percentage indicates the contribution value of the second principal component to the sample differences.
Result file:07.taxonomy/betaDiversity/PCA
Principal Coordinates Analysis (PCoA) is a dimensionality reduction method similar to PCA, based on the principle that if there is data measuring the differences or distances between N samples, this method can be used to find a Cartesian coordinate system that represents the N samples as N points, such that the square of the Euclidean distances between the points equals the original difference data, achieving a quantitative transformation of qualitative data and extracting the most significant elements and structures from multidimensional data. Through Principal Coordinates Analysis, classification of multiple samples can be achieved, further demonstrating the differences in species diversity among the samples. Based on the four distance matrices obtained from Beta diversity analysis, PCoA analysis was performed using R language tools. In the coordinate map, samples that are closer together have greater similarity.
Figure 38 binary jaccard algorithm
Note: Points represent each sample; different colors and shapes represent different groups; The horizontal coordinate represents the first principal component, and the percentage indicates the contribution value of the first principal component to the sample differences; The vertical coordinate represents the second principal component, and the percentage indicates the contribution value of the second principal component to the sample differences.
Figure 39 bray curtis algorithm
Note: Points represent each sample; different colors and shapes represent different groups; The horizontal coordinate represents the first principal component, and the percentage indicates the contribution value of the first principal component to the sample differences; The vertical coordinate represents the second principal component, and the percentage indicates the contribution value of the second principal component to the sample differences.
Result file:07.taxonomy/betaDiversity/PCoA
Non-Metric Multi-Dimensional Scaling (NMDS) is an ordination method suitable for ecological research, primarily aimed at simplifying the study objects (samples or variables) in a multi-dimensional space to a lower-dimensional space for positioning, analysis, and classification, while preserving the original relationships among the objects. Similar to PCA or PCoA, the distribution of samples can reveal differences within or between groups. The original design of NMDS was to overcome the limitations of previous ordination methods, including PCA and PCoA, which are based on linear models. The NMDS model is nonlinear and better reflects the nonlinear structure of ecological data; some studies suggest that NMDS performs better than PCA/PCoA. It is recommended that when not grouping, the sample size should be no less than 10; for multiple groups, the sample size for each group should be no less than 5. The results of the NMDS analysis are shown in the figure below: the points in the figure represent each sample, different colors indicate different groups, and the distance between points represents the degree of difference; in the coordinate map, samples that are closer together have higher similarity.
Figure 40 binary jaccard algorithm
Note: Points represent each sample; different colors and shapes represent different groups. When Stress is less than 0.2, it indicates that the NMDS analysis has a certain level of reliability.
Figure 41 bray curtis algorithm
Note: Points represent each sample; different colors and shapes represent different groups. When Stress is less than 0.2, it indicates that the NMDS analysis has a certain level of reliability.
Result file:07.taxonomy/betaDiversity/NMDS
UPGMA (Unweighted Pair-group Method with Arithmetic Mean) is a non-weighted group average method, which can also be understood as hierarchical clustering of samples, and is a commonly used clustering analysis method. The principle is based on the assumption that during the evolutionary process, the number of divergences in each lineage is the same, meaning that the rates of nucleotide or amino acid substitutions are equal and constant. The phylogenetic tree generated by the UPGMA method can be considered a simple representation of the species tree. After each divergence event, the lengths of the branches from the common ancestor node to the two features are the same. Therefore, this method is often used for the reconstruction of species trees. The four distance matrices obtained from the Beta diversity analysis were subjected to hierarchical clustering of samples using the unweighted pair group method with arithmetic mean (UPGMA) in R language, to assess the similarity of species composition among the samples. The hierarchical clustering tree of the samples is shown in the figure below: the closer the samples are, the shorter the branch length, indicating that the species composition of the two samples is more similar.
Figure 42 binary jaccard algorithm
Note: Different colors represent different groups.
Figure 43 bray curtis algorithm
Note: Different colors represent different groups.
Result file:07.taxonomy/betaDiversity/UPGMA
The sample distance heatmap is based on the distance algorithm to obtain the distance matrix between samples, and then the sample heatmap is drawn using the R language pheatmap tool. The differences between pairs of samples can be visually observed through the changes in the color gradient.
Figure 44 binary jaccard algorithm
Note: The rows and columns in the figure represent samples, and the color gradient from blue to red indicates the distance between samples from close to far.
Figure 45 bray curtis algorithm
Note: The rows and columns in the figure represent samples, and the color gradient from blue to red indicates the distance between samples from close to far.
Result file:07.taxonomy/betaDiversity/HeatMap
Similarity analysis (ANOSIM) is a non-parametric test used to determine whether the between-group (two or more groups) differences are significantly greater than the within-group differences, thereby assessing the meaningfulness of the grouping. An R value closer to 1 indicates that the between-group differences are greater than the within-group differences, while a smaller R value suggests no significant differences between and within groups. A p-value less than 0.05 indicates a high level of confidence in this test.
Figure 46 binary jaccard algorithm
Note: There are a total of N+1 boxes in the figure, where N is the number of groups. The box labeled ‘Between’ refers to the differences between groups, while the others represent the respective within-group differences. The Y-axis indicates the distance values.
Figure 47 bray curtis algorithm
Note: There are a total of N+1 boxes in the figure, where N is the number of groups. The box labeled ‘Between’ refers to the differences between groups, while the others represent the respective within-group differences. The Y-axis indicates the distance values.
Result file:07.taxonomy/betaDiversity/ANOSIM
LS-DA (Partial Least Squares Discriminant Analysis) is one of the most commonly used pattern recognition methods in omics data analysis. It sorts samples in a new low-dimensional coordinate system by finding the maximum covariance between the species abundance matrix and the given grouping information. The results of the PLS-DA analysis are shown in the figure below: the points in the figure represent different samples, with different colors indicating different groups; the distance between points represents the degree of difference, where samples that are closer together in the coordinate map have higher similarity.
Figure 48 PLS-DA plot
Note: The points represent each sample; different colors and shapes represent different groups.
Result file:07.taxonomy/betaDiversity/PLS-DA
ANOVA (Analysis of Variance) is also known as the F test. It is primarily used to test whether the means of multiple samples are equal, thereby determining the significance of the differences between the means of two or more samples. The between-group ANOVA bar chart at the genus level is shown below; please refer to the result file for bar charts at other levels.
Figure 49 Bar chart of species differences at the genus level
Note: The Y-axis represents species (showing the top 15 species with the highest average abundance); the X-axis represents the relative abundance of species; different colored bars represent different groups.
Result file:07.taxonomy/difference/Anova
The rank sum test is a non-parametric testing method. In this context, ‘rank’ refers to the order number, and the sum of these ranks is called the ‘rank sum’; the rank sum test uses the rank sum as a statistic for hypothesis testing. When encountering unknown overall distribution types, or known distribution types that do not conform to a normal distribution; or when certain variables may not be precisely measurable; and when variances are unequal, the rank sum test can be used for analysis. The bar chart for the rank sum test at the genus level is shown below; please refer to the result file for bar charts at other levels.
Figure 50 Bar chart of species differences at the genus level
Note: The horizontal coordinate represents species (showing the top 20 species with the smallest p-values); the vertical coordinate represents the relative abundance of species; different colored bars represent different groups.
Result file:07.taxonomy/difference/RankSumTest
LEfSe (Line Discriminant Analysis (LDA) Effect Size) can identify statistically significant biomarkers between different groups. The figure below shows the distribution bar chart of LDA values and the evolutionary tree diagram from the LEfSe analysis:
Figure 51 LDA Bar Chart
Note: The figure displays species with LDA Scores greater than the set value of 4; the length of the bars represents the magnitude of the impact of differential species (i.e., LDA Score), with different colors indicating species from different groups.
Figure 52 LEfSe Analysis Phylogenetic Tree
Note: The phylogenetic tree is represented by concentric circles radiating from the inside out, corresponding to taxonomic levels from phylum to species; Each small circle at different taxonomic levels represents a classification at that level, with the diameter of the small circle being proportional to the relative abundance; The coloring principle is to uniformly color species with no significant differences in yellow, while other differential species are colored according to the group with the highest abundance of that species. Different colors represent different groups, and nodes of different colors indicate microbial communities that play important roles within the group represented by that color.
Result file:07.taxonomy/difference/Lefse
MetagenomeSeq is primarily used for differential comparison between two groups of samples, and the consistency in the number of samples in each group does not affect the results. The table below presents the comparison results between A and B at the genus level; other results can be found in the analysis results.
Table 18 Genus-level MetagenomeSeq Analysis Table
Note: level: species classification name; logFC: logarithmic value of the fold change in species between the two groups; se: standard error; pvalues: p-values from statistical tests; adjPvalues: adjusted p-values.
Result file:07.taxonomy/difference/MetagenomeSeq
The raw image data files obtained from high-throughput sequencing are converted into raw data (raw reads or raw data) through base calling analysis, and the results are stored in FASTQ (abbreviated as fq) file format, which contains the base information of the sequencing sequences (reads) and their corresponding sequencing quality information. The Fastq file contains the sequence information of the sequencing data and the corresponding quality values. Each read contains 4 lines of information, as follows. The first line starts with ‘@’, which is the sequence name; the second line is the base sequence, composed of uppercase ‘ACGTN’, where N indicates an unknown base in sequencing; the third line starts with ‘+’; the fourth line is the sequencing quality corresponding to the sequence, represented by ASCII values, where each letter corresponds to each base in line 2.
Example of FASTQ format
| @ST-E00600:415:HFV5LALXX:1:1101:21486:1031 1:N:0:TGACAGGT |
| GATCTGGTCCTCTCGGACCGCGATTCTTGCCTTCTGTGAACCTCGACAGATCGATCTTGAACCTCGACAGATCGATCTTGAACCTCGA |
| + |
| AAFFFAAFFFAAFFFAAFFFAAFFFAAFFFAAFFFAAFFFAAFFFAAFFFAAFFFAAFFFAAFFFAAFFFAAFFFAAFFFAAFFFAAF |
Note: The first line starts with ‘@’, which is the sequencing identifier (Sequence Identifier) and descriptive text (optional part); this line corresponds to the reads ID. The second line is the base sequence; the third line starts with ‘+’, followed by the sequencing identifier, which is generally omitted after ‘+’ to save storage space; the fourth line is the sequencing quality corresponding to the bases, where each character in this line corresponds to an ASCII value minus 33, which gives the sequencing quality value for each base in the second line.
During the sequencing process, there will be a certain error rate, and the sequencing quality value can measure the probability of a base being incorrectly identified. If the sequencing error rate is represented by P, the sequencing quality value is Q_score If represented, the following relationship holds:
\[Q_{-score} = -10 * log_{10}P\]
The error rate of each base sequencing is derived from the sequencing quality value(Q_score) obtained through a formula, while the sequencing error rate is calculated during base recognition(Base Calling)using a predictive model for the probability of error occurrence, with the corresponding relationship shown in the table below:
Sequencing error rate and Phred score correspondence table
| Phred Quality Score | Probability of Incorrect Base Call | Base Call Accuracy |
|---|---|---|
| Q10 | 1/10 | 90% |
| Q20 | 1/100 | 99% |
| Q30 | 1/1000 | 99.9% |
| Q40 | 1/10000 | 99.99% |
Note: Phred Quality Score: Q value; Probability of Incorrect Base Call: likelihood of base misidentification; Base Call Accuracy: probability of correct base identification.
A higher base quality value indicates more reliable base recognition, and the likelihood of sequencing errors is lower. For example, for base recognition with a quality value of Q20, 1 out of 100 bases may be misidentified; for a quality value of Q30, 1 out of 1,000 bases may be misidentified; Q40 indicates that only 1 out of 10,000 bases may be misidentified.
Effective sequencing data obtained after filtering the raw second-generation sequencing data using fastp, with the filtering criteria as follows:
1、 If the N content in any sequencing read exceeds 10% of the total bases in that read, remove this paired read;
2、If the number of low-quality bases (Q<=5) in any sequencing read exceeds 50% of the total bases in that read, remove this paired read.
If a host sequence is provided, use bowtie2 (default parameters) software to align the clean reads to the host reference genome. After extracting the unmapped BAM file using samtools (-f 12), use the samtools fastq tool to convert it into a sequence that does not contain the host for subsequent assembly analysis.
Using MEGAHIT software (parameters: –k-list 21,29,39,59,79,99,119,141 –min-contig-len 500) to perform metagenome assembly on second-generation data. The algorithm employed by MEGAHIT is based on an iterative kmer de Bruijn graph (DBG) method, making it an extremely fast tool for metagenomic sequence assembly, particularly suitable for assembling large-scale data. In evaluations among similar software, MEGAHIT typically has the shortest computation time and N50, while also exhibiting the lowest error rate.
First, Prokka software is used to call Prodigal for gene prediction on the assembly results, then all sample gene prediction results are merged. CD-HIT software is used to cluster the merged protein sequences to remove redundancy, selecting the longer sequence from each cluster as the representative sequence, with a clustering similarity threshold set at 95% and a coverage threshold set at 90%.
CRISPR sequence prediction:Clustered Regularly Interspaced Short Palindromic Repeats (CRISPRs) are a unique family of DNA forward repeat sequences that are widely present in prokaryotic genomes (found in 40% of bacterial genomes and 90% of archaea). CRISPRs typically consist of repeat sequences ranging from 25 to 48 bp and single sequence spacers. Current research suggests that CRISPRs can provide the host with a form of acquired immunity. Short fragments of exogenous DNA (spacer sequences) are integrated into the host genome through the intergenic regions of CRISPR repeat segments, serving as a memory element. The mechanism of action of CRISPRs is similar to that of RNAi in eukaryotes, utilizing the spacer region to recognize and silence foreign genetic material. CRISPR prediction of the genome using the minced software (parameters: -minNR 1).
Prophage prediction:The nucleic acids integrated into the host genome from temperate bacteriophages are referred to as prophages. Bacteria carrying prophages in their genomes are called lysogenic bacteria, which possess the genetic capability to produce bacteriophages without external infection, and this capability can be passed on to their offspring. If the mechanisms maintaining the prophage state are disrupted under appropriate conditions, the bacteriophage genome becomes lytic and can autonomously replicate, leading to cell lysis. The presence of prophage sequences may also allow some bacteria to acquire antibiotic resistance, enhancing their adaptability to the environment, increasing adhesion, or transforming bacteria into pathogens. At the same time, research on prophages may lead to the discovery of specific antibiotics or even advanced cancer treatment methods. Prophage prediction in the genome was conducted using PhiSpy software (parameters: –phage_genes 1 -n 1 -u 5000).
Gene island prediction:Gene islands (Genomic Islands, GIs) are portions of the genome in some bacteria, bacteriophages, or plasmids that show signs of horizontal origin. Multiple gene islands have been found in various microbial genomes, such as Salmonella, Pseudomonas aeruginosa, Acinetobacter baumannii, Staphylococcus aureus, and Klebsiella pneumoniae. The size of a gene island typically ranges from 10 to 500 Kbp, and its GC content and codon usage differ from the rest of the genome. A gene island can be associated with various biological functions, related to symbiotic or pathogenic mechanisms, and linked to the adaptability of the organism, making it a focal point of research. Many subcategories of gene islands are based on the functions they exhibit, such as pathogenicity islands (PAIs) that contain virulence genes related to pathogenic mechanisms, and antibiotic resistance gene islands that harbor numerous antibiotic resistance genes. Gene islands (Genomic islands, GIs) are generally considered to be acquired through horizontal gene transfer. These regions often contain genes related to antibiotic resistance and virulence. Currently, commonly used methods for predicting gene islands include methods based on differences in sequence composition and comparative genomics. Predict gene islands present in the genome using the IslandPath software (default parameters).
Functional annotation is primarily achieved through sequence alignment, identifying similar sequences or structures to infer the function of unknown sequences. There are three methods for sequence alignment in this project: BLAST, DIAMOND, and HMMER. BLAST determines the similarity between sequences by searching for regions of local similarity (high-scoring segments), offering a fast speed suitable for large-scale, rapid similarity searches. BLAST is an approximate matching tool that may have errors in matching highly similar sequences or complex domains. DIAMOND is similar to BLAST, with the advantage of being significantly faster and consuming fewer resources; however, it only supports protein database alignments and has a narrower application range than BLAST. HMMER uses hidden Markov models (HMM) to describe the structure of sequences, determining similarity by aligning the target sequence with the model. HMMER is primarily used for protein sequence alignment and domain annotation, employing global alignment methods to more accurately identify structures or functional domains within the target sequence. Therefore, HMMER performs better in handling complex sequence analysis, domain annotation, and other tasks. However, due to its use of global alignment methods and complex algorithms, it is relatively slower in computational speed, making it suitable for processing smaller-scale sequence data or tasks that require high accuracy.
Gene Ontology (abbreviated as GO) is an internationally standardized gene function classification system that provides a dynamically updated controlled vocabulary to comprehensively describe the attributes of genes and gene products in organisms. Using blastp to annotate target protein sequences based on the GO database.
KEGG (Kyoto Encyclopedia of Genes and Genomes) is the main public database for systematically analyzing the metabolic pathways of gene products in cells and the functions of these gene products. Utilizing KEGG allows for further research into the complex biological behaviors of genes. Annotation is based on HMMER alignment.
COG (Cluster of Orthologous Groups of proteins) is a database for the classification of gene products into direct homologs. Each COG protein is assumed to derive from an ancestral protein. The COG database is constructed based on the coding proteins of bacteria, algae, and eukaryotes with complete genomes, as well as their phylogenetic relationships. By aligning the Unigene and COG databases, it predicts the possible functions of genes and performs functional classification statistics, providing a macro perspective on the distribution characteristics of gene functions in the species. Using the eggNOG-Mapper software for annotation, the software calls diamond blastp (parameters: -evalue 1e-5 -max_target_seqs 1) for alignment, annotating the target protein sequence based on the COG database.
The UniProt Archive is a comprehensive non-redundant database that contains protein sequences from all major public databases. Since proteins may exist in different databases and may have multiple versions within the same database. Using DIAMOND BLASTP (parameters: -evalue 1e-5 -max_target_seqs 1) to annotate the target protein sequence based on the UniProt database.
The Refseq (Reference Sequences) database is a collection of annotated non-redundant transcript, protein, and genome sequence databases, curated by NCBI and other organizations, using terminology defined by the Human Genome Nomenclature Committee, and includes official gene symbols and optional symbols. RefSeq sequences are a non-redundant database filtered by NCBI, generally considered to have a high level of credibility. Use diamond blastp (parameters: -evalue 1e-5 -max_target_seqs 1) to annotate the target protein sequence based on the RefSeq database.
NR database: a non-redundant amino acid sequence database of proteins, which includes non-redundant data from SwissProt, PIR (Protein Information Resource), PRF (Protein Research Foundation), and PDB (Protein Data Bank), as well as protein data translated from CDS data from GenBank and RefSeq. Use diamond blastp (parameters: -evalue 1e-5 -max_target_seqs 1) to annotate the target protein sequence based on the NR database.
The Antibiotic Resistance Gene Database (ARDB) is primarily compiled through literature review, database searches, comparative analysis, and organization. In addition to resistance genes, it also includes 12 drug action targets. Annotate the target protein sequence using Diamond blastp based on the ARDB database. Annotate the target protein sequence using blastp based on the ARDB database.
Carbohydrates play an important role in many biological functions. By studying carbohydrate-related enzymes, a wealth of meaningful biological information can be obtained. The CAZy database focuses on analyzing the genomes, structures, and biochemical information of carbohydrate enzymes. Annotate the protein sequence using HMMER based on the CAZy database (filter parameters: E-value < 1e-18; coverage > 0.35). Annotate the target protein sequence using HMMER based on the CAZy database.
PHI stands for Pathogen Host Interactions, which is a database of interactions between pathogens and hosts. The content included in this database has been experimentally validated, primarily sourced from hosts infected by fungal, oomycete, and bacterial pathogens, including animals, plants, fungi, and insects. Using blastp (parameters: –evalue 1e-5) to annotate the target protein sequence based on the PHI database. Using blastp to annotate the target protein sequence based on the HI database.
By annotating through the CARD database, information on the antibiotic resistance genes contained in each genome is obtained. The CARD database is constructed in the form of Antibiotic Resistance Ontology (ARO) as the classification unit, used to associate information on antibiotic modules and their targets, resistance mechanisms, gene variations, and more. The alignment results can display the position corresponding to each gene annotated in the CARD database, along with the ARO number and ARO classification description. Through the ARO classification description, one can understand the specific functions related to antibiotic resistance for each gene. Use blastp to annotate the target protein sequence based on the CARD database.
Cytochrome P450 (Cytochromes P450, abbreviated as CYP450) is a large family of proteins that use heme as a cofactor. They can catalyze the oxidation reactions of many substrates. This class of proteins is named P450 because their reduced form shows maximum absorbance at a wavelength of 450 nm when bound to CO. It is involved in the metabolism of endogenous substances and exogenous substances, including drugs and environmental compounds. Annotation is performed using diamond blastp based on the CYPED database.
The Virulence Factors Database (VFDB) is a comprehensive and extensive online resource for collecting information about the virulence factors of bacterial pathogens. The motivation for constructing VFDB is twofold: to provide in-depth reports on the main virulence factors of the most characteristic bacterial pathogens, as well as the structural features, functions, and mechanisms of these pathogens that enable them to conquer new ecological niches and evade host defense mechanisms, leading to disease; To provide researchers with the latest knowledge on various mechanisms used by bacterial pathogens, to elucidate the pathogenic mechanisms of bacterial diseases that have not been well characterized, and to develop new rational treatments and prevention methods for infectious diseases. Annotate the target protein sequences using blastp based on the VFDB database.
TCDB is a database for the classification of membrane transport proteins, which establishes a classification system for transport proteins known as the Transporter Classification (TC System), similar to the EC system for classifying enzymes, but the TC system also provides functional and evolutionary information; TCDB provides a TC Number for each transport protein family. The TC Number consists of a 5-character string made up of digits or letters separated by periods. Use diamond blastp to annotate the target protein sequence based on the TCDB database.
Gene abundance estimation is measured by the number of reads aligned to the gene. As the sequencing quantity of the sample increases and the length of the gene becomes longer, the number of reads aligned to this gene will increase. To compare the abundance differences of genes between different samples, it is necessary to normalize the raw count of reads aligned to the genes. Here, the TPM (Transcripts Per Million) algorithm is used to normalize gene abundance. Quantification of the non-redundant gene set was performed using the salmon software (parameters: –meta).
Differential analysis between paired samples was conducted using the trinityrnaseq software with DESeq2 (at least 2 replicates) and edgeR (no replicates), with the criteria for differential genes being |log2(FoldChange)|>1.5 and FDR<0.01. To further investigate whether the functional differences in gene abundance are concentrated in certain specific functional classifications, the R language package clusterProfiler was used for KEGG and GO functional enrichment analysis of differential genes. The statistical method for enrichment analysis typically employs hypergeometric testing to identify functions that are significantly enriched in differential genes relative to all annotated genes.
Kraken2 is a software for species annotation based on k-mer exact alignment, utilizing the most recent LCA voting results for rapid metagenomic DNA sequence species annotation. In this project, the NT database was selected as the reference data for Kraken2 annotation (parameter: –confidence 0.1), resulting in a species abundance table at the levels of phylum, class, order, family, genus, and species. Subsequently, species composition bar charts and species abundance clustering heatmaps were generated using the matplotlib package in Python and the pheatmap package in R.
Alpha diversity reflects the species abundance (richness) and species diversity of individual samples, with various metrics for measurement: ACE, Chao1, Shannon, and Simpson. The ACE and Chao1 indices measure species abundance, specifically the quantity of species; the Shannon and Simpson indices are used to assess species diversity, which is influenced by the abundance and evenness of species within the sample community. Given the same species abundance, a community with greater evenness among its species is considered to have higher diversity. A larger value of the Shannon or Simpson index indicates greater species diversity in the sample.
Beta diversity analysis primarily employs two algorithms, binary Jaccard and Bray-Curtis, to calculate the distance between samples, thereby obtaining the β values among the samples. These two algorithms are mainly divided into two categories: weighted (Bray-Curtis) and unweighted (Jaccard). Using the unweighted calculation method, the main comparison is the presence or absence of species, while the weighted method needs to consider both the presence or absence of species and the abundance of species. In general, if the β diversity between two groups is smaller, it indicates that the species composition of the two groups is more similar.
The Alpha diversity index and Beta diversity distance are analyzed using the diversity module in QIIME2. The differences in the alpha diversity index are tested using T-test (between two groups) and ANOVA (variance analysis, among multiple groups), and box plots are drawn using the matplotlib package in Python; The dilution curve, concentration index curve, rank abundance curve, species accumulation curve, PCA, PCoA, NMDS, and PLS-DA are all plotted using the R package ggplot2; The UPGMA clustering tree and ANOSIM box plot are drawn using the matplotlib package in Python.
Common statistical methods are divided into two types: parametric statistics and non-parametric statistics. Parametric statistics refer to statistical analysis methods where the overall distribution type is known, using sample indicators to infer overall parameters or conduct hypothesis testing; Non-parametric statistics refer to statistical methods that do not consider whether the overall distribution type is known, do not compare overall parameters, but only compare whether the positions of the overall distributions are the same.
ANOVA (Analysis of Variance) is also known as the F test, which is a parametric testing method. It is primarily used to test whether the means of multiple samples are equal, thereby determining the significance of the differences between the means of two or more samples. This analysis uses the stats method from the scipy package in Python for statistical testing.
The rank sum test is a non-parametric testing method. In this context, ‘rank’ refers to the order number, and the sum of these ranks is called the ‘rank sum’; the rank sum test uses the rank sum as a statistic for hypothesis testing. When encountering unknown overall distribution types, or known distribution types that do not conform to a normal distribution; or when certain variables may not be precisely measurable; and when variances are unequal, the rank sum test can be used for analysis. This analysis uses the stats method from the scipy package in Python for statistical testing.
LEfSe (Linear discriminant analysis Effect Size) is an analysis tool for discovering and interpreting biological markers (taxonomic units, pathways, genes) in high-dimensional data. It allows for comparisons between two or more groups, as well as comparative analysis between subgroups within a group, thereby identifying species with significant differences in abundance between groups (i.e., biomarkers). This analysis first uses the non-parametric Kruskal-Wallis rank-sum test to detect significant differences in species abundance between different groups, then employs the Wilcoxon rank-sum test to assess the consistency of the differences in the identified species across subgroups within the different groups, and finally applies linear discriminant analysis (LDA) to estimate the magnitude of the impact of each component (species) abundance on the differential effect.
The basic idea of MetagenomeSeq is to first standardize the data, then use a zero-inflated Gaussian distribution to address the effects of sequencing depth, and finally identify differences based on a linear model. It is primarily used for comparing differences between two groups of samples, and the consistency of sample sizes in each group does not affect the results. This analysis uses the fitFeatureModel method from the metagenomeSeq package in R.
Random Forest is a classic and efficient machine learning algorithm based on decision trees, classified as a non-linear classifier. It can deeply explore the complex non-linear interdependencies between variables, making it particularly suitable for microbial community data that often exhibit discrete and discontinuous distributions. Recent studies have demonstrated that this algorithm can effectively, robustly, and accurately classify microbial community samples. This analysis uses the RandomForestClassifier from the sklearn.ensemble package in Python, and plotting is done using the matplotlib package in Python;
Table 19 Summary of Software, Databases, and References
| Analysis content | Software/Database | Version | References or URLs |
| Data quality control | fastp | 0.23.2 | Chen S. Ultrafast one-pass FASTQ data preprocessing, quality control, and deduplication using fastp. Imeta. 2023;2(2):e107. https://github.com/OpenGene/fastp |
| Sequence alignment | minimap2 | 2.24 | Li H. Minimap2: pairwise alignment for nucleotide sequences. Bioinformatics. 2018;34(18):3094-3100. https://github.com/lh3/minimap2 |
| Sequence alignment | bowtie2 | 2.4.5 | Langmead B, Salzberg S. Fast gapped-read alignment with Bowtie 2. Nature Methods. 2012, 9:357-359. https://github.com/BenLangmead/bowtie2 |
| Sequence alignment | blast+ | 2.7.1+ | Camacho C, Coulouris G, Avagyan V, et al. BLAST+: architecture and applications. BMC Bioinformatics. 2009;10:421. Published 2009 Dec 15. https://blast.ncbi.nlm.nih.gov/Blast.cgi |
| Sequence alignment | hmmer | 3.3.2 | Finn RD, Clements J, Eddy SR. HMMER web server: interactive sequence similarity searching. Nucleic Acids Res. 2011;39(Web Server issue):W29-W37. https://github.com/EddyRivasLab/hmmer |
| Sequence alignment | samtools | 1.9 | Danecek P, Bonfield JK, Liddle J, et al. Twelve years of SAMtools and BCFtools. Gigascience. 2021 Feb 16;10(2):giab008. https://github.com/samtools/samtools |
| Sequence alignment | diamond | 2.0.15 | Buchfink B, Xie C, Huson DH. Fast and sensitive protein alignment using DIAMOND. Nat Methods. 2015;12(1):59-60. https://github.com/bbuchfink/diamond |
| Data error correction | Ratatosk | v0.7.6 | Holley, G., Beyter, D., Ingimundardottir, H. et al. Ratatosk: hybrid error correction of long reads enables accurate variant calling and assembly. Genome Biol 22, 28 (2021). https://github.com/DecodeGenetics/Ratatosk |
| Metagenome assembly | Flye | 2.9 | Kolmogorov M, Yuan J, Lin Y, et al. Assembly of long, error-prone reads using repeat graphs. Nat Biotechnol. 2019 May;37(5):540-546. https://github.com/fenderglass/Flye |
| Metagenome assembly | OPERA-MS | v0.9.0 | Bertrand D, Shaw J, Kalathiyappan M, et al. Hybrid metagenomic assembly enables high-resolution analysis of resistance determinants and mobile elements in human microbiomes. Nat Biotechnol. 2019 Aug;37(8):937-944. https://github.com/CSB5/OPERA-MS |
| Metagenome assembly | megahit | 1.2.9 | Li D, Liu CM, Luo R, Sadakane K, Lam TW. MEGAHIT: an ultra-fast single-node solution for large and complex metagenomics assembly via succinct de Bruijn graph. Bioinformatics. 2015;31(10):1674-1676. https://github.com/voutcn/megahit |
| Assembly error correction | pilon | 1.22 | Walker BJ, Abeel T, Shea T, et al. Pilon: an integrated tool for comprehensive microbial variant detection and genome assembly improvement. PLoS One. 2014;9(11):e112963. Published 2014 Nov 19. https://github.com/broadinstitute/pilon |
| Gene prediction | prokka | 1.1.6 | Seemann T. Prokka: rapid prokaryotic genome annotation. Bioinformatics. 2014;30(14):2068-2069. http://www.vicbioinformatics.com/software.prokka.shtml |
| Gene deduplication | CD-HIT | 4.8.1 | Huang Y, Niu B, Gao Y, et al. CD-HIT Suite: a web server for clustering and comparing biological sequences. Bioinformatics. 2010;26(5):680-682. https://github.com/weizhongli/cdhit |
| Functional component prediction | minced | 0.4.2 | Bland C, Ramsey TL, Sabree F, et al. CRISPR recognition tool (CRT): a tool for automatic detection of clustered regularly interspaced palindromic repeats. BMC Bioinformatics. 2007;8:209. Published 2007 Jun 18. https://github.com/ctSkennerton/minced.git |
| Functional component prediction | IslandPath-DIMOB | 1.0.6 | Hsiao W, Wan I, Jones SJ, et al. IslandPath: aiding detection of genomic islands in prokaryotes. Bioinformatics. 2003;19(3):418-420. https://github.com/brinkmanlab/islandpath |
| Functional component prediction | phispy | 4.2.21 | Akhter S, Aziz RK, Edwards RA. PhiSpy: a novel algorithm for finding prophages in bacterial genomes that combines similarity- and composition-based strategies. Nucleic Acids Res. 2012;40(16):e126. https://github.com/linsalrob/PhiSpy |
| Gene function annotation | Uniport | 2024-05-29 | UniProt Consortium. UniProt: the Universal Protein Knowledgebase in 2023. Nucleic Acids Res. 2023;51(D1):D523-D531. https://www.uniprot.org/ |
| Gene function annotation | Refseq | 2024-05-10 | https://www.ncbi.nlm.nih.gov/refseq/ |
| Gene function annotation | Pfam | 37 | https://pfam.xfam.org/ |
| Gene function annotation | TIGRFAMs | 15 | http://tigrfams.jcvi.org/cgi-bin/index.cgi |
| Gene function annotation | KEGG | 2024-05-27 | https://www.kegg.jp/kegg/ |
| Gene function annotation | Nr | 2024-02-07 | https://ftp.ncbi.nlm.nih.gov/blast/db/FASTA/ |
| Gene function annotation | eggNOG | 5.0 | Huerta-Cepas J, Szklarczyk D, Heller D, et al. eggNOG 5.0: a hierarchical, functionally and phylogenetically annotated orthology resource based on 5090 organisms and 2502 viruses. Nucleic Acids Res. 2019;47(D1):D309-D314. http://eggnog5.embl.de/#/app/home |
| Gene function annotation | ARDB | 1.1 | Liu B, Pop M. ARDB–Antibiotic Resistance Genes Database. Nucleic Acids Res. 2009;37(Database issue):D443-D447. ftp://ftp.cbcb.umd.edu/pub/data/ARDB/ |
| Gene function annotation | CAZy | dbCAN2 V12 | Lombard V, Golaconda Ramulu H, Drula E, Coutinho PM,et al. The carbohydrate-active enzymes database (CAZy) in 2013. Nucleic Acids Res. 2014;42(Database issue):D490-D495. http://www.cazy.org/ |
| Gene function annotation | PHI | 4.17 | Cuzick A, Seager J, Wood V, et al. A framework for community curation of interspecies interactions literature. Elife. 2023;12:e84658. Published 2023 Jul 4. doi:10.7554/eLife.84658 http://www.phi-base.org/ |
| Gene function annotation | CARD | 3.2.9 | Alcock BP, Huynh W, Chalil R, et al. CARD 2023: expanded curation, support for machine learning, and resistome prediction at the Comprehensive Antibiotic Resistance Database. Nucleic Acids Res. 2023;51(D1):D690-D699. http://arpcard.mcmaster.ca |
| Gene function annotation | rgi | 5.2.1 | Alcock BP, Huynh W, Chalil R, et al. CARD 2023: expanded curation, support for machine learning, and resistome prediction at the Comprehensive Antibiotic Resistance Database. Nucleic Acids Res. 2023;51(D1):D690-D699. https://github.com/arpcard/rgi |
| Gene function annotation | CYPED | 6 | Sirim D, Wagner F, Lisitsa A,et al. The cytochrome P450 engineering database: Integration of biochemical properties. BMC Biochem. 2009;10:27. Published 2009 Nov 12. http://www.cyped.uni-stuttgart.de/ |
| Gene function annotation | VFDB | 2024-06-28 | Liu B, Zheng D, Zhou S, et al. VFDB 2022: a general classification scheme for bacterial virulence factors. Nucleic Acids Res. 2022;50(D1):D912-D917. http://www.mgc.ac.cn/VFs/ |
| Gene function annotation | TCDB | 2024-06-26 | Saier MH, Reddy VS, Moreno-Hagelsieb G, et al. The Transporter Classification Database (TCDB): 2021 update. Nucleic Acids Res. 2021;49(D1):D461-D467. http://www.tcdb.org/ |
| Gene abundance analysis | salmon | 1.8.0 | Patro R, Duggal G, Love MI, et al. Salmon provides fast and bias-aware quantification of transcript expression. Nat Methods. 2017;14(4):417-419. https://github.com/COMBINE-lab/salmon |
| Differential gene analysis | DESeq2 | 1.30.1 | Love MI, Huber W, Anders S. Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2. Genome Biol. 2014;15(12):550. https://bioconductor.org/packages/release/bioc/html/DESeq2.html |
| Differential gene analysis | edgeR | 3.32.1 | McCarthy DJ, Chen Y, Smyth GK. Differential expression analysis of multifactor RNA-Seq experiments with respect to biological variation. Nucleic Acids Res. 2012 May;40(10):4288-97. https://bioconductor.org/packages/release/bioc/html/edgeR.html |
| Differential gene enrichment analysis | clusterProfiler | 4.5.0.992 | Wu T, Hu E, Xu S, et al. clusterProfiler 4.0: A universal enrichment tool for interpreting omics data. Innovation (Camb). 2021;2(3):100141. Published 2021 Jul 1. https://www.bioconductor.org/packages/release/bioc/html/clusterProfiler.html |
| Taxonomy annotation | kraken2 | 2.1.2 | Wood DE, Lu J, Langmead B. Improved metagenomic analysis with Kraken 2. Genome Biol. 2019 Nov 28;20(1):257. https://github.com/DerrickWood/kraken2 |
| Species Differential Analysis | metagenomeSeq | 1.36.0 | Paulson JN, Stine OC, Bravo HC, et al. Differential abundance analysis for microbial marker-gene surveys. Nat Methods. 2013;10(12):1200-1202. https://bioconductor.org/packages/release/bioc/html/metagenomeSeq.html |
| Species Differential Analysis | LEfSe | 1.1.2 | Segata N, Izard J, Waldron L, et al. Metagenomic biomarker discovery and explanation. Genome Biol. 2011;12(6):R60. https://github.com/SegataLab/lefse |
1、The provided analysis results directory contains a ‘readme.pdf’ file, which provides a detailed introduction to the content represented by each file. The uploaded result data files are primarily in text format (fa files, txt files, detail files, xls files, etc.). To view files on a Windows system, it is recommended to use Editplus or UltraEdit as text viewing programs, or to use PilotEdit Lite to open very large text files. On Unix or Linux systems, larger text files can be viewed using commands like less for smooth viewing.
2、The report file contains images in SVG format; SVG is a vector image format that can be scaled without loss of quality. To view files in SVG format, please install an SVG plugin (such as Adobe Illustrator software).
3、It is recommended to open the result file using professional text editors such as Excel or EditPlus.
Differential genes from different treatments can be validated through biological traits such as gene knockout and transgenic expression. Additionally, integrating metabolomics and other omics data can help study the physiological roles of microbial communities and the interactions between their metabolic products and functions, as well as various metabolic regulatory pathways involving microbial communities.
See the list of software and databases
Customer Service TEL 00852+60710119
Customer Service Email:service@sailgene.com
Company Website: http://www.sailgene.com
Company Address: UNIT 516 OF THE 5TH FLOOR OF BUILDING 11W, HONG KONG SCIENCE PARK