public static final class AssemblerInput.Properties extends Object
| Constructor and Description |
|---|
AssemblerInput.Properties(long numberOfSequences) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeListener(SimpleListener listener)
Adds a listener to be notified when the values of any properties change.
|
long |
getMaximumReferenceSequenceLength() |
long |
getMaximumSequenceLength() |
long |
getMinimumSequenceLength() |
long |
getNumberOfNucleotidesInAllSequences() |
long |
getNumberOfPairedSequences() |
long |
getNumberOfReferenceSequences() |
long |
getNumberOfSequences() |
long |
getNumberOfSequencesWithQuality() |
List<AssemblerInput.ReferenceSequence> |
getReferenceSequences()
Returns the reference sequences currently selected by the user in the options.
|
long |
getReferenceSequencesLength() |
boolean |
isAnyReferenceSequenceFromAnUndissolvedContig() |
boolean |
isSingleContigMappingToReferenceSequenceFromSeparateDocument() |
boolean |
isSingleInputContig()
returns true if there is just a single contig being provided as input to the assembler.
|
void |
setAnyReferenceSequenceFromAnUndissolvedContig(boolean anyReferenceSequenceFromAnUndissolvedContig)
Sets if there are any reference sequences which are from an undissolved contig.
|
void |
setLengthOfReferenceSequences(long lengthOfReferenceSequences)
Deprecated.
use
setLengthOfReferenceSequences(long, long) instead |
void |
setLengthOfReferenceSequences(long totalLengthOfReferenceSequences,
long maxReferenceSequenceLength)
Sets the total length of all reference sequences or 0 if there are no reference sequences.
|
void |
setMaximumSequenceLength(long maximumSequenceLength)
Sets the maximum length of all sequences, excluding any reference sequences
|
void |
setMinimumSequenceLength(long minimumSequenceLength)
Sets the minimum length of all sequences, excluding any reference sequences
|
void |
setNumberOfNucleotidesInAllSequences(long numberOfNucleotidesInAllSequences)
Sets the number of bases in total in all the input sequences, excluding any reference sequences
|
void |
setNumberOfPairedSequences(long numberOfPairedSequences)
Sets the number of sequences which are paired with another sequence.
|
void |
setNumberOfReferenceSequences(long numberOfReferenceSequences)
Sets the number of reference sequences.
|
void |
setNumberOfSequences(long numberOfSequences)
Sets numberOfSequences the number of sequences in the data, excluding any reference sequences
|
void |
setNumberOfSequencesWithQuality(long numberOfSequencesWithQuality)
Sets the number of sequences (excluding any reference sequences) which have quality (i.e.
|
void |
setProperties(AssemblerInput.Properties propertiesToCopy)
Assigns values to all properties by copying them from the given properties.
|
void |
setReferenceSequences(List<AssemblerInput.ReferenceSequence> referenceSequences)
Sets reference sequences currently selected by the user in the options.
|
void |
setSingleContigMappingToReferenceSequenceFromSeparateDocument(boolean singleContigMappingToReferenceSequenceFromSeparateDocument)
Sets the result of
isSingleContigMappingToReferenceSequenceFromSeparateDocument() |
void |
setSingleInputContig(boolean inputIsSingleContig)
Sets if there is just a single contig being provided as input to the assembler.
|
String |
toString() |
public AssemblerInput.Properties(long numberOfSequences)
numberOfSequences - the number of sequences in the data, excluding any reference sequencespublic long getNumberOfSequences()
public void setNumberOfSequences(long numberOfSequences)
numberOfSequences - the number of sequences in the data, excluding any reference sequencespublic long getNumberOfNucleotidesInAllSequences()
public void setNumberOfNucleotidesInAllSequences(long numberOfNucleotidesInAllSequences)
numberOfNucleotidesInAllSequences - the number of bases in total in all the input sequences, excluding any reference sequencespublic long getMinimumSequenceLength()
public void setMinimumSequenceLength(long minimumSequenceLength)
minimumSequenceLength - the minimum length of all sequences, excluding any reference sequencespublic long getMaximumSequenceLength()
public void setMaximumSequenceLength(long maximumSequenceLength)
maximumSequenceLength - the maximum length of all sequences, excluding any reference sequencespublic long getNumberOfPairedSequences()
public void setNumberOfPairedSequences(long numberOfPairedSequences)
numberOfPairedSequences - the number of sequences which are paired with another sequence. Since each sequence is counted, this should be twice the number of pairs.public long getNumberOfSequencesWithQuality()
NucleotideGraph.hasSequenceQualities()public void setNumberOfSequencesWithQuality(long numberOfSequencesWithQuality)
NucleotideGraph.hasSequenceQualities()numberOfSequencesWithQuality - the number of sequences (excluding any reference sequences) which have qualitypublic long getNumberOfReferenceSequences()
public void setNumberOfReferenceSequences(long numberOfReferenceSequences)
numberOfReferenceSequences - the number of reference sequences (0 for de novo assembly)public void setReferenceSequences(List<AssemblerInput.ReferenceSequence> referenceSequences)
referenceSequences - the reference sequences currently selected by the user in the options. Must not be null but may be an empty list.public List<AssemblerInput.ReferenceSequence> getReferenceSequences()
AssemblerInput.ReferenceSequence.getSequenceDocument(jebl.util.ProgressListener) so this should not be done from the swing thread.public long getReferenceSequencesLength()
getMaximumReferenceSequenceLength()@Deprecated public void setLengthOfReferenceSequences(long lengthOfReferenceSequences)
setLengthOfReferenceSequences(long, long) insteadlengthOfReferenceSequences - the total length of all reference sequences or 0 if there are no reference sequences.public void setLengthOfReferenceSequences(long totalLengthOfReferenceSequences,
long maxReferenceSequenceLength)
totalLengthOfReferenceSequences - the total length of all reference sequences or 0 if there are no reference sequences.maxReferenceSequenceLength - the maximum length of any of the reference sequences or 0 if there are no reference sequences.public long getMaximumReferenceSequenceLength()
getReferenceSequencesLength()public void setSingleInputContig(boolean inputIsSingleContig)
isSingleInputContig()inputIsSingleContig - true if there is just a single contig being provided as input to the assembler.()public boolean isSingleInputContig()
Assembler.supportsSingleInputContig() need not handle this case.public void setAnyReferenceSequenceFromAnUndissolvedContig(boolean anyReferenceSequenceFromAnUndissolvedContig)
anyReferenceSequenceFromAnUndissolvedContig - true if there are any reference sequences which are from an undissolved contig. In other words at some point one of the assembly reads will be a contig which returns a non-negative value from AssemblerInput.Read.getIndexOfAssemblyReferenceSequenceForContig()isAnyReferenceSequenceFromAnUndissolvedContig()public boolean isAnyReferenceSequenceFromAnUndissolvedContig()
AssemblerInput.Read.getIndexOfAssemblyReferenceSequenceForContig()public void addChangeListener(SimpleListener listener)
listener - the listener to be notified.public void setProperties(AssemblerInput.Properties propertiesToCopy)
addChangeListener(org.virion.jam.util.SimpleListener)
are fired by this method.propertiesToCopy - the properties to copy values from.public void setSingleContigMappingToReferenceSequenceFromSeparateDocument(boolean singleContigMappingToReferenceSequenceFromSeparateDocument)
isSingleContigMappingToReferenceSequenceFromSeparateDocument()public boolean isSingleContigMappingToReferenceSequenceFromSeparateDocument()