Class SequenceViewerExtension.StatisticsSection
- java.lang.Object
-
- com.biomatters.geneious.publicapi.plugin.SequenceViewerExtension.StatisticsSection
-
- Enclosing class:
- SequenceViewerExtension
public static class SequenceViewerExtension.StatisticsSection extends java.lang.Object
One or more lines of statistics that show up in the statistics section of the sequence viewer.- Since:
- API 4.700 (Geneious 7.0.0)
-
-
Field Summary
Fields Modifier and Type Field Description static double
POSITION_AMINO_ACID_TRANSLATION_FREQUENCIES
The value that amino acid translation frequencies returns fromgetVerticalPosition()
static double
POSITION_CODON_FREQUENCIES
The value that codon frequencies returns fromgetVerticalPosition()
static double
POSITION_COVERAGE
The value that the read length distributions returns fromgetVerticalPosition()
static double
POSITION_EXPECTED_ERRORS
The value that the expected errors returns fromgetVerticalPosition()
static double
POSITION_FREQUENCIES
The value that the frequencies of nucleotides or amino acids in the sequence returns fromgetVerticalPosition()
static double
POSITION_IDENTICAL_SITES
The value that the number of identical sites returns fromgetVerticalPosition()
static double
POSITION_MEAN_CONFIDENCE
The value that the mean confidence returns fromgetVerticalPosition()
static double
POSITION_NUMBER_OF_SEQUENCES
The value that the number of sequences returns fromgetVerticalPosition()
static double
POSITION_PERCENTAGE_PAIRWISE_IDENTITY
The value that the percentage pairwise identity returns fromgetVerticalPosition()
static double
POSITION_PROTEIN_EXTINCTION_COEFFICIENT
The value that the protein molecular weight returns fromgetVerticalPosition()
static double
POSITION_PROTEIN_ISOELECTRIC_POINT
The value that the protein molecular weight returns fromgetVerticalPosition()
static double
POSITION_PROTEIN_MOLECULAR_WEIGHT
The value that the protein molecular weight returns fromgetVerticalPosition()
static double
POSITION_QUALITY_THRESHOLD_COUNTS
The value that the quality threshold counts (e.g.static double
POSITION_READ_LENGTHS
The value that the read length distributions returns fromgetVerticalPosition()
static double
POSITION_SEQUENCE_LENGTH
The value that the sequence length returns fromgetVerticalPosition()
static double
POSITION_STATISTICS_HEADER
The value that the statistics header returns fromgetVerticalPosition()
static double
RELATIVE_POSITION_BELOW
Added to the position of a statistic to position it below the other statistic.static double
RELATIVE_POSITION_DIRECTLY_BELOW
Added to the position of a statistic to position it directly below the other statistic.
-
Constructor Summary
Constructors Constructor Description StatisticsSection(java.lang.String name, java.lang.Number numericValue, java.lang.String nicelyFormattedNameAndValue, double verticalPosition)
Equivalent to(StatisticsSection(name, numericValue, nicelyFormattedNameAndValue, verticalPosition, Collections.emptyList()
StatisticsSection(java.lang.String name, java.lang.Number numericValue, java.lang.String nicelyFormattedNameAndValue, double verticalPosition, java.util.List<DocumentFieldAndValue> documentFieldsAndValues)
Creates a new statistics section
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DocumentFieldAndValue>
getDocumentFieldsAndValues()
java.lang.String
getName()
java.lang.String
getNicelyFormattedNameAndValue()
java.lang.Number
getNumericValue()
double
getVerticalPosition()
-
-
-
Field Detail
-
POSITION_STATISTICS_HEADER
public static final double POSITION_STATISTICS_HEADER
The value that the statistics header returns fromgetVerticalPosition()
- Since:
- API 4.201904 (Geneious 2019.0.4)
- See Also:
- Constant Field Values
-
POSITION_SEQUENCE_LENGTH
public static final double POSITION_SEQUENCE_LENGTH
The value that the sequence length returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_NUMBER_OF_SEQUENCES
public static final double POSITION_NUMBER_OF_SEQUENCES
The value that the number of sequences returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_IDENTICAL_SITES
public static final double POSITION_IDENTICAL_SITES
The value that the number of identical sites returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_PERCENTAGE_PAIRWISE_IDENTITY
public static final double POSITION_PERCENTAGE_PAIRWISE_IDENTITY
The value that the percentage pairwise identity returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_COVERAGE
public static final double POSITION_COVERAGE
The value that the read length distributions returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_READ_LENGTHS
public static final double POSITION_READ_LENGTHS
The value that the read length distributions returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_PROTEIN_MOLECULAR_WEIGHT
public static final double POSITION_PROTEIN_MOLECULAR_WEIGHT
The value that the protein molecular weight returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_PROTEIN_ISOELECTRIC_POINT
public static final double POSITION_PROTEIN_ISOELECTRIC_POINT
The value that the protein molecular weight returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_PROTEIN_EXTINCTION_COEFFICIENT
public static final double POSITION_PROTEIN_EXTINCTION_COEFFICIENT
The value that the protein molecular weight returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_MEAN_CONFIDENCE
public static final double POSITION_MEAN_CONFIDENCE
The value that the mean confidence returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_EXPECTED_ERRORS
public static final double POSITION_EXPECTED_ERRORS
The value that the expected errors returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_QUALITY_THRESHOLD_COUNTS
public static final double POSITION_QUALITY_THRESHOLD_COUNTS
The value that the quality threshold counts (e.g. 'At least Q20...') returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_FREQUENCIES
public static final double POSITION_FREQUENCIES
The value that the frequencies of nucleotides or amino acids in the sequence returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_AMINO_ACID_TRANSLATION_FREQUENCIES
public static final double POSITION_AMINO_ACID_TRANSLATION_FREQUENCIES
The value that amino acid translation frequencies returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
POSITION_CODON_FREQUENCIES
public static final double POSITION_CODON_FREQUENCIES
The value that codon frequencies returns fromgetVerticalPosition()
- See Also:
- Constant Field Values
-
RELATIVE_POSITION_DIRECTLY_BELOW
public static final double RELATIVE_POSITION_DIRECTLY_BELOW
Added to the position of a statistic to position it directly below the other statistic. SeeStatisticsSection(String, Number, String, double)
for more details.
-
RELATIVE_POSITION_BELOW
public static final double RELATIVE_POSITION_BELOW
Added to the position of a statistic to position it below the other statistic. SeeStatisticsSection(String, Number, String, double)
for more details.
-
-
Constructor Detail
-
StatisticsSection
public StatisticsSection(java.lang.String name, java.lang.Number numericValue, java.lang.String nicelyFormattedNameAndValue, double verticalPosition, java.util.List<DocumentFieldAndValue> documentFieldsAndValues)
Creates a new statistics section- Parameters:
name
- the name of this statistic used for programmatic purposes only to distinguish it from other sections returned by this same plugin. May be an empty String if this plugin returns only a single section.numericValue
- a numeric value for this statistic for use with other plugins that may wish to obtain the value. May be null for statistics that have no numeric value.nicelyFormattedNameAndValue
- the text displayed in the sequence viewer statistics.verticalPosition
- a vertical position for this text between 0 and 1. For examplePOSITION_SEQUENCE_LENGTH
+RELATIVE_POSITION_BELOW
could be used to position it below the sequence length section. Use 1.0 to position it below all other statistics. Generally you should addRELATIVE_POSITION_DIRECTLY_BELOW
to some existing section position if it is closely associated with it. If you just want to position it below another statistic which it isn't closely associated with, addRELATIVE_POSITION_BELOW
and prefix nicelyFormattedNameAndValue with a newline character (\n) to separate your statistic into its own section.documentFieldsAndValues
- this statistics section as a list of fields and values. May be empty, in which case this statistic won't appear in the document table.- Since:
- API 4.202100 (Geneious 2021.0.0)
- See Also:
POSITION_SEQUENCE_LENGTH
,POSITION_FREQUENCIES
,POSITION_AMINO_ACID_TRANSLATION_FREQUENCIES
,POSITION_CODON_FREQUENCIES
-
StatisticsSection
public StatisticsSection(java.lang.String name, java.lang.Number numericValue, java.lang.String nicelyFormattedNameAndValue, double verticalPosition)
Equivalent to(StatisticsSection(name, numericValue, nicelyFormattedNameAndValue, verticalPosition, Collections.emptyList()
-
-
Method Detail
-
getNicelyFormattedNameAndValue
public java.lang.String getNicelyFormattedNameAndValue()
- Returns:
- the text to display in the sequence viewer, which may contain html fragments
-
getNumericValue
public java.lang.Number getNumericValue()
- Returns:
- a numeric value for this statistic for use with other plugins that may wish to obtain the value. May be null for statistics that have no numeric value.
-
getName
public java.lang.String getName()
- Returns:
- the name of this statistic used for programmatic purposes only to distinguish it from other sections returned by this same plugin. May be an empty String if this plugin returns only a single section.
-
getVerticalPosition
public double getVerticalPosition()
- Returns:
- the vertical position for this text between 0 and 1. See
StatisticsSection(String, Number, String, double)
for details
-
getDocumentFieldsAndValues
public java.util.List<DocumentFieldAndValue> getDocumentFieldsAndValues()
- Returns:
- this statistics section as a list of fields and values. May be empty, in which case this statistic won't appear in the document table.
- Since:
- API 4.202100 (Geneious 2021.0.0)
-
-