DOI: 10.5281/zenodo.7942837
title: Data and code for 'Pseudogenes as a neutral reference for detecting selection in prokaryotic pangenomes'

description: This repository contains the code and files for reproducing the analyses and results reported in 'Pseudogenes as a neutral reference for detecting selection in prokaryotic pangenomes' by Gavin M. Douglas, W. Ford Doolittle, and B. Jesse Shapiro. File organization and descriptions: <strong>code/</strong> - Contains GitHub repository releases of code used in manuscript (the other folders contain datafiles only). This code is provided here as well as on GitHub to ensure long-term access. <strong>handy_pop_gen-1.1.0/</strong> - release v1.1.0 of the convenience repository (used for specific data processing and analysis steps referred to in the manuscript). <strong>pangenome_pseudogene_null-1.0.0/ </strong>- Main code repository for manuscript. <strong>broad_pangenome_analysis/</strong> <strong>element_info/element_counts.tsv.gz</strong> - Counts of (filtered) pseudogenes and intact genes called per genome accession. <strong>element_info/gene_sizes.tsv.gz</strong> - Gene sizes in base-pairs. <strong>element_info/pseudogene_sizes.tsv.gz</strong> - Filtered pseudogene sizes in base-pairs. <strong>element_info/element_percent_coverage/*tsv.gz</strong> - Tables containing the percent genome coverage of genes and pseudogenes, by accession and averaged over accessions per species separately. <strong>example_Mycoplasmopsis_bovis_panaroo_output.csv.gz</strong> - Panaroo output table for <em>Mycoplasmopsis bovis</em>, which was used for an example. Corresponds to the <em>gene_presence_absence.csv</em> file in the raw Panaroo output. <strong>focal_and_non.focal_full_to_short.tsv.gz</strong> - Mapfile of full to short (and unique) species ids used in analysis. Primarily to include species ids in cluster names without making them unnecessarily long. <strong>genome_info/accessions.tsv.gz</strong> - Genome accessions used for broad pangenome analysis (note that not all genome accessions could be downloaded [and were ignored], which is indicated in the "could_download" column). <strong>genome_info/genome_sizes.tsv.gz</strong> - Sizes of all genomes used for the broad pangenome analysis. <strong>model_output/pangenome_linear_models.rds</strong> - R Data Serialization files containing the output of R linear model objects (generated by lm and provided as an R list object). There are separate elements in the list for the mean number of genes, genomic fluidity, percentage singletons (si), and si/sp. <strong>model_output/linear_model_coef.tsv.gz</strong> - Coefficient summary table for all linear models. <strong>pangenome_and_related_metrics.tsv.gz</strong> - Metrics used for broad pangenome analysis across 670 prokaryotic species. Note that this table was filtered down to 668 species after excluding those with &lt; 9 genomes. <strong>pangenome_and_related_metrics_filt.tsv.gz</strong> - Filtered table, as described above. <strong>taxonomy.tsv.gz</strong> - Taxonomy for all species used for this analysis, taken from GTDB. Row names are species names. <strong>indepth_10_species_analysis/</strong> <strong>cluster_breakdown_tables/</strong> - Folder containing tables providing breakdown of how clusters are distributed by element type, pangenome partition, and species. Provided for easy plotting. <strong>cluster_member_breakdown.tsv.gz </strong>- Table providing information on each element (called pseudogenes and intact genes) and provides information such as what cluster they are part of, what species and genome accession they are found in, etc. <strong>cluster_types.rds</strong> - R Data Serialization file containing R list providing breakdown of all clusters into categories (intact/pseudogene/mixed, where mixed means containing both pseudogene and intact elements). <strong>COG_enrichment_results/ultra.cloud-COG-gene-enrichments.tsv.gz</strong> - Output file with enrichment test summaries for COG IDs in significant COG categories, which was run for the ultra-cloud pangenome partition model only. <strong>element_glmm_input.tsv.gz </strong>- Table containing all information used for fitting generalized linear mixed models. <strong>focal_species.txt</strong> - Names of species used for the in-depth analysis. <strong>genome_info/ </strong>- Folder containing the genome accessions (and the corresponding genome sizes) for all ten analyzed species. <strong>glmm_output/</strong> - Folder containing R Data Serialization files containing output R objects after fitting generalized linear mixed models (only ultra-rare files are present, due to file size constraints). <strong>per_genome_element.type_percent_coverages.rds</strong> - R Data Serialization file containing R list providing the percent coverage by intact genes vs pseudogenes per accession (nested by species)