public class DiversityAnalyses extends AbstractTableReport implements TableReport, Serializable
Constructor and Description |
---|
DiversityAnalyses(GenotypeTable aa,
boolean slidingWindow,
int start,
int end,
int window,
int step) |
DiversityAnalyses(GenotypeTable aa,
boolean slidingWindow,
int start,
int end,
int window,
int step,
PolymorphismDistribution thePolymorphismDistribution)
Constructor that uses a sliding window
|
Modifier and Type | Method and Description |
---|---|
static double |
estimatePi(int totalSites,
double avgPairwiseDivergence,
double averageSiteCoverage) |
static double |
estimatePiPerbp(int totalSites,
double avgPairwiseDivergence,
double averageSiteCoverage) |
static double |
estimateTajimaD(int segSites,
double totalSites,
double averageSiteCoverage,
double taxa,
double pipbp,
double thetapbp) |
static double |
estimateTheta(int segSites,
int totalSites,
double averageSiteCoverage,
int taxa) |
static double |
estimateThetaPerbp(int segSites,
int totalSites,
double averageSiteCoverage,
int taxa) |
int |
getColumnCount()
Get the number of the columns
|
long |
getElementCount()
Get the total number of elements in the dataset.
|
Object[] |
getRow(long row)
Returns specified row.
|
long |
getRowCount()
Get the number of rows
|
Object[] |
getTableColumnNames()
Get the names of the columns
|
String |
getTableTitle()
Get the title of the table
|
String |
toString() |
getValueAt
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getValueAt, toStringTabDelim
public DiversityAnalyses(GenotypeTable aa, boolean slidingWindow, int start, int end, int window, int step, PolymorphismDistribution thePolymorphismDistribution)
aa
- an annotated alignmentslidingWindow
- if true a sliding window will be runpublic DiversityAnalyses(GenotypeTable aa, boolean slidingWindow, int start, int end, int window, int step)
public static double estimateTheta(int segSites, int totalSites, double averageSiteCoverage, int taxa)
public static double estimateThetaPerbp(int segSites, int totalSites, double averageSiteCoverage, int taxa)
public static double estimatePi(int totalSites, double avgPairwiseDivergence, double averageSiteCoverage)
public static double estimatePiPerbp(int totalSites, double avgPairwiseDivergence, double averageSiteCoverage)
public static double estimateTajimaD(int segSites, double totalSites, double averageSiteCoverage, double taxa, double pipbp, double thetapbp)
public Object[] getTableColumnNames()
TableReport
getTableColumnNames
in interface TableReport
public Object[] getRow(long row)
getRow
in interface TableReport
row
- row numberpublic String getTableTitle()
TableReport
getTableTitle
in interface TableReport
public long getRowCount()
TableReport
getRowCount
in interface TableReport
public long getElementCount()
TableReport
getElementCount
in interface TableReport
public int getColumnCount()
TableReport
getColumnCount
in interface TableReport
Copyright © 2018. All rights reserved.