public PositionList
List of positions in the genome. This type is used by every , but it can also be used list of GWAS results and other genomic annotations.interface GenotypeTable
interface GenotypeTablebyte allele(WHICH_ALLELE alleleType, int site)
Return the (haploid) reference allele at given site.
site - sitekotlin.Array[] alleles(WHICH_ALLELE alleleType, int startSite, int endSite)
Returns reference sequence alleles in specified range. End site not included. One haploid allele for each site.
startSite - start siteendSite - end site (not included in result)kotlin.Array[] alleleForAllSites(WHICH_ALLELE alleleType)
Returns sequence alleles. One haploid allele for each site.
boolean hasReference()
Return whether this alignment has defined reference sequence.
java.lang.String siteName(int site)
Get SNP ID for specified site.
site - siteint numberOfSites()
Returns total number of sites of this alignment.
int chromosomeSiteCount(Chromosome chromosome)
Return number of sites for given Chromosome
chromosome - kotlin.Array[] startAndEndOfChromosome(Chromosome chromosome)
Get the first (inclusive) and last (inclusive) site of the specified chromosome in this alignment.
chromosome - chromosomeint chromosomalPosition(int site)
Returns the physical position at given site.
site - siteint siteOfPhysicalPosition(int physicalPosition,
Chromosome chromosome)
Return site of given physical position in chromosome. If the physical position doesn't exist, (-(insertion point) - 1) is returned. If chromosome is not found, an exception is thrown.
physicalPosition - physical positionchromosome - chromosome. if null, the first chromosome is used.int siteOfPhysicalPosition(int physicalPosition,
Chromosome chromosome,
java.lang.String snpName)
Return site of given physical position / SNP ID in chromosome. If the physical position doesn't exist, (-(insertion point) - 1) is returned. If chromosome is not found, an exception is thrown. This is to support multiple sites with the same physical position but different SNP IDs.
physicalPosition - physical positionchromosome - chromosome. if null, the first chromosome is used.snpName - SNP IDkotlin.Array[] physicalPositions()
Returns all physical positions.
java.lang.String chromosomeName(int site)
Return Chromosome Name for given site.
site - siteChromosome chromosome(int site)
Return Chromosome for given site.
site - siteChromosome chromosome(java.lang.String name)
Return Chromosome with matching name. First to match will be returned.
name - nameChromosome[] chromosomes()
Return all chromosomes.
int numChromosomes()
Return number of chromosomes.
kotlin.Array[] chromosomesOffsets()
Returns starting site for each chromosome.
int indelSize(int site)
Return size of indel at given site.
site - siteboolean isIndel(int site)
Returns whether give site is an indel.
site - sitejava.lang.String genomeVersion()
Gets the Genome Assembly.
boolean isPositiveStrand(int site)
Return whether is positive strand at given site.
site - sitestatic java.util.stream.Collector<net.maizegenetics.dna.map.Position,?,net.maizegenetics.dna.map.PositionList> collectValidateOrder()
Returns PositionList Collector that validates order of Positions.
static java.util.stream.Collector<net.maizegenetics.dna.map.Position,?,net.maizegenetics.dna.map.PositionList> collectReorder()
Returns PositionList Collector that reorders position if necessary.