

Classes | |
| class | MAFHeader |
| class | MAFMultipleAlignmentBlock |
Public Member Functions | |
| MAFAlignment () | |
| MAFAlignment (String indexFile) throws IOException, ParseException | |
| MAFHeader | getHeader () |
| void | encode () |
| void | encodeAsMatrix () |
| void | reverse () |
| int | length () |
| Map< String, Short > | getColumn (int i) |
| Map< String, Matrix > | getColumnsAsVector (int start, int number) |
| void | addShortEncodedColumn (Map< String, Short > col) |
| void | addShortEncodedRegion (Map< String, short[]> region) |
| void | addSequence (AlignedSequence seq) |
| void | addSequences (List< AlignedSequence > sequences) |
| boolean | isEmpty () |
| void | write (BufferedWriter bw) throws IOException |
| MAFAlignment | getSubAlignment (int refStart, int refEnd, boolean reverse) |
| AlignedSequence | getAlignedSequence (String sequenceId, boolean fillInGapsBetweenBlocks) |
| AlignedSequence | getAlignedSequence (String sequenceId) |
| List< AlignedSequence > | getAlignedSequences (boolean fillGapsBetweenBlocks) |
| List< AlignedSequence > | getAlignedSequences () |
| boolean | overlaps (LightweightGenomicAnnotation annotation) |
| boolean | contains (LightweightGenomicAnnotation annotation) |
| List< String > | getAlignedSequenceIds () |
| int | getReferenceStart () |
| int | getReferenceEnd () |
| void | compress () |
| MultipleAlignment | toMultipleAlignment (boolean fillGapsBetweenBlocks) |
| MultipleAlignment | toMultipleAlignment () |
| MultipleAlignment | sampleColumns (int colNum, int numConsecutiveCols) |
| void | load (String fileName) throws IOException, ParseException |
| void | load (RandomAccessFile handle, List< String > sequencesToLoad) throws IOException, ParseException |
| void | load (RandomAccessFile handle, int referenceStart, int referenceEnd) throws IOException, ParseException |
| void | load (RandomAccessFile handle, int referenceStart, int referenceEnd, List< String > sequencesToLoad) throws IOException, ParseException |
| void | load (String fileName, int referenceStart, int referenceEnd) throws IOException, ParseException |
| IntervalTree< Long > | getIndex () |
| void | writeIndex (String indexFileName) throws IOException |
| void | createIndex (String alignmentFile) throws IOException |
| void | setBlocks (List< MAFMultipleAlignmentBlock > blocks) |
| void | addBlock (MAFMultipleAlignmentBlock block) throws IllegalArgumentException |
| void | addBlocks (List< MAFMultipleAlignmentBlock > blocks) throws IllegalArgumentException |
| void | addBlocks (Iterator< MAFMultipleAlignmentBlock > blockIt) throws IllegalArgumentException |
| void | append (MAFAlignment mafAln) throws IllegalArgumentException |
| void | clear () |
| Iterator < MAFMultipleAlignmentBlock > | getBlockIterator () |
| void | loadIndex (String idxFile) throws IOException |
Public Member Functions inherited from broad.core.multiplealignment.MultipleAlignment | |
| MultipleAlignment () | |
| MultipleAlignment (List<?extends MultipleAlignment > alnBlocks, String ref, String[] seqs) | |
| void | encode () |
| void | encode (boolean distinguishMissingSequence) |
| void | encodeAsMatrix () |
| void | reverse () |
| int | length () |
| Map< String, Short > | getColumn (int i) |
| Map< String, Matrix > | getColumnsAsVector (int start, int number) throws ArrayIndexOutOfBoundsException |
| Map< String, Matrix > | getAsMatrix () |
| void | addShortEncodedColumn (Map< String, Short > col) |
| void | addShortEncodedColumnMatrix (Map< String, Matrix > col) |
| void | addShortEncodedRegion (Map< String, short[]> region) |
| char | decodeShort (Short nucleotide) |
| void | addSequence (AlignedSequence seq) |
| void | addSequences (List< AlignedSequence > sequences) |
| boolean | isEmpty () |
| void | setIOHelper (MultipleAlignmentIO maio) |
| void | write (BufferedWriter bw) throws IOException |
| void | write (BufferedWriter bw, List< String > order) throws IOException |
| MultipleAlignment | sampleColumns (int colNum, int numConsecutiveCols) |
| void | permuteColumns () |
| float | getScore () |
| void | setScore (float score) |
| AlignedSequence | getAlignedSequence (String containingSequenceId) |
| List< AlignedSequence > | getAlignedSequences () |
| List< String > | getAlignedSequenceIds () |
| boolean | overlaps (SequenceRegion region) |
| String | getReferenceId () |
| void | setReferenceId (String referenceId) |
| int | getReferenceStart () |
| AlignedSequence | getReference () |
| int | getReferenceEnd () |
| boolean | isRefGapped () |
| void | setRefGapped (boolean isRefGapped) |
| MultipleAlignment | getConcatenatedSubAlignment (String refId, List<?extends GenomicAnnotation > annotations) |
| void | compress () |
| void | remove (List< String > removeList) |
| MultipleAlignment | getSubAlignment (int refStart, int refEnd, boolean reverse) |
| int | getNumberOfAligningSequences () |
| MultipleAlignment | getSubAlignment (String refId, int refStart, int refEnd, boolean reverse) |
| void | append (MultipleAlignment other) |
| List< int[]> | getUngappedReferenceIslands () |
| List< int[]> | getUngappedSequenceReferenceIslands () |
| void | introduceGaps (boolean canGapReference, int maxNumberOfGaps) throws IllegalAccessException |
Static Public Member Functions | |
| static void | main (String[] args) throws IOException, ParseException |
Static Public Attributes | |
| static String | USAGE |
Static Public Attributes inherited from broad.core.multiplealignment.MultipleAlignment | |
| static final short | A_CODE = Sequence.SHORT_ENCODED_A |
| static final short | C_CODE = Sequence.SHORT_ENCODED_C |
| static final short | G_CODE = Sequence.SHORT_ENCODED_G |
| static final short | T_CODE = Sequence.SHORT_ENCODED_T |
| static final short | GAP_CODE = Sequence.SHORT_ENCODED_GAP |
Protected Member Functions | |
| void | setAlignedSequences (List< String > seqIds) |
Protected Member Functions inherited from broad.core.multiplealignment.MultipleAlignment | |
| MultipleAlignmentIO | getIOHelper () |
| Iterator< AlignedSequence > | getAlignedSequences (String refId, int refStart, int refEnd, boolean reverse) |
Additional Inherited Members | |
Static Protected Attributes inherited from broad.core.multiplealignment.MultipleAlignment | |
| static int | UNGAPPED_ALPHABET_SIZE = 4 |
| broad.core.multiplealignment.MAFAlignment.MAFAlignment | ( | ) |

