-
- All Implemented Interfaces:
-
java.lang.Comparable
public class HaplotypeNode implements Comparable<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
HaplotypeNode.VariantInfo
These will be instantiated only when requested.
-
Constructor Summary
Constructors Constructor Description HaplotypeNode(HaplotypeSequence haplotypeSequence, TaxaList taxaList, int id, String asmContig, int asmStart, int asmEnd, String asmStrand, int genomeFileID, int gvcfFileID)
Constructor HaplotypeNode(HaplotypeSequence haplotypeSequence, TaxaList taxaList, int id)
HaplotypeNode(HaplotypeSequence haplotypeSequence, TaxaList taxaList)
-
Method Summary
Modifier and Type Method Description HaplotypeSequence
haplotypeSequence()
HaplotypeSequence object containing the nucleotide sequence and other sequence related information for a given HaplotypeNode object. TaxaList
taxaList()
List of taxa used when the consensus sequence was created or a single taxon. int
id()
String
asmContig()
int
asmStart()
int
asmEnd()
String
asmStrand()
int
genomeFileID()
int
gvcfFileID()
ReferenceRange
referenceRange()
Object containing the range of genomic coordinate values associated with a given HaplotypeNode and other details associated with that range of values. int
numTaxa()
Number of taxa used when consensus sequence was created or one if this is an original sequence. String
toString()
Optional<List<HaplotypeNode.VariantInfo>>
variantInfos()
These correspond to the VariantContext but holds less information for memory efficiency. int
compareTo(HaplotypeNode o)
Optional<List<VariantContext>>
variantContexts()
-
-
Constructor Detail
-
HaplotypeNode
HaplotypeNode(HaplotypeSequence haplotypeSequence, TaxaList taxaList, int id, String asmContig, int asmStart, int asmEnd, String asmStrand, int genomeFileID, int gvcfFileID)
Constructor- Parameters:
haplotypeSequence
- sequencetaxaList
- taxa listid
- hapid from databaseasmContig
- assembly contig / chromosomeasmStart
- assembly start coordinateasmEnd
- assembly end coordinategenomeFileID
- genome file IDgvcfFileID
- gvcf file ID
-
HaplotypeNode
HaplotypeNode(HaplotypeSequence haplotypeSequence, TaxaList taxaList, int id)
-
HaplotypeNode
HaplotypeNode(HaplotypeSequence haplotypeSequence, TaxaList taxaList)
-
-
Method Detail
-
haplotypeSequence
HaplotypeSequence haplotypeSequence()
HaplotypeSequence object containing the nucleotide sequence and other sequence related information for a given HaplotypeNode object.
-
taxaList
TaxaList taxaList()
List of taxa used when the consensus sequence was created or a single taxon.
-
id
int id()
-
asmStart
int asmStart()
-
asmEnd
int asmEnd()
-
genomeFileID
int genomeFileID()
-
gvcfFileID
int gvcfFileID()
-
referenceRange
ReferenceRange referenceRange()
Object containing the range of genomic coordinate values associated with a given HaplotypeNode and other details associated with that range of values. These values correspond to the reference genome being used (Generally B73 in Maize).
-
numTaxa
int numTaxa()
Number of taxa used when consensus sequence was created or one if this is an original sequence.
-
variantInfos
Optional<List<HaplotypeNode.VariantInfo>> variantInfos()
These correspond to the VariantContext but holds less information for memory efficiency. For reference blocks, isVariant will be false and refAllele may equal "REF" rather than the actual allele for the first base pair of the block. For that reason, converting VariantInfo to VariantContext will require a copy of the reference genome sequence to get the actual refAllele values.
-
compareTo
int compareTo(HaplotypeNode o)
-
variantContexts
Optional<List<VariantContext>> variantContexts()
-
-
-
-