This repository contains the source code and data for the manuscript "An update of the Pteridophyte Phylogeny Group classification for extant ferns and lycophytes: PPG II" (submitted).
The Pteridophyte Phylogeny Group (PPG) is an international collaborative effort to develop a comprehensive and phylogenetically-based classification of ferns and lycophytes. This repository contains all code and data needed to reproduce the manuscript describing PPG II, an updated classification building on PPG I (2016).
ppg2_ms.Qmd: Main manuscript file (Quarto format)fig_s1.qmd,table_s1.qmd: Supplementary materialsR/: R code for data processing and analysisfunctions.R: Custom functions for taxonomy processing, plotting, and phylogenetic tree manipulationpackages.R: Package dependencies
data/: Input data filescompare_ppg_wf_2025-12-21.csv: Comparison between PPG II and World Fernsppg2_author_list.csv: List of manuscript authorsppg_comments.csv: Comments and notes for specific taxappg_issues_edited.csv: Manually categorized taxonomic proposalsppgi_taxonomy_original.csv: Original PPG I classification (2016)species_count_updates.csv: Manual corrections to species countstable_uncertainty.csv: Descriptions of uncertain phylogenetic nodeswf_taxa_count.csv: Taxon counts from World Ferns database
tests/: Unit tests for data validation_targets.R: Main workflow orchestration using thetargetspackage_targets_pre.R: Pre-workflow for generating data files from raw data (not all raw data made public due to personally identifiable information)images/: Image files used in the manuscript (not figures produced by analysis)renv.lock: Package dependency specification for reproducibility
This project uses the targets
package for reproducible workflow management. The workflow automatically:
- Downloads the latest PPG taxonomy from the PPG repository
- Fetches and processes taxonomic proposals from GitHub Issues
- Validates taxonomic changes against the previous classification
- Generates figures and tables
- Renders the manuscript
Once the workflow has successfully finished, the following files should be produced:
ppg2_ms.docx: Manuscript filefig_1.pdf: Figure 1fig_2.pdf: Figure 2fig_s1.pdf: Figure S1table_s1.pdf: Table S1
All R package dependencies are managed with renv and recorded in
renv.lock.
To reproduce the analysis and manuscript:
# Install renv if needed
install.packages("renv")
# Restore the package environment
renv::restore()- Run the workflow:
# Run the workflow
targets::tar_make()This repository contains the manuscript code. For taxonomic proposals and discussions, please visit the main PPG repository.
The code in this repository is licensed under the MIT License. Please cite the published manuscript when using this work.
This is a collaborative work by the Pteridophyte Phylogeny Group. See the manuscript for the complete author list.
Citation information will be added upon publication.
For questions about the manuscript or code, please open an issue in this repository.