public class AlignmentEditorE4
extends java.lang.Object
The contained GUI components used to edit the alignment come from LibrAlign.
Modifier and Type | Field and Description |
---|---|
org.eclipse.swt.dnd.Clipboard |
CLIPBOARD |
static int |
CONSENSUS_DATA_AREA_INDEX |
static int |
CONSENSUS_HINT_AREA_INDEX |
static java.lang.String |
CONSENSUS_NAME |
static java.lang.String |
DEFAULT_READ_NAME_PREFIX |
static int |
EDITABLE_CONSENSUS_AREA_INDEX |
static java.lang.String |
ID |
static int |
PHEROGRAM_AREA_INDEX |
static int |
READS_AREA_INDEX |
Constructor and Description |
---|
AlignmentEditorE4() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addRead(java.lang.String name,
java.net.URI pherogramURI,
boolean reverseComplemented,
java.lang.String editedSequence,
java.lang.Integer firstSeqPos,
java.lang.Integer leftCutPos,
java.lang.Integer rightCutPos,
eu.etaxonomy.cdm.model.molecular.SingleReadAlignment.Shift[] shifts)
Adds a new sequence with attached phergram data area to the reads alignment.
|
void |
addRead(java.net.URI pherogramURI,
boolean reverseComplemented) |
<T> void |
createConsensusSequence()
Recreates the whole consensus sequence from all single read sequences.
|
void |
createPartControl(org.eclipse.swt.widgets.Composite parent) |
java.lang.String |
cutPherogramLeft() |
java.lang.String |
cutPherogramRight() |
void |
dispose() |
void |
doSave(org.eclipse.core.runtime.IProgressMonitor monitor) |
info.bioinfweb.libralign.alignmentarea.AlignmentArea |
getEditableConsensusArea() |
info.bioinfweb.libralign.alignmentarea.AlignmentArea |
getFocusedArea()
Checks whether
getReadsArea() or getEditableConsensusArea() currently
have the user focus and returns the according component. |
info.bioinfweb.libralign.dataarea.implementations.pherogram.PherogramArea |
getPherogramArea(java.lang.String sequenceID) |
static java.net.URI |
getPherogramURI(eu.etaxonomy.cdm.model.molecular.SingleRead pherogramInfo) |
info.bioinfweb.libralign.alignmentarea.AlignmentArea |
getReadsArea() |
boolean |
hasPherogram(java.lang.String sequenceID) |
void |
init(AlignmentEditorInput input) |
boolean |
isDirty() |
boolean |
isInsertLeftInPherogram() |
boolean |
isInsertMode() |
static info.bioinfweb.libralign.pherogram.provider.PherogramProvider |
readPherogram(java.net.URI uri) |
void |
reverseComplementSelectedSequences() |
void |
setFocus() |
void |
toggleInsertOverwrite() |
void |
toggleLeftRightInsertionInPherogram() |
<T> void |
updateConsensusSequence()
Updates the current consensus sequence by replacing gaps by the according consensus tokens
calculated from the single read sequences and extends the consensus sequence if necessary.
|
public static final java.lang.String ID
public static final int READS_AREA_INDEX
public static final int EDITABLE_CONSENSUS_AREA_INDEX
public static final int CONSENSUS_HINT_AREA_INDEX
public static final int PHEROGRAM_AREA_INDEX
public static final int CONSENSUS_DATA_AREA_INDEX
public static final java.lang.String DEFAULT_READ_NAME_PREFIX
public static final java.lang.String CONSENSUS_NAME
public final org.eclipse.swt.dnd.Clipboard CLIPBOARD
public info.bioinfweb.libralign.alignmentarea.AlignmentArea getReadsArea()
public info.bioinfweb.libralign.alignmentarea.AlignmentArea getEditableConsensusArea()
public info.bioinfweb.libralign.alignmentarea.AlignmentArea getFocusedArea()
getReadsArea()
or getEditableConsensusArea()
currently
have the user focus and returns the according component.null
if none of these
components is currently focusedpublic boolean hasPherogram(java.lang.String sequenceID)
public info.bioinfweb.libralign.dataarea.implementations.pherogram.PherogramArea getPherogramArea(java.lang.String sequenceID)
@PostConstruct public void createPartControl(org.eclipse.swt.widgets.Composite parent)
@PreDestroy public void dispose()
@Persist public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor)
public void init(AlignmentEditorInput input) throws org.eclipse.ui.PartInitException
org.eclipse.ui.PartInitException
public boolean isDirty()
@Focus public void setFocus()
public boolean isInsertMode()
public boolean isInsertLeftInPherogram()
public void toggleLeftRightInsertionInPherogram()
public void toggleInsertOverwrite()
public java.lang.String cutPherogramLeft()
public java.lang.String cutPherogramRight()
public void reverseComplementSelectedSequences()
public <T> void createConsensusSequence()
public <T> void updateConsensusSequence()
public static info.bioinfweb.libralign.pherogram.provider.PherogramProvider readPherogram(java.net.URI uri) throws java.io.IOException, org.biojava.bio.chromatogram.UnsupportedChromatogramFormatException
java.io.IOException
org.biojava.bio.chromatogram.UnsupportedChromatogramFormatException
public void addRead(java.net.URI pherogramURI, boolean reverseComplemented) throws java.io.IOException, org.biojava.bio.chromatogram.UnsupportedChromatogramFormatException
java.io.IOException
org.biojava.bio.chromatogram.UnsupportedChromatogramFormatException
public java.lang.String addRead(java.lang.String name, java.net.URI pherogramURI, boolean reverseComplemented, java.lang.String editedSequence, java.lang.Integer firstSeqPos, java.lang.Integer leftCutPos, java.lang.Integer rightCutPos, eu.etaxonomy.cdm.model.molecular.SingleReadAlignment.Shift[] shifts) throws java.io.IOException, org.biojava.bio.chromatogram.UnsupportedChromatogramFormatException
If null
is specified as editedSequence
the base call sequence from the pherogram will
be set as the edited sequence. If null
is specified as shifts
no shifts between the edited
and the base calls sequence are assumed.
name
- the name of the new sequencepherogramURI
- the URI where the associated pherogram file is locatedreverseComplemented
- Specify true
here, if the reverse complement of the pherogram data should
be added, false
otherwise.editedSequence
- the edited version of the base call sequence (May be null
.)shifts
- the alignment information that links the edited and the base call sequence (May be null
.)java.io.IOException
- if an error occurred when trying to read the pherogram fileorg.biojava.bio.chromatogram.UnsupportedChromatogramFormatException
- if the format of the pherogram file is not supportedpublic static java.net.URI getPherogramURI(eu.etaxonomy.cdm.model.molecular.SingleRead pherogramInfo)
Copyright © 2007-2018. All Rights Reserved.