This repository contains scripts and notes from my internship with the Molecular Systems Evolution research group of Prof. J. Dutheil at the Max Planck Institute for evolutionary Biology in spring 2025.
- Create a genome alignment of Synechococcus genomes to find out if they can be considered a population.
- Investiage linkage equilibrium/ independent/non-independent recombination
- Are there geographic groups? Separate dataset and use groups to invesitage adaptive evolution.
Full protocol is on gitlab!
get it from apt
was installed on MPI server; tried to install myself with little success
install Bio++ libraries: bpp-core, bpp-seq, bpp-phyl, bpp-popgen, bpp-suite and maffilter from git repos
install aster
Compare r1 and r2 trees using phylo.io
Genome alignment tree reproduces published phylogeny fairily well, no obvious connection between phylogeny, temperature or geography
Add supports with bpp consense > pick 2 possible populations with low internal support values:
- POP1:WH8102 to A1840 , 8 members
- POP2:TAK9802 to PROS_U_1 , 10 members
at 25kB is the point at which the decline becomes minimal = distance at which 2 SNPs in the genome can be considered independent (= no linkage) and are informative for population genomics methods
keep only biallelic SNPs that are independent based on LD -> PLINK -> smartPCA
Pop2 PCA 1 = phylogeny
In both cases, case 1 population is most likely
- what is the rate of adaptive mutations
- apply phylostratigraphy approaches to get a measure of gene age for shared parameter estimation
- use FastDFE
- SFS: Site frequency spectrum
- related to the SNPs; how common they are across the different input species
- selected = nonsynonymous sites
- neutral = synonymous sites
- Parameter estimates = probability distribution of the selection coefficients of mutations at selected sites
- Sb: average (population-scaled) strength of beneficial mutations
- Sd: average (population-scaled) strength of deleterious mutations
- pb: probability of a mutation being beneficial
- e: ancestral misidentification parameter
- b: shape of the gamma distribution
- Function a: expected proportion of beneficial nonsynonymous substitutions
Population 1:
PB=0 --> probability of benefitial mutation =0. Pop1 is unsuitable
Population 2:
More suitable parameters for further investigations! Very weak benefitial mutations?
-
Installing diamond is easy
-
Blast DB download keeps being corrupted; worked on 4th attempt
-
Idea: exclude Cyanobacteria from hits, give minimal E parameter >> genes that are in the outputfile are older then speciation of synechococcus
- Problem: ca 1/10 hits is not completely annotated; only has an ID but no organism info
-
Rerun w NCBI blast
- even less annotation beyond id
-
Run Diamond blast wo exclusion critera
- parse w python script genes that have only annotation in cyanobacteria <> rest
Small difference in the estimated parameters (Sd) can be observed > repeat with more strata!
- misstake in the phylogeny; should repeat the categorisation!
- possible misstakes in running fastDFE; WIP
















