Package VCF
Class Meta
- java.lang.Object
-
- VCF.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 informationjava.util.List<java.lang.String>
getLinesList()
Get the meta linesjava.util.stream.Stream<java.lang.String>
getLinesStream()
Get the meta linesboolean
hasFormat(java.lang.String format)
Tests whether the input format is included in the meta informationvoid
removeFormat(java.lang.String format)
Removes the given format from the meta information
-
-
-
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 codeline
- 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
-
-