public class SampleCountInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BASE_A_INDEX |
static int |
BASE_C_INDEX |
static int |
BASE_G_INDEX |
static int |
BASE_MAX_INDEX |
static int |
BASE_OTHER_INDEX |
static int |
BASE_T_INDEX |
it.unimi.dsi.fastutil.ints.IntSet |
distinctReadIndices |
int |
failedCount
Number of bases that failed base filters, for any reason.
|
boolean[] |
filtered
While base genotypes were flagged for removal by some filter in this sample.
|
int |
refCount |
char |
referenceBase |
int |
sampleIndex |
int |
varCount |
| Constructor and Description |
|---|
SampleCountInfo() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIndel(EquivalentIndelRegion indel)
Add an indel to this sample info.
|
static void |
alignIndels(SampleCountInfo[] samples)
Align indel genotypes so that genotype indices refer to the same genotype across a set of samples.
|
boolean |
anyCountNegative() |
char |
base(int baseIndex) |
int |
baseIndex(char to) |
String |
baseString(int genotypeIndex) |
void |
clearGenotypeCount(int baseIndex) |
void |
clearIndels()
Remove all previously recorded indels.
|
int |
coverage()
Return the number of bases that cover this site, irrespective of genotype.
|
float |
frequency(int genotypeIndex)
Return the base frequency of this genotype in this one sample.
|
int |
getCountsSize()
return the number of base genotypes.
|
it.unimi.dsi.fastutil.objects.ObjectArrayList<EquivalentIndelRegion> |
getEquivalentIndelRegions() |
void |
getGenotype(int genotypeIndex,
it.unimi.dsi.lang.MutableString destination) |
int |
getGenotypeCount(int genotypeIndex)
Return the genotype frequency in the sample.
|
int |
getGenotypeCount(int genotypeIndex,
boolean matchesForwardStrand)
Return the genotype frequency in the sample.
|
int |
getGenotypeMaxIndex()
Return the maximum index for genotypes observed in this sample.
|
String |
getGenotypeString(int genotypeIndex) |
EquivalentIndelRegion |
getIndelGenotype(int genotypeIndex)
Return the indel at a given genotype index.
|
String |
getReferenceGenotype() |
int |
getSumCounts() |
int |
getSumOfCounts() |
boolean |
hasIndels()
Return true if this sample has indel observations (at least one indel with frequency>0).
|
int |
incrementGenotypeCount(int baseIndex,
boolean matchesForwardStrand) |
boolean |
isFiltered(int genotypeIndex) |
boolean |
isIndel(int genotypeIndex) |
boolean |
isReferenceGenotype(int genotypeIndex) |
void |
removeIndel(EquivalentIndelRegion indel)
Remove an indel from the list of candidate indels.
|
void |
setGenotypeCount(int genotypeIndex,
int count)
Reset a genotype count to a given value.
|
void |
setGenotypeCount(int genotypeIndex,
int count,
boolean matchesForwardStrand)
Reset a genotype count to a given value.
|
void |
suggestRemovingGenotype(int baseIndex,
boolean matchesForwardStrand) |
String |
toString() |
public static final int BASE_A_INDEX
public static final int BASE_T_INDEX
public static final int BASE_C_INDEX
public static final int BASE_G_INDEX
public static final int BASE_OTHER_INDEX
public static final int BASE_MAX_INDEX
public char referenceBase
public it.unimi.dsi.fastutil.ints.IntSet distinctReadIndices
public int sampleIndex
public int varCount
public int refCount
public int failedCount
public boolean[] filtered
public void addIndel(EquivalentIndelRegion indel)
indel - eir observed starting at the position this sampleCountInfo is associated with.public final int getGenotypeMaxIndex()
public static void alignIndels(SampleCountInfo[] samples)
samples - a set of samples under comparison.public boolean hasIndels()
public final char base(int baseIndex)
public final int baseIndex(char to)
public it.unimi.dsi.fastutil.objects.ObjectArrayList<EquivalentIndelRegion> getEquivalentIndelRegions()
public EquivalentIndelRegion getIndelGenotype(int genotypeIndex)
genotypeIndex - index of the indel genotypepublic final void getGenotype(int genotypeIndex,
it.unimi.dsi.lang.MutableString destination)
public final String getGenotypeString(int genotypeIndex)
public boolean isReferenceGenotype(int genotypeIndex)
public boolean isIndel(int genotypeIndex)
public String getReferenceGenotype()
public void clearIndels()
public final String baseString(int genotypeIndex)
public void removeIndel(EquivalentIndelRegion indel)
indel - to remove.public void suggestRemovingGenotype(int baseIndex,
boolean matchesForwardStrand)
public final int getGenotypeCount(int genotypeIndex)
genotypeIndex - Index of the genotype for which count/frequency is sought.public final int getGenotypeCount(int genotypeIndex,
boolean matchesForwardStrand)
genotypeIndex - Index of the genotype for which count/frequency is sought.public void setGenotypeCount(int genotypeIndex,
int count,
boolean matchesForwardStrand)
genotypeIndex - count - public void setGenotypeCount(int genotypeIndex,
int count)
genotypeIndex - count - public int incrementGenotypeCount(int baseIndex,
boolean matchesForwardStrand)
public int getSumCounts()
public boolean isFiltered(int genotypeIndex)
public float frequency(int genotypeIndex)
genotypeIndex - Index of a genotypepublic void clearGenotypeCount(int baseIndex)
public int getCountsSize()
public boolean anyCountNegative()
public int getSumOfCounts()
public int coverage()
Copyright © 2017 Campagne Laboratory. All rights reserved.