BInDER
  • Home
  • Assembly
    • Lecture QC reads
    • Introduction to Galaxy
    • Read QC and trimming
    • Raw read contamination check
    • Lecture assembly
    • Assembly (Short-read)
    • Assembly (Long-read)
    • Assembly (Hybrid)
    • Assembly QC
    • Assembly Visualisation
    • (Bonus) Sars Cov2 variant analysis
  • Annotation
    • Introduction
    • Data preparation
    • QC pre annotation
    • Structural annotation (Concept)
    • Structural annotation (Practical)
    • QC post annotation
    • Visualisation
    • Functional annotation (Concept)
    • Functional annotation (Practical)
    • AMR genes and virulence factors
  • Metabarcoding
    • Introduction to the study
    • 16S rRNA amplicon sequencing
    • Diversity Analysis
  • Pangenome and phylogenomics
  • PanExplorer
  • Shotgun Metagenomics
    • Lecture shotgun MG
    • Taxonomic profiling
    • MAG assembly and binning
  • Cheat sheets
    • Genome annotation tools
    • GFF/GTF formats
    • Visualisation
    • Source Code
    • Report a Bug

    On this page

    • Quality Check of a Genome Assembly Before Annotation
      • Foreword
      • Statistics
      • BUSCO
        • BUSCO using Bacteria lineage
        • BUSCO using Bacteria Enterobacteriaceae lineage
      • CheckM2

    Quality Check of a Genome Assembly Before Annotation

    Note

    Time: 30 min

    Objectives: Be able to check a reference assembly.

    Tools: seqkit, BUSCO, checkM2

    Related ressources : Galaxy Training!

    Foreword

    We won’t focus on how to build the best assembly here, which is an challenging task. Instead, we’ll check that the assembly you have is suitable for annotation. Running quality control ensures your genome is clean and reliable before moving on.

    Statistics

    We will start by generating some basic statistics about our genome assembly using seqkit. This will give us an overview of the assembly’s quality and characteristics. For example, we can check the total number of sequences, their lengths, GC content, and the presence of undefined bases. A fragmented genome assembly will typically have many short contigs, which can indicate issues with the assembly process or the quality of the input data. By examining these statistics, we can get an initial sense of the assembly’s reliability.

    • Search for the SeqKit statistics tool in Galaxy

    • Select your genome assembly.

    • Activate the Output all statistics option.

    • Run the tool to generate the statistics report.

    => Look at the result by clicking on on the SeqKit statistics line in your history on the right side.

    Caution

    What is the length of the assembly?
    Do you have any gap in your assembly?
    What is your N50 value?
    What is the GC content of your assembly?

    BUSCO

    BUSCO (Benchmarking Universal Single-Copy Orthologs) searches for sets of conserved genes that are expected to be present in nearly all genomes of a given lineage. The results indicate how many of these genes are complete, duplicated, fragmented, or missing (Simão et al. 2015).

    • Search for the BUSCO tool in Galaxy

    The full lineage for E. coli is:

    Lineage (full): cellular organisms; Bacteria; Pseudomonadati; Pseudomonadota; Gammaproteobacteria; Enterobacterales; Enterobacteriaceae; Escherichia; Escherichia coli

    BUSCO using Bacteria lineage

    In this first run we will use the Bacteria lineage to assess the completeness of our genome assembly.

    • Pay attention that you run BUSCO in genome mode.
    • Select the appropriate lineage for your genome assembly.
    • Run the tool to generate the BUSCO report.

    => Look at the result by clicking on on the Busco Short summary line in your history on the right side.

    CautionQuestion: Can you tell me how many BUSCO genes contains the data set used? And how many genome have been used to determine them?

    Number of genomes: 3130, number of BUSCOs: 116)

    CautionWhat is the Completeness of the assembly?

    C:98.3%[S:98.3%,D:0.0%],F:0.0%,M:1.7%,n:116,E:8.8%

    BUSCO using Bacteria Enterobacteriaceae lineage

    CautionQuestion: Can you tell me how many BUSCO genes contains the data set used? And how many genome have been used to determine them?

    number of genomes: 107, number of BUSCOs: 874

    CautionWhat is the Completeness of the assembly?

    C:100.0%[S:99.8%,D:0.2%],F:0.0%,M:0.0%,n:874,E:1.0%

    CautionDo you have an idea why the result is less good at Bacteria level while we are checking against less BUSCOs genes?

    This is inherent to the way BUSCO genes are selected. They have to be in at least 90% Of the genomes within the lineage to be considered as BUSCOs. So more species we have in a lineage less speci

    CheckM2

    CheckM2 is a machine-learning tool designed to assess the quality of metagenome-assembled genomes (MAGs) by estimating their completeness and contamination. First, it uses Prodigal to predict coding sequences and proteins, and it extracts general genomic features such as genome size, coding density, GC content, and contig N50. It also uses DIAMOND to compare predicted proteins against a reference database associated with KEGG Orthology functional annotations. These genomic and functional features are then used as inputs to machine-learning models trained to predict genome completeness and contamination. For example, the model can learn from genomes with known quality levels and use the relationships between their genomic features and their completeness or contamination to make predictions for new genomes. Therefore, unlike traditional approaches that rely heavily on specific marker genes, CheckM2 uses a broader range of genomic and functional information to assess genome quality.

    • Search for the CheckM2 tool in Galaxy

    • Run CheckM2 with default values on your assembly.

    => Look at the result by clicking on on the checkm2 Quality report line in your history on the right side.

    CautionWhat is the Completeness of the assembly?

    100.0

    CautionWhat is the contamination of the assembly?

    0.54

    Interestingly, it provides a first glimpse into the gene content of the assembly (via prodigal). But keep in mind that this is only a preliminary prediction and further annotation steps are necessary to obtain a comprehensive understanding of the gene content.

    CautionHow many genes were predicted?

    5139


    NoteThe Snail Plot

    Snail plots are badges of genome assembly quality.

    You can find an example of such interactive snail plot here.
    You can find a protocol to generate such plot via galaxy here. In principle, generating this plot requires just a single command line. However, the Galaxy implementation makes the process less straightforward, as it requires you to perform an additional, computationally intensive contamination analysis before generating the plot.

    example of a snail plot is shown below: