public Position
Defines a genomic positions and its known variants. Includes attributes of chromosome, position, sub-position, strand, name (or SNP ID), whether this position is a nucleotide, or includes an indel.
static byte STRAND_PLUS
static byte STRAND_MINUS
static byte STRAND_UNKNOWN
static java.lang.String STRAND_PLUS_STR
static java.lang.String STRAND_MINUS_STR
static java.lang.String STRAND_UNKNOWN_STR
static Position of(int chromosomeNumber, int positionWithinChromosome)
Create Position given chromosome number and position.
chromosomeNumber - chromosome numberpositionWithinChromosome - physical positionstatic Position of(java.lang.String chromosomeName, int positionWithinChromosome)
Create Position given chromosome name and position.
chromosomeName - chromosome namepositionWithinChromosome - physical positionstatic Position of(Chromosome chromosome, int positionWithinChromosome)
Create Position given chromosome and position.
chromosome - chromosomepositionWithinChromosome - physical positionstatic net.maizegenetics.dna.map.GeneralPosition.Builder builder(int chromosomeNumber,
int positionWithinChromosome)
Create Position Builder given chromosome number and position.
chromosomeNumber - chromosome numberpositionWithinChromosome - physical positionstatic net.maizegenetics.dna.map.GeneralPosition.Builder builder(java.lang.String chromosomeName,
int positionWithinChromosome)
Create Position Builder given chromosome name and position.
chromosomeName - chromosome namepositionWithinChromosome - physical positionstatic java.lang.String getStrand(byte value)
static byte getStrand(java.lang.String value)
Chromosome getChromosome()
Return the locus (generally a chromosome) of a site
int getPosition()
Return the physical position of a site
short getInsertionPosition()
Return the insertion-position of a site. This will be zero for the main physical position and sequentially numbered (1, 2, 3,...) for any (if any) sites with the same . This will mostly be used for insertions relative to the reference.net.maizegenetics.dna.map.Position$getPosition()
byte getStrand()
Return the strand for a site definition
java.lang.String getStrandStr()
java.lang.String getSNPID()
Return the ID (name) for a site
java.lang.String getActualSNPID()
Returns SNP ID only if assigned. getSNPID() returns a default if not assigned.
boolean isNucleotide()
Whether the position is a nucleotide position or another marker type (SSR, AFLP, RAPD, CNV, which are recoded with text states)
boolean isIndel()
Whether the position includes indels, which would be defined in the variants
java.lang.String[] getKnownVariants()
Returns the nature of the polymorphism {"ACTAT","-"} or {"A","C","G"} or {"100","103","106"}
float getGlobalMAF()
Return the minor allele frequency in a global scope
float getGlobalSiteCoverage()
Returns the proportion of genotypes scored at a given site
byte getAllele(WHICH_ALLELE alleleType)
Return the allele specified by alleleType, if unknown Alignment.Unknown is return
GeneralAnnotation getAnnotation()