Package VCF

Class Meta


  • public class Meta
    extends java.lang.Object
    Represents the meta information in a VCF
    • Constructor Summary

      Constructors 
      Constructor Description
      Meta​(java.util.List<java.lang.String> lines)
      Constructor from the meta lines in a VCF
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFormat​(java.lang.String format, java.lang.String line)
      Adds a format to the meta information
      java.util.List<java.lang.String> getLinesList()
      Get the meta lines
      java.util.stream.Stream<java.lang.String> getLinesStream()
      Get the meta lines
      boolean hasFormat​(java.lang.String format)
      Tests whether the input format is included in the meta information
      void removeFormat​(java.lang.String format)
      Removes the given format from the meta information
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Meta

        public Meta​(java.util.List<java.lang.String> lines)
        Constructor from the meta lines in a VCF
        Parameters:
        lines - The meta lines
    • Method Detail

      • hasFormat

        public boolean hasFormat​(java.lang.String format)
        Tests whether the input format is included in the meta information
        Parameters:
        format - The format
        Returns:
        Whether the format is included in the meta information
      • removeFormat

        public void removeFormat​(java.lang.String format)
        Removes the given format from the meta information
        Parameters:
        format - The format to remove
      • addFormat

        public void addFormat​(java.lang.String format,
                              java.lang.String line)
        Adds a format to the meta information
        Parameters:
        format - The format's code
        line - The full line to add
      • getLinesList

        public java.util.List<java.lang.String> getLinesList()
        Get the meta lines
        Returns:
        A list of meta lines
      • getLinesStream

        public java.util.stream.Stream<java.lang.String> getLinesStream()
        Get the meta lines
        Returns:
        A stream of meta lines