Package VCF
Class Sample
- java.lang.Object
-
- VCF.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 samplejava.util.stream.Stream<Genotype>
genotypeStream()
Get a stream of genotypes for this samplejava.lang.String
name()
Gets the name of the samplePositionMeta[]
positions()
Gets an array of positions in the sample
-
-
-
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
-
-