Package VCF

Class Sample


  • public class Sample
    extends java.lang.Object
    Represents a sample in a VCF file
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Genotype> genotypeList()
      Get a list of genotypes for this sample
      java.util.stream.Stream<Genotype> genotypeStream()
      Get a stream of genotypes for this sample
      java.lang.String name()
      Gets the name of the sample
      PositionMeta[] positions()
      Gets an array of positions in the sample
      • Methods inherited from class java.lang.Object

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

      • name

        public java.lang.String name()
        Gets the name of the sample
        Returns:
        The name
      • positions

        public PositionMeta[] positions()
        Gets an array of positions in the sample
        Returns:
        Array of positions
      • genotypeStream

        public java.util.stream.Stream<Genotype> genotypeStream()
        Get a stream of genotypes for this sample
        Returns:
        Stream of genotypes
      • genotypeList

        public java.util.List<Genotype> genotypeList()
        Get a list of genotypes for this sample
        Returns:
        List of genotypes