Last updated: 2025-09-04

Checks: 7 0

Knit directory: locust-comparative-genomics/

This reproducible R Markdown analysis was created with workflowr (version 1.7.1). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


Great! Since the R Markdown file has been committed to the Git repository, you know the exact version of the code that produced these results.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

The command set.seed(20221025) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility.

The results in this page were generated with repository version 6367e32. See the Past versions tab to see a history of the changes made to the R Markdown and HTML files.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .DS_Store
    Ignored:    .Rhistory
    Ignored:    analysis/.DS_Store
    Ignored:    analysis/.Rhistory
    Ignored:    analysis/figure/
    Ignored:    code/.DS_Store
    Ignored:    code/scripts/.DS_Store
    Ignored:    code/scripts/pal2nal.v14/.DS_Store
    Ignored:    data/.DS_Store
    Ignored:    data/DEG_results/.DS_Store
    Ignored:    data/DEG_results/Bulk_RNAseq/.DS_Store
    Ignored:    data/DEG_results/Bulk_RNAseq/americana/.DS_Store
    Ignored:    data/DEG_results/Bulk_RNAseq/cancellata/.DS_Store
    Ignored:    data/DEG_results/Bulk_RNAseq/cubense/.DS_Store
    Ignored:    data/DEG_results/Bulk_RNAseq/gregaria/.DS_Store
    Ignored:    data/DEG_results/Bulk_RNAseq/nitens/.DS_Store
    Ignored:    data/HYPHY_selection/.DS_Store
    Ignored:    data/HYPHY_selection/ParsedABSRELResults_unlabeled/
    Ignored:    data/HYPHY_selection/pathway_enrichment/.DS_Store
    Ignored:    data/HYPHY_selection/pathway_enrichment/americana/
    Ignored:    data/HYPHY_selection/pathway_enrichment/cancellata/
    Ignored:    data/HYPHY_selection/pathway_enrichment/cubense/
    Ignored:    data/HYPHY_selection/pathway_enrichment/nitens/
    Ignored:    data/HYPHY_selection/pathway_enrichment/piceifrons/
    Ignored:    data/WGCNA/.DS_Store
    Ignored:    data/WGCNA/input/.DS_Store
    Ignored:    data/WGCNA/input/Bulk_RNAseq/.DS_Store
    Ignored:    data/WGCNA/output/.DS_Store
    Ignored:    data/WGCNA/output/Bulk_RNAseq/.DS_Store
    Ignored:    data/WGCNA/output/Bulk_RNAseq/gregaria/.DS_Store
    Ignored:    data/behavioral_data/.DS_Store
    Ignored:    data/behavioral_data/Raw_data/.DS_Store
    Ignored:    data/cafe5_results/.DS_Store
    Ignored:    data/list/.DS_Store
    Ignored:    data/list/Bulk_RNAseq/.DS_Store
    Ignored:    data/list/GO_Annotations/.DS_Store
    Ignored:    data/list/GO_Annotations/DesertLocustR/.DS_Store
    Ignored:    data/list/excluded_loci/.DS_Store
    Ignored:    data/orthofinder/.DS_Store
    Ignored:    data/orthofinder/Polyneoptera/.DS_Store
    Ignored:    data/orthofinder/Polyneoptera/Results_I2_iqtree/.DS_Store
    Ignored:    data/orthofinder/Polyneoptera/Results_I2_iqtree/Orthogroups/.DS_Store
    Ignored:    data/orthofinder/Polyneoptera/Results_I2_withDaust/.DS_Store
    Ignored:    data/orthofinder/Polyneoptera/Results_I2_withDaust/Orthogroups/.DS_Store
    Ignored:    data/orthofinder/Schistocerca/.DS_Store
    Ignored:    data/orthofinder/Schistocerca/Results_I2/.DS_Store
    Ignored:    data/orthofinder/Schistocerca/Results_I2/Orthogroups/.DS_Store
    Ignored:    data/overlap/.DS_Store
    Ignored:    data/pathway_enrichment/.DS_Store
    Ignored:    data/pathway_enrichment/OLD/.DS_Store
    Ignored:    data/pathway_enrichment/OLD/custom_sgregaria_orgdb/.DS_Store
    Ignored:    data/pathway_enrichment/REVIGO_results/.DS_Store
    Ignored:    data/pathway_enrichment/REVIGO_results/BP/.DS_Store
    Ignored:    data/pathway_enrichment/REVIGO_results/CC/.DS_Store
    Ignored:    data/pathway_enrichment/REVIGO_results/MF/.DS_Store
    Ignored:    data/pathway_enrichment/cancellata/.DS_Store
    Ignored:    data/pathway_enrichment/gregaria/.DS_Store
    Ignored:    data/pathway_enrichment/nitens/Thorax/
    Ignored:    data/pathway_enrichment/piceifrons/.DS_Store
    Ignored:    data/readcounts/.DS_Store
    Ignored:    data/readcounts/Bulk_RNAseq/.DS_Store
    Ignored:    data/readcounts/RNAi/.DS_Store

Untracked files:
    Untracked:  data/RefSeq/

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


These are the previous versions of the repository in which changes were made to the R Markdown (analysis/2_genome_quality.Rmd) and HTML (docs/2_genome_quality.html) files. If you’ve configured a remote Git repository (see ?wflow_git_remote), click on the hyperlinks in the table below to view the files as they were in that past version.

