Poseidon is a solution for archaeogenetic genotype data organisation. It is geared towards human data, but is to a large extent species-agnostic and can be used to track archaeogenetic data also of non-human species.
This standard defines a data structure: the Poseidon package. A Poseidon package stores genotype data with meta- and context information.
A .pdf version of the latest instance of this document can be downloaded here.
Further details on genotype data, the .janno file and the .ssf file are documented on the Poseidon website.
A changelog documents the changes across different schema versions here.
The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY, and OPTIONAL in this document are to be interpreted as described in RFC 2119.
The main operational entities in a Poseidon package are discrete sets of genotype data attributed to a single human or non-human individual, scientifically generated for archaeogenetic research questions. Within a Poseidon package each of these sets gets attributed a unique identifier: the Poseidon_ID.
Generally, archaeogenetics operates on depositional contexts, e.g. graves, with one or multiple (ancient) human or non-human individuals. Usually, it is possible to attribute the (skeletal) remains within these contexts to individuals based on archaeological evidence and physical-anthropological analysis. Each individual can get sampled one or multiple times, either by directly probing their preserved tissue, or by sampling any reagent that contains their DNA (through whatever pathway or taphonomic process). From one such sample one or multiple extracts can be derived, which can be transformed into one or multiple libraries, which may or may not be subjected to a DNA capture protocol and then sequenced one or multiple times. The raw sequencing data can undergo various different forms of computational processing and eventually genotyping to produce the data relevant for most derived analyses and thus stored in a Poseidon package.
While the wetlab-processes yield a relatively predictable tree of separate physical and digital products for any given sample, the computational data-processing breaks the conceptual tree-ness by allowing for arbitrary conflation of sequencing data obtained through potentially separate means: Data from different libraries, for example, may be merged if they are from the same individual, even if they are not from the same sample.
Poseidon_IDs therefore represent one consciously selected end-point in the complex data preparation graph laid out above. Typically this end-point corresponds to an optimal result for a given individual, research question and publication.
For the sake of convenience and despite the lack of conceptual clarity, below we sometimes use the term sample to denote Poseidon_ID entities. Data aggregation on the level of physical samples is often sensible, and the term is conventionally used for analysis endpoints in the community of practice.
A Poseidon package is defined by the POSEIDON.yml file, which holds relative paths to all other files in the package.
A package therefore MUST contain:
- A
POSEIDON.ymlfile to formally define the package - Genotype data in PLINK, EIGENSTRAT or VCF format
It SHOULD additionally contain:
- A
.jannofile to store context information on spatiotemporal origin or sample quality - A
.bibfile for literature references
It MAY also contain:
- A
README.mdfile for arbitrary, additional context information - A
CHANGELOG.mdfile to document changes to the package - A
.ssffile with information on the underlying raw sequencing data
Here is an example of a package Switzerland_LNBA_Roswita in one directory:
Switzerland_LNBA_Roswita/POSEIDON.yml
Switzerland_LNBA_Roswita/Switzerland_LNBA.bed
Switzerland_LNBA_Roswita/Switzerland_LNBA.bim
Switzerland_LNBA_Roswita/Switzerland_LNBA.fam
Switzerland_LNBA_Roswita/Switzerland_LNBA.janno
Switzerland_LNBA_Roswita/Switzerland_LNBA.ssf
Switzerland_LNBA_Roswita/Switzerland_LNBA.bib
Switzerland_LNBA_Roswita/README.md
Switzerland_LNBA_Roswita/CHANGELOG.md
All text files in the package MUST be UTF-8 encoded. They SHOULD use Unix-style line endings, so a single Line Feed (LF, \n) character, NOT a Carriage Return and Line Feed (CRLF) pair (\r\n) as in MS DOS and Windows.
Poseidon_IDs and Group_Names, so the primary sample and group identifiers across .janno, .ssf, and genotype data files, MUST contain only characters of a subset of the 7-bit ASCII code set. Specifically the alphanumeric characters A-Z, a-z, 0-9, and the symbols _ (underscore), - (hyphen-minus), and . (period, dot or full stop).
The POSEIDON.yml file defines Poseidon packages by listing metainformation and relative paths in a standardised, machine-readable format.
- It MUST be a valid YAML file.
- Its mandatory and optional fields are documented in the POSEIDON_yml_fields.tsv file.
Here is an example for a POSEIDON.yml file:
poseidonVersion: 2.7.1
title: Switzerland_LNBA_Roswita
description: LNBA Switzerland genetic data not yet published
contributor:
- name: Roswita Malone
email: roswita.malone@example.org
orcid: 1234-1234-1234-1234
- name: Paul Panther
email: paul.panther@example.edu
packageVersion: 1.1.2
lastModified: 2021-01-28
license:
name: CC BY 4.0
url: https://creativecommons.org/licenses/by/4.0/
file: license.md
genotypeData:
format: PLINK
genoFile: Switzerland_LNBA_Roswita.bed
genoFileChkSum: 95b093eefacc1d6499afcfe89b15d56c
snpFile: Switzerland_LNBA_Roswita.bim
snpFileChkSum: 6771d7c873219039ba3d5bdd96031ce3
indFile: Switzerland_LNBA_Roswita.fam
indFileChkSum: f77dc756666dbfef3bb35191ae15a167
snpSet: 1240K
jannoFile : Switzerland_LNBA_Roswita.janno
jannoFileChkSum: 555d7733135ebcabd032d581381c5d6f
sequencingSourceFile: Switzerland_LNBA_Roswita.ssf
sequencingSourceFileChkSum: 19db1906240ee2f076e1a9659567dca4
bibFile: Switzerland_LNBA_Roswita.bib
bibFileChkSum: 70cd3d5801cee8a93fc2eb40a99c63fa
readmeFile: README.md
changelogFile: CHANGELOG.mdWhen a package is modified in any way (including updates of the context information in the .janno file), then the packageVersion field SHOULD be incremented and the lastModified field updated to the current date.
The packageVersion field is a mandatory entry of the POSEIDON.yml file. It denotes the version of the individual package, using a three-component versioning system derived from semantic versioning.
Each version number is comprised of three numbers, separated by a .. For example: 0.1.0, 1.0.0 or 2.1.3. The first number gives the Major, the second the Minor and the third the Patch component of the version number. For a Poseidon package these components SHOULD be incremented when the following changes occur:
-
Major(e.g.1.4.2->2.0.0)- When samples are added to a package.
- When samples are removed from a package.
- When the genotype data (i.e. the contents of the
.bed/.bim/.famor.geno/.snp/.indfiles) for any number of samples is changed.
-
Minor(e.g.1.4.2->1.5.0)- When larger pieces of meta- or context information are added or modified in any package file, except the genotype data. For example:
- An entire
.janno,.bibor.ssffile is added or replaced. - Entire columns in the
.jannoor.ssffile are added or replaced. - Primary publications for samples in the
.jannoand.bibfile are added or replaced.
- An entire
- When larger pieces of meta- or context information are added or modified in any package file, except the genotype data. For example:
-
Patch(e.g.1.4.2->1.4.3)- When smaller pieces of meta- or context information are added or modified in any package file, except the genotype data. For example:
- Individual entries in the
.jannoor.ssffile are added or replaced. - Secondary publications for samples in the
.jannoand.bibfile are added or replaced. - BibTeX entries in the
.bibfile are modified. - The package
descriptionchanges in thePOSEIDON.ymlfile. - The
CHANGELOG.mdfile is modified with additional information on previous entries.
- Individual entries in the
- When smaller pieces of meta- or context information are added or modified in any package file, except the genotype data. For example:
When the packageVersion is changed, then the lastModified date MUST be updated and an entry to the CHANGELOG.md file SHOULD be added summarising the changes made.
Packages SHOULD start at packageVersion 0.1.0.
Data licences are a common way to grant the public permission to use a dataset under copyright law.
Poseidon packages MAY specify a license, and if so, SHOULD use Creative Commons licences.
Licences are documented in the POSEIDON.yml file in the license section, either with just the name, or with a license file, or with both the name and a file. name SHOULD include a short string with name and version of the license, e.g. CC BY 4.0. The file, typically named license.md, MAY include the full text of a license, or a short notifier further contextualizing the entry in the name field. For example:
The Poseidon package Switzerland_LNBA_Roswita © 2021 by Roswita Malone is licensed under Creative Commons Attribution 4.0 International. To view a copy of this license, visit https://creativecommons.org/licenses/by/4.0/
Genotype data in Poseidon packages is stored either in (binary) PLINK, EIGENSTRAT or Variant Call Format (VCF).
| PLINK (binary) | EIGENSTRAT | VCF | |
|---|---|---|---|
| genotype file | .bed (binary biallelic genotype table) or .bed.gz |
.geno (genotype file) or .geno.gz |
.vcf or .vcf.gz |
| SNP file | .bim (extended MAP file) or .bim.gz |
.snp (snp file) or .snp.gz |
|
| individual file | .fam (sample information) |
.ind (indiv file) |
Both PLINK and EIGENSTRAT formats require three files to be specified. In PLINK, the genotype file is binary (with 2 bits per genotype), while in Eigenstrat, the genotype file is text-based (with 8 bits per genotype). The SNP and individual files are text-based for both formats (see links behind the file endings in the table above). The EIGENSTRAT format specifically is common within archaeogenetics, compatible with many important tools, e.g. EIGENSOFT and ADMIXTOOLS. Finally, the VCF format is the most formally specified format, with properly versioned specifications being released regularly. VCF is well established in the wider genetics community and the de-facto standard to store variants in the field of medical genetics.
VCF files, as well as genotype and SNP files in PLINK and EIGENSTRAT can be stored in gzipped form, signifified by an additional file ending (*.gz).
To make VCF files fully convertible to PLINK and EIGENSTRAT, they MUST be biallelic and contain only genotypes coded as 0/0, 0/1, 1/1, ./.. Furthermore, they CAN encode group names and genetic sex for all samples through special header fields ##group_names=name1,name2,... and ##genetic_sex=F,U,M,..., respectively. If these fields are not present, then group names are assumed to be "unknown" and genetic sex "U" (unknown) for all samples.
The .janno file is a tab-separated text file with a header line. It holds context information (variables/columns) for each sample (objects/rows) in a package.
- A set of strictly defined core variables (defined by column name) and their possible content are documented here: janno_columns.tsv
- A
.jannofile MAY have all of these core variables, or only a subset of them. - Only three columns MUST be present to make the file valid: Poseidon_ID, Group_Name and Genetic_Sex.
- Arbitrary columns not defined here MAY be added as long as their column names do not clash with the defined ones.
- Arbitrary, additional free-text information directly related to a column <Column_Name> from the set of specified core variables in janno_columns.tsv SHOULD be added in a column whose name has the form <Column_Name>_Note. Example:
Contamination_Note. - The column order is not fixed, but MAY follow the order in janno_columns.tsv. <Column_Name>_Note columns SHOULD be placed directly after the respective column they are refering to.
- If information is unknown or a variable does not apply for a certain sample, then the respective cell(s) MAY be filled with
n/aor simply an empty string. - The order of the samples (rows) in the
.jannofile MUST be equal to the order in the genetic data files (.ind,.fam) in the package. - The values in the columns Poseidon_ID, Group_Name and Genetic_Sex MUST be equal to the terms used in the genetic data files (
.ind,.fam). - Multiple predefined columns of the
.jannofile are list columns that can hold multiple values (either strings or numerics) separated by;. - The decimal separator for all floating point numbers MUST be
..
A BibTeX file with all references listed in the .janno file. The entry keys MUST fit the ones used in the .janno file.
Example:
@article{CassidyPNAS2015,
doi = {10.1073/pnas.1518445113},
url = {https://doi.org/10.1073%2Fpnas.1518445113},
year = 2015,
month = {dec},
publisher = {Proceedings of the National Academy of Sciences},
volume = {113},
number = {2},
pages = {368--373},
author = {Lara M. Cassidy and Rui Martiniano and Eileen M. Murphy and Matthew D. Teasdale and James Mallory and Barrie Hartwell and Daniel G. Bradley},
title = {Neolithic and Bronze Age migration to Ireland and establishment of the insular Atlantic genome},
journal = {Proceedings of the National Academy of Sciences}
}
To connect a sample in the package to this particular literature reference, the .janno file column Publication would have to be filled with CassidyPNAS2015.
A simple markdown file with informal, arbitrarily structured information accompanying the package.
Example:
This package contains a rather interesting set of samples relevant for the peopling of the Territory of Christmas Island in the Indian Ocean. We consider this especially relevant, because ...
A markdown file to document changes in the history of a package.
Example:
- V 1.1.1: Fixed a spelling mistake in one site name: "Hosenacker" -> "Rosenacker"
- V 1.1.0: Added mtDNA contamination estimation to the .janno file
- V 1.0.0: Added spatial coordinates and age information to the .janno file and finalized a first stable version of the package
- V 0.2.0: Added previously restricted sample L1337
- V 0.1.0: Creation of the package
The structure with - V X.X.X: at the beginning of each line is not mandatory, but SHOULD be followed for reasons of interoperability.
The .ssf file is another tab-separated text file with a header line. It stores sequencing source data, so metainformation about the raw sequencing data behind the genotypes in a Poseidon package. The primary entities in this table are sequencing entities, typically corresponding to DNA libraries or even multiple runs/lanes of the same library.
- The predefined columns are specified here: ssf_columns.tsv
- All columns of this schema are optional, so a
.ssfMAY have all of these core variables, only a subset of them, or even none. It SHOULD have aposeidon_IDscolumn, though, to link the sequencing entities to the Poseidon package. - The link to the individuals listed in the
.janno-file (and therefore to the entire Poseidon package) is made through a many-to-many foreign-key relationship between the .janno columnPoseidon_IDand the .ssf columnposeidon_IDs. That means each entry in the .janno file can be linked to many rows in the .ssf file and vice versa. - As in the
.jannofile arbitrary columns not defined here MAY be added to the.ssffile as long as their column names do not clash with the defined ones. - The order of columns and rows is irrelevant.
- If information is unknown or a variable does not apply, then the respective cell(s) MAY be filled with
n/aor simply an empty string. - Multiple predefined columns of the
.ssffile are list columns that can hold multiple values (either strings or numerics) separated by;. - The decimal separator for all floating point numbers MUST be
..
The following protocols are specified:
Shotgun: Sequencing without any enrichment (whole genome sequencing, screening etc.).1240K: Target enrichment with hybridization capture optimised for sequences covering the 1240k SNP array, see @Fu2015, @Haak2015, @Mathieson2015.ArborComplete,ArborPrimePlus,ArborAncestralPlus: Target enrichment with hybridization capture as provided by Arbor Biosciences in three different kits branded myBaits Expert Human Affinities.TwistAncientDNA: Target enrichment with hybridization capture as provided by Twist Bioscience @Rohland2022.WISC2013: Whole genome capture as described by @Carpenter2013.OtherCapture: Target enrichment with hybridization capture for any other set of sequences.