Package: FossilSim 2.4.1

FossilSim: Simulation and Plots for Fossil and Taxonomy Data

Simulating and plotting taxonomy and fossil data on phylogenetic trees under mechanistic models of speciation, preservation and sampling.

Authors:Rachel Warnock [aut, cph], Joelle Barido-Sottani [aut, cre, cph], Walker Pett [aut, cph], O'Reilly Joseph [aut, cph], Ugnė Stolz [aut, cph]

FossilSim_2.4.1.tar.gz
FossilSim_2.4.1.zip(r-4.5)FossilSim_2.4.1.zip(r-4.4)FossilSim_2.4.1.zip(r-4.3)
FossilSim_2.4.1.tgz(r-4.4-any)FossilSim_2.4.1.tgz(r-4.3-any)
FossilSim_2.4.1.tar.gz(r-4.5-noble)FossilSim_2.4.1.tar.gz(r-4.4-noble)
FossilSim_2.4.1.tgz(r-4.4-emscripten)FossilSim_2.4.1.tgz(r-4.3-emscripten)
FossilSim.pdf |FossilSim.html
FossilSim/json (API)
NEWS

# Install 'FossilSim' in R:
install.packages('FossilSim', repos = c('https://bjoelle.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

5.24 score 1 packages 65 scripts 516 downloads 49 exports 51 dependencies

Last updated 2 months agofrom:7ccf72314d. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 02 2024
R-4.5-winOKNov 02 2024
R-4.5-linuxOKNov 02 2024
R-4.4-winOKNov 02 2024
R-4.4-macOKNov 02 2024
R-4.3-winOKNov 02 2024
R-4.3-macOKNov 02 2024

Exports:as.fossilsas.taxonomybeast.fbd.formatcount.fossilscount.fossils.binnedfbdrangefossilsfossils.to.BEAST.constraintsfossils.to.BEAST.start.treefossils.to.paleotree.recordfossils.to.pyrateget_fbdrange_from_fileget.tip.descsis.fossilsis.taxonomypaleotree.record.to.fossilsplace.fossilsprune.fossil.tipsprune.fossilsrangeplot.asymmetricreconcile.fossils.taxonomyreconstructed.tree.fossils.objectsremove.stem.fossilsremove.stem.lineagessampled.tree.from.combinedSAtreeSAtree.from.fossilssim.anagenetic.speciessim.cryptic.speciessim.extant.samplessim.fbd.agesim.fbd.rateshift.taxasim.fbd.taxasim.fossils.environmentsim.fossils.intervalssim.fossils.poissonsim.gradientsim.interval.agessim.taxonomysim.tip.samplessim.trait.valuesspecies.endspecies.startsubsample.fossils.oldestsubsample.fossils.oldest.and.youngestsubsample.fossils.uniformsubsample.fossils.youngesttaxonomytree.max

Dependencies:apeaplotclicolorspacecpp11digestdplyrfansifarverfsgenericsggfunggplot2ggplotifyggtreegluegridGraphicsgtableisobandjsonlitelabelinglatticelazyevallifecyclemagrittrMASSMatrixmgcvmunsellnlmepatchworkpillarpkgconfigpurrrR6RColorBrewerRcpprlangscalesstringistringrtibbletidyrtidyselecttidytreetreeioutf8vctrsviridisLitewithryulab.utils

Converting from and to paleotree format

Rendered frompaleotree.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2018-11-16
Started: 2018-07-28

Exporting sampled ancestor trees

Rendered fromSAtree.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2022-04-19
Started: 2018-07-28

The FossilSim package

Rendered fromintro.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2021-04-05
Started: 2018-07-28

Simulating fossils

Rendered fromfossils.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2018-11-16
Started: 2018-07-28

Simulating taxonomy

Rendered fromtaxonomy.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2018-11-16
Started: 2018-07-28

Simulating trees from the fossilized birth-death process

Rendered fromsimfbd.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2019-02-21
Started: 2018-07-28

Readme and manuals

Help Manual

Help pageTopics
Transforms a tree and fossils into a sampled tree in beast-usable format and writes it in Newick format. Designed to work with FBD.beast.fbd.format
Count the total number of fossilscount.fossils
Count the total number of fossils per intervalcount.fossils.binned
Creates an fbdrange object from provided tree and datafbdrange
Fossils objectas.fossils fossils is.fossils
Create a set of BEAST2 constraints to construct a DPPDIV style fixed extant topology FBD analysisfossils.to.BEAST.constraints
Create a suitable starting tree for a DPPDIV style FBD analysis in BEAST2fossils.to.BEAST.start.tree
Transforms a fossils dataframe and either taxonomy or tree into a fossilRecordSimulation object from package paleotree.fossils.to.paleotree.record
Generate output in the format used by the program PyRatefossils.to.pyrate
FossilSim: A package for simulating and plotting fossil and taxonomy dataFossilSim-package FossilSim
Import fbdrange object from fileget_fbdrange_from_file
Obtain the tips that define each node in a treeget.tip.descs
Transforms a fossilRecordSimulation object from package paleotree to a tree and taxonomy and fossils objects.paleotree.record.to.fossils
Place fossil samples from one tree in another tree, or find the ancestral node for each fossil sample in one tree.place.fossils
Plot oriented tree with stratigraphic rangesplot.fbdrange
Plot simulated fossilsplot.fossils
Plot simulated taxonomyplot.taxonomy
Remove fossil lineages from a treeprune.fossil.tips
Removes all intermediate fossils from a combined tree and labels the first and last fossils of each lineage. Can be used with sampled or complete trees. If only one fossil is present for a particular species it is labelled as first.prune.fossils
Make an asymmetric stratigraphic range plot from a tree object of class phylorangeplot.asymmetric
Reconcile existing fossil and taxonomy objectsreconcile.fossils.taxonomy
Returns tree and fossil objects that you can use to plot the reconstructed tree.reconstructed.tree.fossils.objects
Remove fossil samples that occur in the stemremove.stem.fossils
Remove stem lineages from a tree.remove.stem.lineages
Removes all unsampled lineages from a combined tree. Extinct tips are only sampled if they are fossils. With default settings all extant tips are sampled.sampled.tree.from.combined
Tree with sampled ancestors represented as zero-length edgesSAtree
Transforms a tree and fossils dataframe to a combined SA tree. Sampled ancestors are represented as tips on zero-length edges to maintain compatibility with the ape format. Tip labels are set to "species id"_"index", where the most recent tip of a given species receives index 1 and indices increase towards the past.SAtree.from.fossils
Simulate anagenetic species on a taxonomy objectsim.anagenetic.species
Simulate cryptic species on a taxonomy objectsim.cryptic.species
Include extant samples in the fossil object, with optional rho sampling.sim.extant.samples
sim.fbd.age: Simulating fossilized birth-death trees of a fixed age.sim.fbd.age
sim.fbd.rateshift.taxa: Simulating fossilized birth death trees incorporating rate shifts.sim.fbd.rateshift.taxa
sim.fbd.taxa: Simulating fossilized birth-death trees on a fixed number of extant taxa.sim.fbd.taxa
Simulate fossils under an environment-dependent model of preservation (Holland, 1995)sim.fossils.environment
Simulate fossils under a non-uniform model of preservation for a given set of consecutive time intervalssim.fossils.intervals
Simulate fossils under a Poisson sampling modelsim.fossils.poisson
Simulate an environmental gradientsim.gradient
Reassign fossil ages to user-specified stratigraphic intervalssim.interval.ages
Simulate taxonomysim.taxonomy
Include extant and extinct tip samples in the fossil object, with optional rho sampling.sim.tip.samples
Simulate trait values with variation across lineagessim.trait.values
Find a species' end (i.e extinction) time from a taxonomy objectspecies.end
Find a species' start (i.e speciation) time from a taxonomy objectspecies.start
Obtain a subsample of fossil occurrences containing the oldest fossil sample in each node of the tree.subsample.fossils.oldest
Obtain a subsample of fossil occurrences containing the oldest and youngest fossil sample found at each node of the tree.subsample.fossils.oldest.and.youngest
Obtain a uniform random sample of fossil occurrences.subsample.fossils.uniform
Obtain a subsample of fossil occurrences containing the youngest fossil sample in each node of the tree.subsample.fossils.youngest
Display taxonomy objectsummary.taxonomy
Taxonomy objectas.taxonomy is.taxonomy taxonomy
Find the maximum age in a phylo object (root age or origin time)tree.max