File Version Author Date Message
html 4d8d36e Maeva TECHER 2025-07-01 adding files
html a2d2955 Maeva TECHER 2025-07-01 Updated wgcna and compiling
html 47ee034 Maeva TECHER 2025-06-05 Build site.
Rmd f496e65 Maeva TECHER 2025-06-03 update
html f496e65 Maeva TECHER 2025-06-03 update
Rmd 4e391c3 Maeva TECHER 2025-05-30 add new analysis orthology, synteny
html 4e391c3 Maeva TECHER 2025-05-30 add new analysis orthology, synteny

1. BUSCO assessment

To test whether core genes found in Insecta are present in the genomes that we will be analyzing, we run BUSCO to assess our Polyneoptera genome quality as recommended.

We ran in protein mode using the protein files XXX_proteins.faa downloaded from NCBI and stored in the folder 1_RawData using the following custom script for GRACE busco_assess.sh:

#!/bin/bash

#SBATCH --job-name=busco_all_proteins
#SBATCH --time=3-00:00:00
#SBATCH --cpus-per-task=48
#SBATCH --mem=250G
#SBATCH --ntasks=1
#SBATCH --output=busco_allproteins.%j.out
#SBATCH --error=busco_allproteins.%j.err

# Load required modules
module purge
ml GCC/12.2.0 OpenMPI/4.1.4 BUSCO/5.7.1 WebProxy

# Set environment variable for NumExpr to avoid "safe limit of 8"
export NUMEXPR_MAX_THREADS=$SLURM_CPUS_PER_TASK

# Set lineage and mode
LINEAGE=insecta_odb10
MODE=protein

# Set directories
INPUT_DIR=$PWD
OUTPUT_DIR=$PWD/busco_results
mkdir -p $OUTPUT_DIR

# Loop through all *_proteins.faa files
for FILE in ${INPUT_DIR}/*_proteins.faa; do
    BASENAME=$(basename "$FILE" _proteins.faa)
    echo "🔎 Starting BUSCO for: $BASENAME"

    busco -i "$FILE" \
          -o "${BASENAME}_busco" \
          -l "$LINEAGE" \
          -m "$MODE" \
          -c $SLURM_CPUS_PER_TASK \
          --out_path "$OUTPUT_DIR" \
          --force

    echo "✅ BUSCO run complete for $FILE"
done

echo "🎉 All BUSCO protein assessments completed!"

Just launch the script with:

#chmod 777 busco_assess.sh
sbatch busco_assess.sh

For 13 genomes, and using 48 CPUs, the run finished in ~5 hours and only used ~9 Gb of memory. We extracted the results from each species folder busco_results/{SPECIES}_busco/short_summary.specific.insecta_odb10.{SPECIES}_busco.txt.

2. Genome quality with Blobtools

We make snail plot with blobtools using the following commands. Unfortunately, because blobtools does not support indexing with .csi and our contigs are over 512 Mbp, we only plotted the GC, and length of our scaffolds and not the coverage.

First we

srun --ntasks 1 --cpus-per-task 24 --mem 50G --time 05:00:00 --pty bash

ml WebProxy 

# Check that the singularity container is properly installed
singularity exec /sw/hprc/sw/bio/containers/blobtoolkit/blobtoolkit_4.4.5.sif blobtools --help

# Create a BlobDir for each species
singularity exec /sw/hprc/sw/bio/containers/blobtoolkit/blobtoolkit_4.4.5.sif blobtools create --fasta /scratch/group/songlab/maeva/psmc-schistocerca/reference/cancellata.fasta BlobDir_cancellata

# Add mapping coverage using bwa mapping we 
# Does not plot on the snail plot
#singularity exec /sw/hprc/sw/bio/containers/blobtoolkit/blobtoolkit_4.4.5.sif blobtools add --cov ../results/bam/americana.sorted.bam BlobDir_americana

# Make a snail plot
singularity exec /sw/hprc/sw/bio/containers/blobtoolkit/blobtoolkit_4.4.5.sif blobtools view --view snail --plot BlobDir_cancellata

Example of snailplot obtained for S. cancellata



sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.6.1

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRblas.0.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: Asia/Tokyo
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
 [1] vctrs_0.6.5       cli_3.6.5         knitr_1.50        rlang_1.1.6      
 [5] xfun_0.52         stringi_1.8.7     promises_1.3.3    jsonlite_2.0.0   
 [9] workflowr_1.7.1   glue_1.8.0        rprojroot_2.0.4   git2r_0.36.2     
[13] htmltools_0.5.8.1 httpuv_1.6.16     sass_0.4.10       rmarkdown_2.29   
[17] tibble_3.3.0      evaluate_1.0.4    jquerylib_0.1.4   fastmap_1.2.0    
[21] yaml_2.3.10       lifecycle_1.0.4   whisker_0.4.1     stringr_1.5.1    
[25] compiler_4.4.2    fs_1.6.6          pkgconfig_2.0.3   Rcpp_1.0.14      
[29] rstudioapi_0.17.1 later_1.4.2       digest_0.6.37     R6_2.6.1         
[33] pillar_1.10.2     magrittr_2.0.3    bslib_0.9.0       tools_4.4.2      
[37] cachem_1.1.0