-
- All Implemented Interfaces:
public class FillIndelsIntoConsensus
This class is created to fill in the agreeing indels removed from the consensus haplotypes during the merge process. There are various merge rules for when the indels disagree.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
FillIndelsIntoConsensus.INDEL_MERGE_RULE
-
Method Summary
Modifier and Type Method Description static List<List<VariantContext>>
addInIndels(ReferenceRange range, GenomeSequence refSequence, List<List<VariantContext>> consensusSequences, List<List<VariantContext>> rawConsensusWithIndels, int minComparableIndels, FillIndelsIntoConsensus.INDEL_MERGE_RULE mergeRule)
Method to add in the indels which were removed for the merging process. -
-
Method Detail
-
addInIndels
static List<List<VariantContext>> addInIndels(ReferenceRange range, GenomeSequence refSequence, List<List<VariantContext>> consensusSequences, List<List<VariantContext>> rawConsensusWithIndels, int minComparableIndels, FillIndelsIntoConsensus.INDEL_MERGE_RULE mergeRule)
Method to add in the indels which were removed for the merging process. The indels need to be readded in due to the filtering process in MergeGVCFPlugin. There we removed all sites where there was an indel in any of the taxa. Even if it was just one. Because of this, we likely have a lot of reference alleles missing from the consensus for the majority of the taxa. This method will add in any calls which are in agreement by all the taxon in the cluster or in the case of disagreement it will use the INDEL_MERGE_RULE to determine what variantContext record to put back in.
-
-
-
-