Class MutableFeature

java.lang.Object
htsjdk.tribble.MutableFeature
All Implemented Interfaces:
Locatable, Feature

public class MutableFeature extends Object implements Feature
A mutable concrete Feature.
  • Field Details

    • contig

      public String contig
    • start

      public int start
    • end

      public int end
  • Constructor Details

    • MutableFeature

      public MutableFeature(Feature feature)
    • MutableFeature

      public MutableFeature(String contig, int start, int end)
  • Method Details

    • setAll

      public void setAll(Feature feature)
    • getContig

      public String getContig()
      Description copied from interface: Locatable
      Gets the contig name for the contig this is mapped to. May return null if there is no unique mapping.
      Specified by:
      getContig in interface Locatable
      Returns:
      name of the contig this is mapped to, potentially null
    • getStart

      public int getStart()
      Specified by:
      getStart in interface Locatable
      Returns:
      1-based start position, undefined if getContig() == null
    • getEnd

      public int getEnd()
      Specified by:
      getEnd in interface Locatable
      Returns:
      1-based closed-ended position, undefined if getContig() == null