Last updated: 2025-02-27
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 96f09ef. 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: analysis/.DS_Store
Ignored: analysis/.Rhistory
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/davidO/.DS_Store
Ignored: data/DEG_results/Bulk_RNAseq/gregaria/.DS_Store
Ignored: data/DEG_results/Bulk_RNAseq/nitens/.DS_Store
Ignored: data/DEG_results/Bulk_RNAseq/piceifrons/.DS_Store
Ignored: data/DEG_results/RNAi/.DS_Store
Ignored: data/DEG_results/RNAi/All/.DS_Store
Ignored: data/DEG_results/RNAi/All_control/.DS_Store
Ignored: data/DEG_results/RNAi/All_no_rRNA/.DS_Store
Ignored: data/DEG_results/RNAi/Head/.DS_Store
Ignored: data/DEG_results/RNAi/Head_control/.DS_Store
Ignored: data/DEG_results/RNAi/Head_no_rRNA/.DS_Store
Ignored: data/DEG_results/RNAi/Thorax/.DS_Store
Ignored: data/DEG_results/RNAi/Thorax_no_rRNA/.DS_Store
Ignored: data/DEG_results/gregaria/
Ignored: data/DEG_results/single_cell/.DS_Store
Ignored: data/WGCNA/.DS_Store
Ignored: data/WGCNA/input/.DS_Store
Ignored: data/WGCNA/input/Bulk_RNAseq/.DS_Store
Ignored: data/WGCNA/output/
Ignored: data/behavioral_data/.DS_Store
Ignored: data/behavioral_data/Raw_data/.DS_Store
Ignored: data/custom_sgregaria_orgdb/.DS_Store
Ignored: data/list/.DS_Store
Ignored: data/list/Bulk_RNAseq/.DS_Store
Ignored: data/list/GO_Annotations/.DS_Store
Ignored: data/orthofinder/.DS_Store
Ignored: data/orthofinder/Polyneoptera/.DS_Store
Ignored: data/orthofinder/Polyneoptera/Results_I2/.DS_Store
Ignored: data/orthofinder/Polyneoptera/Results_I2/Orthogroups/.DS_Store
Ignored: data/orthofinder/Polyneoptera/Results_I5/.DS_Store
Ignored: data/orthofinder/Polyneoptera/Results_I5/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/orthofinder/Schistocerca/Results_I5/.DS_Store
Ignored: data/orthofinder/Schistocerca/Results_I5/Orthogroups/.DS_Store
Ignored: data/overlap/.DS_Store
Ignored: data/overlap/Bulk_RNAseq/.DS_Store
Ignored: data/overlap/Bulk_RNAseq/cancellata/
Ignored: data/readcounts/.DS_Store
Ignored: data/readcounts/Bulk_RNAseq/.DS_Store
Ignored: data/readcounts/RNAi/.DS_Store
Untracked files:
Untracked: data/RefSeq/
Untracked: data/list/RNAi/Head_RNAi_noninjectedsample_list2.csv
Unstaged changes:
Modified: data/DEG_results/RNAi/Head/UNCH_vs_GFP/volcano_plot_UNCH_vs_GFP.tiff
Modified: data/DEG_results/RNAi/Head_no_rRNA/UNCH_vs_GFP/volcano_plot_UNCH_vs_GFP.tiff
Modified: data/readcounts/Bulk_RNAseq/03-gregaria-DESeq2/SGRE-HEAD-CRD-1_MERGE_counts.txt
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/1_workenvs-prep.Rmd) and
HTML (docs/1_workenvs-prep.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 |
|---|---|---|---|---|
| Rmd | faf2db3 | Maeva TECHER | 2025-01-13 | update markdown |
| html | faf2db3 | Maeva TECHER | 2025-01-13 | update markdown |
| html | 3fa8e62 | Maeva TECHER | 2024-11-09 | updated analysis |
| html | edb70fe | Maeva TECHER | 2024-11-08 | overlap and deg results created |
| html | ba35b82 | Maeva A. TECHER | 2024-06-20 | Build site. |
| html | 0837617 | Maeva A. TECHER | 2024-01-30 | Build site. |
| html | f701a01 | Maeva A. TECHER | 2024-01-30 | reupdate |
| html | 3b49b64 | Maeva A. TECHER | 2024-01-30 | Build site. |
| Rmd | 28f2c7c | Maeva A. TECHER | 2024-01-30 | wflow_publish("analysis/1_workenvs-prep.Rmd") |
| html | 60a133c | Maeva A. TECHER | 2024-01-24 | Build site. |
| html | 1b09cbe | Maeva A. TECHER | 2024-01-24 | remove |
| html | 2774ad8 | Maeva A. TECHER | 2024-01-24 | Build site. |
| Rmd | f9ff391 | Maeva A. TECHER | 2024-01-24 | wflow_publish("analysis/1_workenvs-prep.Rmd") |
| Rmd | b195f57 | Maeva A. TECHER | 2024-01-24 | refresh |
| html | b195f57 | Maeva A. TECHER | 2024-01-24 | refresh |
| html | 34a9f25 | Maeva A. TECHER | 2023-12-18 | Build site. |
| Rmd | 53877fa | Maeva A. TECHER | 2023-12-18 | add pages |
| Path | Purpose |
|---|---|
/scratch/group/songlab/maeva/refgenomes/locust-complete |
Reference genome, annotation and index |
/scratch/group/songlab/maeva/headthor-locusts-rna |
Working repository |
/scratch/group/songlab/maeva/headthor-locusts-rna/{species}/workflow |
Location of the Snakemake pipeline |
/scratch/group/songlab/maeva/headthor-locusts-rna/{species}/data/reads |
Raw FASTQ.GZ files |
/scratch/group/songlab/maeva/headthor-locusts-rna/{species}/data/list |
Metadata and list files |
/scratch/group/songlab/maeva/headthor-locusts-rna/{species}/data/kaiju |
Kaiju database and output |
/scratch/group/songlab/maeva/headthor-locusts-rna/{species}/data/trimming |
Trimmed FASTQ files |
/scratch/group/songlab/maeva/headthor-locusts-rna/{species}/data/alignment/STAR |
Output from STAR |
/scratch/group/songlab/maeva/headthor-locusts-rna/{species}/data/analysis/DESeq2 |
R analysis (DGE) |
We use a Snakemake pipeline for each species. Therefore, it is essential to verify that each required software is installed and accessible. This can be done through various methods: 1) locally (e.g., cloned from GitHub or installed with admin access), 2) as a HPRC cluster module on the Grace cluster at Texas A&M University or 3) via a conda environment.

