public GenomeSequence
Defines the genome sequence of a chromosome
java.util.Set<net.maizegenetics.dna.map.Chromosome> chromosomes()
Returns a list of chromosomes whose sequences have been stored in the chromsomeSequence map of the class implementing this interface. Return empty set if empty.
kotlin.Array[] chromosomeSequence(Chromosome chrom)
Takes a Chromosome object and returns the stored byte array representing the genomic sequence for the specified chromosome.
chrom - ; a Chromosome object representing the chromosome whose sequence will be returnedkotlin.Array[] chromosomeSequence(Chromosome chrom, int startSite, int endSite)
Returns the partial genomic sequence for a chromosome, from the specified start position to the specified end position. THe start/end positions are inclusive and the request is 1-based (though the alleles are stored in a 0-based byte array).
chrom - : the chromosome whose partial sequence will be returned.startSite - : the 1-based position in the sequence to start the pull.endSite - : the 1-based position in the sequence that will be the last allele in the pullkotlin.Array[] genomeSequence(long startSite,
long lastSite)
Returns the partial genomic sequence from the specified start position to the specified end position. THe start/end positions are inclusive and the request is 0-based (though the alleles are stored in a 0-based byte array). Note the difference with chromosomes, which start with 1. Can only return 2.1 billion sites per call.
startSite - : the 0-based position in the sequence to start the pull.lastSite - : the 0-based position in the sequence that will be the last allele in the pulljava.lang.String genomeSequenceAsString(long startSite,
long lastSite)
Returns the partial genomic sequence from the specified start position to the specified end position. The start/end positions are inclusive and the request is 0-based (though the alleles are stored in a 0-based byte array). Note the difference with chromosomes, which start with 1. Can only return 2.1 billion sites per call.
startSite - : the 0-based position in the sequence to start the pull.lastSite - : the 0-based position in the sequence that will be the last allele in the pulljava.util.Map<java.lang.Long,net.maizegenetics.util.Tuple> fullRefCoordinateToChromCoordinate(java.util.ArrayList<java.lang.Long> coordinates)
Takes a list of coordinates from the full genome sequence and for each returns the corresponding chromosome and a coordinate relative to the start of that chromosome. The request is 0-based, as are the arrays where the alleles are stored, and the results.
coordinates - : list of coordinates from the full genome sequence to be like mappedint chromosomeSize(Chromosome chromosome)
Returns the length of the current chromsome
chromosome - long genomeSize()
Returns the length of the entire genome
int numberOfChromosomes()
Returns the number of chromosomes
byte genotype(Chromosome chrom, int position)
Returns the allele value in a byte for the specified PHYSICAL position (1-based)
chrom - Chromosome object we wish to queryposition - Position on the chromosome whose value will be returnedbyte genotype(Chromosome chrom, Position positionObject)
Returns the TASSEL encoding for the allele value in a byte for the specified PHYSICAL position
chrom - positionObject - Position object from which the physical will be obtained.java.lang.String genotypeAsString(Chromosome chrom, int position)
Returns the haplotype allele value in a String for the specified physical position on the specified chromosome
chrom - position - java.lang.String genotypeAsString(Chromosome chrom, Position positionObject)
Returns the haplotype allele value in a String for the specified physical position on the specified chromosome
chrom - positionObject - java.lang.String genotypeAsString(Chromosome chrom, int startSite, int endSite)
Returns a string of haplotype allele values for the specified physical start and physical end positions on the specified chromosome.
chrom - startSite - endSite -