Class SimpleStrandedFeature

    • Constructor Detail

    • Method Detail

      • getStrand

        public StrandedFeature.Strand getStrand()
        Description copied from interface: StrandedFeature
        Retrieve the strand that this feature lies upon.

        This will be one of StrandedFeature.POSITIVE or NEGATIVE.

        Specified by:
        getStrand in interface StrandedFeature
        Returns:
        one of the Strand constants
      • getSymbols

        public SymbolList getSymbols()
        Description copied from interface: Feature
        Return a list of symbols that are contained in this feature.

        The symbols may not be contiguous in the original sequence, but they will be concatenated together in the resulting SymbolList.

        The order of the Symbols within the resulting symbol list will be according to the concept of ordering within the location object.

        If the feature location is modified then this does not modify any SymbolList produced by earlier invocations of this method.

        Specified by:
        getSymbols in interface Feature
        Specified by:
        getSymbols in interface StrandedFeature
        Overrides:
        getSymbols in class SimpleFeature
        Returns:
        a SymbolList containing each symbol of the parent sequence contained within this feature in the order they appear in the parent
      • makeTemplate

        public Feature.Template makeTemplate()
        Description copied from interface: Feature
        Create a new Template that could be used to generate a feature identical to this one. The fields of the template can be edited without changing the feature.
        Specified by:
        makeTemplate in interface Feature
        Overrides:
        makeTemplate in class SimpleFeature
        Returns:
        a new Template that would make a feature like this one