-
Notifications
You must be signed in to change notification settings - Fork 1
Output files
WARNING: this is under construction, and incomplete.
There are three output files:
-
results.tsv- this is the overall file of results for the run. It is most likely the file you want. It is a tab-delimited file of counts of the truth bases vs what was called in the consensus. -
results.json- this contains the same information as inresults.tsv, but is in JSON format. -
per_position.tsv- a detailed tab-delimited file, containing one line per reference position. It shows the multiple alignment of the reference, truth (inferred from the truth VCF file), and the sequence being evaluated. At each position the assigned category of truth and called bases is shown, where the categories are the same as those used inresults.tsv.
We will describe the per_position.tsv file first, since it understanding it is
necessary to understand results.tsv.
The overall method is to first make an inferred "truth genome" by applying all the
variants in the input truth VCF file to the reference genome. Then a multiple
sequence alignment (MSA) of the reference, inferred truth, and sequence to be
evaluated is made. This MSA is inspected at each position to categorise
the correctness of the sequence to be evaluated. The results of this
per-position evaluation is written to per_position.tsv. It will look
like this:
Ref_pos Ref Truth Consensus Truth_category Consensus_category
31 A A A True_ref Called_ref
32 C C C True_ref Called_ref
33 C C C True_ref Called_ref
... etc for the rest of the aligned genomes ...
In this case, it starts at position 31 because this example is the start of output where the amplicon scheme was ARTIC version 3. The first amplicon starts at position 31, so we do not evaluate positions before 31.
There are many possibilities in the Truth_category and Consensus_category!
In the above 3 rows, the reference, truth genome, and consensus
sequence were in agreement. The truth category True_ref means that
the "truth" call is that the consensus should match the reference.
Since it does match, the consensus category is Called_ref because
it did indeed call the reference base. Most lines of this file
will look like this (unless you evaluate terrible consensus!), since
most positions will have no variation.
The possible truth categories are:
-
True_ref: the reference and truth bases are the same -
SNP_true_alt: the truth base is different from the reference, and is one ofA,C,G,T. -
SNP_true_mixed: the truth base is different from the reference, and is a heterozygous call - one of the ambiguous IUPAC codesB,D,H,K,M,R,S,V,W,Y. -
Unknown_truth: the truth is unknown, for which we useN. -
True_indel: there should be an insertion or deletion, which means either the reference or truth base will be-. -
Dropped_amplicon: we expect the amplicon to have no consensus called because it was missing from the sequencing reads. The truth base will beZin this case.
The consensus categories are:
... to be completed.