Package org.pharmgkb.parser.vcf
Class MemoryMappedVcfDataStore
java.lang.Object
org.pharmgkb.parser.vcf.MemoryMappedVcfDataStore
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGenotypeAtLocus(String chromosome, long position, int sampleIndex) getGenotypeAtLocus(String chromosome, long position, String sampleId) getGenotypeForId(String positionId, int sampleIndex) getGenotypeForId(String positionId, String sampleId) protected Map<String,VcfPosition> protected Map<MemoryMappedVcfDataStore.Locus,VcfPosition> protected Map<MemoryMappedVcfDataStore.Locus,List<VcfSample>> getPositionAtLocus(String chromosome, long position) getSampleAtLocus(String chromosome, long position, int sampleIndex) getSampleAtLocus(String chromosome, long position, String sampleId) getSampleForId(String positionId, int sampleIndex) getSampleForId(String positionId, String sampleId) getSamplesAtLocus(String chromosome, long position) protected voidsetIdToPosition(Map<String, VcfPosition> idToPosition) protected voidsetIdToSamples(Map<String, List<VcfSample>> idToSamples) protected voidsetLocusToPosition(Map<MemoryMappedVcfDataStore.Locus, VcfPosition> locusToPosition) protected voidsetLocusToSamples(Map<MemoryMappedVcfDataStore.Locus, List<VcfSample>> locusToSamples) protected voidsetMetadata(VcfMetadata metadata)
-
Constructor Details
-
MemoryMappedVcfDataStore
public MemoryMappedVcfDataStore()
-
-
Method Details
-
getAllPositions
- Returns:
- Every position read, or null if none no lines read.
-
getAllSamples
- Returns:
- The samples for every VCF record read, or null if no lines were read.
-
getMetadata
- Returns:
- The metadata, or null if no lines were read.
-
setMetadata
-
getPositionForId
-
getSamplesForId
-
getPositionAtLocus
-
getSamplesAtLocus
-
getSampleForId
-
getSampleForId
-
getSampleAtLocus
-
getSampleAtLocus
-
getGenotypeForId
@Nullable public MemoryMappedVcfDataStore.Genotype getGenotypeForId(@Nonnull String positionId, String sampleId) -
getGenotypeAtLocus
@Nullable public MemoryMappedVcfDataStore.Genotype getGenotypeAtLocus(@Nonnull String chromosome, long position, String sampleId) -
getGenotypeForId
@Nullable public MemoryMappedVcfDataStore.Genotype getGenotypeForId(@Nonnull String positionId, int sampleIndex) -
getGenotypeAtLocus
@Nullable public MemoryMappedVcfDataStore.Genotype getGenotypeAtLocus(@Nonnull String chromosome, long position, int sampleIndex) -
getIdToPosition
-
setIdToPosition
-
getLocusToPosition
-
setLocusToPosition
-
getIdToSamples
-
setIdToSamples
-
getLocusToSamples
-
setLocusToSamples
protected void setLocusToSamples(Map<MemoryMappedVcfDataStore.Locus, List<VcfSample>> locusToSamples)
-