We coded our Snakemake pipeline by launching small, individual jobs, allowing us to tailor each cluster parameter for the best memory and time efficiency.
To ease the indexing of our files and folders, we generate some
shared parameters which will be helpful in the future:
1) A reference genome directory path REFdir
2) An output directory path OUTdir
3) A list named as LOCUSTS containing sample base name
referred as locust
### SET DIRECTORY PATHS FOR REFERENCE AND OUTPUT DATA
REFdir = "/scratch/group/songlab/maeva/refgenomes"
OUTdir = "/scratch/group/songlab/maeva/headthor-locusts-rna/data"
### SAMPLES LIST AND OTHER PARAMETERS
LOCUSTS, = glob_wildcards(OUTdir + "/reads/{locust}_1.fastq.gz")
print(LOCUSTS)
Links to each software to add in the future
add what to install on the Macpro tower e.g., we install a conda environment called rna-seq
On Grace, each module may requires some dependencies, which is why we
need to ensure they will be loaded together. For this we use the
function module spider [targeted software] w/o the
version.
Quick notes for necessary
modules loading:
srun --ntasks 1 --cpus-per-task 8 --mem 30G --time 01:00:00 --pty bash
module load GCC/11.2.0 OpenMPI/4.1.1 snakemake/6.10.0 Biopython/1.79
module load Trimmomatic/0.39-Java-11
module load FastQC/0.11.9-Java-11
module load GCC/12.2.0 STAR/2.7.10b
We are extremely grateful for scientists that made their hard-worked
pipelines and codes available to streamline to processing of annotated
genomes to selection analysis. We used and modified the amazingly
curated pipeline mbarkdull/FormicidaeMolecularEvolution:
v1.0.0-beta made by Megan
Barkadull, Cornell for the paper on ant
worker reproduction and caste polymorphism.
Usage: Longest isoform, Orthofinder, HyPhy,
InterProScan annotation
How to launch R in HPRC:
ml GCC/12.2.0 OpenMPI/4.1.4 R_tamu/4.3.1
export R_LIBS=$SCRATCH/R_LIBS_USER/
CRAN
data.table: https://cran.r-project.org/package=data.table
dplyr: https://cran.r-project.org/package=dplyr
reshape2: https://cran.r-project.org/package=reshape2
ggplot2: https://cran.r-project.org/package=ggplot2
ggrepel: https://cran.r-project.org/package=ggrepel
Bioconductor
DESeq2: https://bioconductor.org/packages/DESeq2/
apeglm: https://bioconductor.org/packages/apeglm/
EnhancedVolcano: https://bioconductor.org/packages/EnhancedVolcano/
edgeR: https://www.bioconductor.org/packages/edgeR/
sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: aarch64-apple-darwin20
Running under: macOS Sequoia 15.3
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
other attached packages:
[1] workflowr_1.7.1
loaded via a namespace (and not attached):
[1] vctrs_0.6.5 httr_1.4.7 cli_3.6.4 knitr_1.49
[5] rlang_1.1.5 xfun_0.51 stringi_1.8.4 processx_3.8.6
[9] promises_1.3.2 jsonlite_1.9.0 glue_1.8.0 rprojroot_2.0.4
[13] git2r_0.35.0 htmltools_0.5.8.1 httpuv_1.6.15 ps_1.9.0
[17] sass_0.4.9 rmarkdown_2.29 jquerylib_0.1.4 tibble_3.2.1
[21] evaluate_1.0.3 fastmap_1.2.0 yaml_2.3.10 lifecycle_1.0.4
[25] whisker_0.4.1 stringr_1.5.1 compiler_4.4.2 fs_1.6.5
[29] pkgconfig_2.0.3 Rcpp_1.0.14 rstudioapi_0.17.1 later_1.4.1
[33] digest_0.6.37 R6_2.6.1 pillar_1.10.1 callr_3.7.6
[37] magrittr_2.0.3 bslib_0.9.0 tools_4.4.2 cachem_1.1.0
[41] getPass_0.2-4