| broad.core.multiplealignment.MAFAlignment.MAFAlignment | ( | String | indexFile | ) | throws IOException, ParseException |

| void broad.core.multiplealignment.MAFAlignment.addBlock | ( | MAFMultipleAlignmentBlock | block | ) | throws IllegalArgumentException |

| void broad.core.multiplealignment.MAFAlignment.addBlocks | ( | List< MAFMultipleAlignmentBlock > | blocks | ) | throws IllegalArgumentException |

| void broad.core.multiplealignment.MAFAlignment.addBlocks | ( | Iterator< MAFMultipleAlignmentBlock > | blockIt | ) | throws IllegalArgumentException |

| void broad.core.multiplealignment.MAFAlignment.addSequence | ( | AlignedSequence | seq | ) |
| void broad.core.multiplealignment.MAFAlignment.addSequences | ( | List< AlignedSequence > | sequences | ) |
| void broad.core.multiplealignment.MAFAlignment.addShortEncodedColumn | ( | Map< String, Short > | col | ) |
| void broad.core.multiplealignment.MAFAlignment.addShortEncodedRegion | ( | Map< String, short[]> | region | ) |
| void broad.core.multiplealignment.MAFAlignment.append | ( | MAFAlignment | mafAln | ) | throws IllegalArgumentException |

| void broad.core.multiplealignment.MAFAlignment.clear | ( | ) |
| void broad.core.multiplealignment.MAFAlignment.compress | ( | ) |

| boolean broad.core.multiplealignment.MAFAlignment.contains | ( | LightweightGenomicAnnotation | annotation | ) |

| void broad.core.multiplealignment.MAFAlignment.createIndex | ( | String | alignmentFile | ) | throws IOException |

