Have questions? Visit https://www.reddit.com/r/SNPedia

Template:Hgsnp

From SNPedia
template:hgsnp
generates an infobox and adds relevant semantic data for haplogroup defining SNPs

notes:
 it's obviously not going to work properly for SNPs defining /multiple/ haplogroups but appending additional
information to the semantic properties is somewhat kludgy
 the 'tree' and 'tree_build' is included as a property, but harmonizing all the SNPs to use a common tree
and build is basically required (probably ISOGG [y] and PhyloTree.org [mt] at this point)
 formatting could be better
 property naming could probably be better

usage:
{{hgsnp
|alternate_names= [comma separated list of alternate name of the SNP - such as M86,M87]
|source= [comma separated list of relevant sources, generally PMIDs using the PMID template]
|tree= [what common tree is the information derived from]
|tree_build= [what tree build is the information derived from]
|clade_haplogroup= [The top level clade for this haplogroup, such as R, linking format is Haplogroup X ([mt]/[Y-]DNA)]
|ancestral_haplogroup= [ancestral haplogroup, such as R1b1b2a1a2, linking format is Haplogroup X ([mt]/[Y-]DNA)]
|derived_haplogroup= [derived haplogroup, such as R1b1b2a1a2f, linking format is Haplogroup X ([mt]/[Y-]DNA)]
|ancestral_allele= [allele shared by the ancestral haplogroup]
|derived_allele= [allele shared by the derived haplogroup]
}}

semantic properties defined are currently structured as follows:
[[Hgsnp alternate name::{{{alternate_name}}}]] for all alternate names
[[Clade [Y/MT] haplogroup::{{{clade_haplogroup}}}]]
[[Ancestral [Y/MT] haplogroup::{{{ancestral_haplogroup}}}]]
[[Derived [Y/MT] haplogroup::{{{derived_haplogroup}}}]]
[[Ancestral allele::{{{ancestral_haplogroup}}}]]
[[Derived allele::{{{derived_haplogroup}}}]]
[[Flag::Haplogroup]]
Haplogroup SNP
Alt. Name(s) None specified
Source(s) None specified
Tree None specified
Clade
Haplogroup
No Clade Haplogroup
Ancestral
Haplogroup
No Ancestral Haplogroup
Derived
Haplogroup
No Derived Haplogroup
Ancestral Allele
Derived Allele


Haplogroup SNP
Alt. Name(s) M86, M87
Source(s) [PMID 1234567]
[PMID 9876543]
Tree None specified
Clade
Haplogroup
No Clade Haplogroup
Ancestral
Haplogroup
No chromosome
Derived
Haplogroup
No chromosome
Ancestral Allele
Derived Allele