Package pal.alignment
Class IndelAnnotatedAlignment
java.lang.Object
pal.alignment.AbstractAlignment
pal.alignment.IndelAlignment
pal.alignment.IndelAnnotatedAlignment
- All Implemented Interfaces:
Serializable,Alignment,AnnotationAlignment,IdGroup,Report
an extension of the IndelAlignment that includes annotation. This should only extract
indels from a single locus.
- Version:
- $Id:
- Author:
- Ed Buckler
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface pal.misc.IdGroup
IdGroup.Utils -
Field Summary
FieldsModifier and TypeFieldDescriptionintused to designate chromosomefloatused to designate position along chromosomeused to designate locus nameint[]used to designate position; do not account for gapschar[]used to designate position Typefloat[]used to designate weighted position; accounts for gapsFields inherited from class pal.alignment.AbstractAlignment
idGroup, numSeqs, numSites -
Constructor Summary
ConstructorsConstructorDescriptionIndelAnnotatedAlignment(AnnotationAlignment a, boolean anchored) Basic constructor. -
Method Summary
Modifier and TypeMethodDescriptionintgetChromosome(int site) Returns chromosomefloatgetChromosomePosition(int site) Return the position along chromosomegetDataType(int site) Returns the datatypegetLocusName(int site) Returns the name of the locusintgetLocusPosition(int site) Return the position along the locus (ignores gaps)chargetPositionType(int site) Returns position type (eg.floatgetWeightedLocusPosition(int site) Return the weighted position along the gene (handles gaps)voidsetChromosome(int chromosome) Sets chromosomevoidsetChromosomePosition(float position) Set the position along chromosomevoidsetLocusName(String locusName) Sets the name of the locusMethods inherited from class pal.alignment.IndelAlignment
getDataMethods inherited from class pal.alignment.AbstractAlignment
getAlignedSequenceString, getChar, getDataType, getIdCount, getIdentifier, getLength, getSequenceCount, getSiteCount, getState, getStates, guessDataType, isGap, isUnknownState, report, setDataType, setIdentifier, toString, whichIdNumberMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface pal.alignment.Alignment
getAlignedSequenceString, getData, getDataType, getSequenceCount, getSiteCountMethods inherited from interface pal.alignment.AnnotationAlignment
reportMethods inherited from interface pal.misc.IdGroup
getIdCount, getIdentifier, setIdentifier, whichIdNumber
-
Field Details
-
chromosomePosition
public float chromosomePositionused to designate position along chromosome -
chromosome
public int chromosomeused to designate chromosome -
weightedLocusPosition
public float[] weightedLocusPositionused to designate weighted position; accounts for gaps -
locusPosition
public int[] locusPositionused to designate position; do not account for gaps -
positionType
public char[] positionTypeused to designate position Type -
locusName
used to designate locus name
-
-
Constructor Details
-
IndelAnnotatedAlignment
Basic constructor. All annotation is based off the first site in the AnnotationAlignment. This Alignment should not span multiple loci.- Parameters:
anchored- sets to score anchored indels as same position
-
-
Method Details
-
getChromosomePosition
public float getChromosomePosition(int site) Return the position along chromosome- Specified by:
getChromosomePositionin interfaceAnnotationAlignment
-
setChromosomePosition
public void setChromosomePosition(float position) Set the position along chromosome -
getChromosome
public int getChromosome(int site) Returns chromosome- Specified by:
getChromosomein interfaceAnnotationAlignment
-
setChromosome
public void setChromosome(int chromosome) Sets chromosome -
getWeightedLocusPosition
public float getWeightedLocusPosition(int site) Return the weighted position along the gene (handles gaps)- Specified by:
getWeightedLocusPositionin interfaceAnnotationAlignment
-
getLocusPosition
public int getLocusPosition(int site) Return the position along the locus (ignores gaps)- Specified by:
getLocusPositionin interfaceAnnotationAlignment
-
getPositionType
public char getPositionType(int site) Returns position type (eg. I=intron, E-exon, P=promoter, 1=first, 2=second, 3=third, etc.- Specified by:
getPositionTypein interfaceAnnotationAlignment
-
getLocusName
Returns the name of the locus- Specified by:
getLocusNamein interfaceAnnotationAlignment
-
setLocusName
Sets the name of the locus -
getDataType
Returns the datatype- Specified by:
getDataTypein interfaceAnnotationAlignment
-