| void broad.core.multiplealignment.MAFAlignment.encode | ( | ) |
| void broad.core.multiplealignment.MAFAlignment.encodeAsMatrix | ( | ) |
| AlignedSequence broad.core.multiplealignment.MAFAlignment.getAlignedSequence | ( | String | sequenceId, |
| boolean | fillInGapsBetweenBlocks | ||
| ) |


| AlignedSequence broad.core.multiplealignment.MAFAlignment.getAlignedSequence | ( | String | sequenceId | ) |

| List<String> broad.core.multiplealignment.MAFAlignment.getAlignedSequenceIds | ( | ) |

| List<AlignedSequence> broad.core.multiplealignment.MAFAlignment.getAlignedSequences | ( | boolean | fillGapsBetweenBlocks | ) |

| List<AlignedSequence> broad.core.multiplealignment.MAFAlignment.getAlignedSequences | ( | ) |

| Iterator<MAFMultipleAlignmentBlock> broad.core.multiplealignment.MAFAlignment.getBlockIterator | ( | ) |
| Map<String, Short> broad.core.multiplealignment.MAFAlignment.getColumn | ( | int | i | ) |
Assumes that encode has been called and each aligned sequence is encoded
| int | - alignment column |

| Map<String, Matrix> broad.core.multiplealignment.MAFAlignment.getColumnsAsVector | ( | int | start, |
| int | number | ||
| ) |

| MAFHeader broad.core.multiplealignment.MAFAlignment.getHeader | ( | ) |
| IntervalTree<Long> broad.core.multiplealignment.MAFAlignment.getIndex | ( | ) |
| int broad.core.multiplealignment.MAFAlignment.getReferenceEnd | ( | ) |

| int broad.core.multiplealignment.MAFAlignment.getReferenceStart | ( | ) |

| MAFAlignment broad.core.multiplealignment.MAFAlignment.getSubAlignment | ( | int | refStart, |
| int | refEnd, | ||
| boolean | reverse | ||
| ) |

| boolean broad.core.multiplealignment.MAFAlignment.isEmpty | ( | ) |

| int broad.core.multiplealignment.MAFAlignment.length | ( | ) |

| void broad.core.multiplealignment.MAFAlignment.load | ( | String | fileName | ) | throws IOException, ParseException |

| void broad.core.multiplealignment.MAFAlignment.load | ( | RandomAccessFile | handle, |
| List< String > | sequencesToLoad | ||
| ) | throws IOException, ParseException |

| void broad.core.multiplealignment.MAFAlignment.load | ( | RandomAccessFile | handle, |
| int | referenceStart, | ||
| int | referenceEnd | ||
| ) | throws IOException, ParseException |

| void broad.core.multiplealignment.MAFAlignment.load | ( | RandomAccessFile | handle, |
| int | referenceStart, | ||
| int | referenceEnd, | ||
| List< String > | sequencesToLoad | ||
| ) | throws IOException, ParseException |

| void broad.core.multiplealignment.MAFAlignment.load | ( | String | fileName, |
| int | referenceStart, | ||
| int | referenceEnd | ||
| ) | throws IOException, ParseException |

| void broad.core.multiplealignment.MAFAlignment.loadIndex | ( | String | idxFile | ) | throws IOException |

|
static |

| boolean broad.core.multiplealignment.MAFAlignment.overlaps | ( | LightweightGenomicAnnotation | annotation | ) |

| void broad.core.multiplealignment.MAFAlignment.reverse | ( | ) |
| MultipleAlignment broad.core.multiplealignment.MAFAlignment.sampleColumns | ( | int | colNum, |
| int | numConsecutiveCols | ||
| ) |

|
protected |
| void broad.core.multiplealignment.MAFAlignment.setBlocks | ( | List< MAFMultipleAlignmentBlock > | blocks | ) |

| MultipleAlignment broad.core.multiplealignment.MAFAlignment.toMultipleAlignment | ( | boolean | fillGapsBetweenBlocks | ) |

| MultipleAlignment broad.core.multiplealignment.MAFAlignment.toMultipleAlignment | ( | ) |
| void broad.core.multiplealignment.MAFAlignment.write | ( | BufferedWriter | bw | ) | throws IOException |

| void broad.core.multiplealignment.MAFAlignment.writeIndex | ( | String | indexFileName | ) | throws IOException |
|
static |
1.8.7