From cea172b4e413395c878b8bcb4a3702499a99a750 Mon Sep 17 00:00:00 2001 From: Daniel Cameron Date: Sat, 20 Apr 2024 20:18:26 +1000 Subject: [PATCH] #762 fixed BCF to match implicitly phased GT redefinition --- VCFv4.4.tex | 6 +++--- VCFv4.5.draft.tex | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/VCFv4.4.tex b/VCFv4.4.tex index 588e7f40..2573c164 100644 --- a/VCFv4.4.tex +++ b/VCFv4.4.tex @@ -2299,10 +2299,10 @@ \subsubsection{Type encoding} \begin{tabular}{|p{2.5cm} | p{10cm} | p{3cm}|} \hline 0/1 & in standard format $(0 + 1) << 1 \mid 0$ followed by $(1 + 1) << 1 \mid 0$ & 0x02 04 \\ \hline 0/1, 1/1, and 0/0 & three samples encoded consecutively & 0x02 04 04 04 02 02 \\ \hline -$0\mid1$ & $(1 + 1) << 1 \mid 1$ = 0x05 preceded by the standard first byte value 0x02 & 0x02 05 \\ \hline +$0\mid1$ & $(1 + 1) << 1 \mid 1$ = 0x05 preceded by the phased first byte value 0x03 & 0x03 05 \\ \hline ./. & where both alleles are missing & 0x00 00 \\ \hline -0 & as a haploid it is represented by a single byte & 0x02 \\ \hline -1 & as a haploid it is represented by a single byte & 0x04 \\ \hline +0 & as an implicitly phased haploid it is represented by a single byte & 0x03 \\ \hline +1 & as an implicitly phased haploid it is represented by a single byte & 0x05 \\ \hline 0/1/2 & is tetraploid, with alleles & 0x02 04 06 \\ \hline $0/1\mid2$ & is tetraploid with a single phased allele & 0x02 04 07 \\ \hline 0 and 0/1 & pad out the final allele for the haploid individual & 0x02 81 02 04\\ \hline diff --git a/VCFv4.5.draft.tex b/VCFv4.5.draft.tex index 33926742..8f2fff0d 100644 --- a/VCFv4.5.draft.tex +++ b/VCFv4.5.draft.tex @@ -2347,10 +2347,10 @@ \subsubsection{Type encoding} \begin{tabular}{|p{2.5cm} | p{10cm} | p{3cm}|} \hline 0/1 & in standard format $(0 + 1) << 1 \mid 0$ followed by $(1 + 1) << 1 \mid 0$ & 0x02 04 \\ \hline 0/1, 1/1, and 0/0 & three samples encoded consecutively & 0x02 04 04 04 02 02 \\ \hline -$0\mid1$ & $(1 + 1) << 1 \mid 1$ = 0x05 preceded by the standard first byte value 0x02 & 0x02 05 \\ \hline +$0\mid1$ & $(1 + 1) << 1 \mid 1$ = 0x05 preceded by the phased first byte value 0x03 & 0x03 05 \\ \hline ./. & where both alleles are missing & 0x00 00 \\ \hline -0 & as a haploid it is represented by a single byte & 0x02 \\ \hline -1 & as a haploid it is represented by a single byte & 0x04 \\ \hline +0 & as an implicitly phased haploid it is represented by a single byte & 0x03 \\ \hline +1 & as an implicitly phased haploid it is represented by a single byte & 0x05 \\ \hline 0/1/2 & is tetraploid, with alleles & 0x02 04 06 \\ \hline $0/1\mid2$ & is tetraploid with a single phased allele & 0x02 04 07 \\ \hline 0 and 0/1 & pad out the final allele for the haploid individual & 0x02 81 02 04\\ \hline