C# Class CanvasDiploidCaller.CanvasDiploidCaller

Afficher le fichier Open project: Illumina/canvas Class Usage Examples

Méthodes publiques

Свойство Type Description
CoverageWeighting double
IsDbsnpVcf bool
TempFolder string

Protected Properties

Свойство Type Description
MeanCoverage float
MedianHetSnpsDistance int
MinimumVariantFrequenciesForInformativeSegment int

Méthodes publiques

Méthode Description
AggregateCounts ( List &segments ) : float[]
AggregateVariantCoverage ( List &segments ) : int
CallVariants ( string variantFrequencyFile, string inFile, string outFile, string ploidyBedPath, string referenceFolder, string sampleName, string truthDataPath ) : int
InitializePloidies ( ) : void

Setup: Model various copy ploidies.

Méthodes protégées

Méthode Description
GetKnownCNForSegment ( CanvasSegment segment ) : int

Check whether we know the CN for this segment. Look for a known-CN interval that covers (at least half of) this segment. Return -1 if we don't know its CN.

GetProjectedMeanCoverage ( double diploidCoverage ) : double[]

Compute the expected bin counts for each copy number, given a specified bin count for CN=2 regions

InitializeModelPoints ( CoverageModel model ) : List

Private Methods

Méthode Description
AssignPloidyCallsDistance ( CoverageModel model, List segments, int medianVariantCoverage ) : void
AssignPloidyCallsGaussianMixture ( ) : void

Assign a SegmentPloidy to each CanvasSegment, based on which model matches this segment best:

FitGaussians ( CoverageModel model, List segments, string debugPath = null ) : double

Fit a Gaussian mixture model. Fix the means to the model MAF and Coverage and run the EM algorithm until convergence. Compute the empirical MAF and Coverage. Fix the means to the empirical MAF and Coverage and run the EM algorithm again until convergence. Always estimate the full covariance matrix?

GenerateReportVersusKnownCN ( ) : void

Generate a table listing segments (and several features), and noting which are accurate (copy number exactly matches truth set) or directionally accurate (copy number and truth set are both <2, both =2, or both >2) This table will become our collection of feature vectors for training q-scores!

Method Details

AggregateCounts() public static méthode

public static AggregateCounts ( List &segments ) : float[]
segments List
Résultat float[]

AggregateVariantCoverage() public static méthode

public static AggregateVariantCoverage ( List &segments ) : int
segments List
Résultat int

CallVariants() public méthode

public CallVariants ( string variantFrequencyFile, string inFile, string outFile, string ploidyBedPath, string referenceFolder, string sampleName, string truthDataPath ) : int
variantFrequencyFile string
inFile string
outFile string
ploidyBedPath string
referenceFolder string
sampleName string
truthDataPath string
Résultat int

GetKnownCNForSegment() protected méthode

Check whether we know the CN for this segment. Look for a known-CN interval that covers (at least half of) this segment. Return -1 if we don't know its CN.
protected GetKnownCNForSegment ( CanvasSegment segment ) : int
segment CanvasCommon.CanvasSegment
Résultat int

GetProjectedMeanCoverage() protected static méthode

Compute the expected bin counts for each copy number, given a specified bin count for CN=2 regions
protected static GetProjectedMeanCoverage ( double diploidCoverage ) : double[]
diploidCoverage double
Résultat double[]

InitializeModelPoints() protected méthode

protected InitializeModelPoints ( CoverageModel model ) : List
model CanvasCommon.CoverageModel
Résultat List

InitializePloidies() public méthode

Setup: Model various copy ploidies.
public InitializePloidies ( ) : void
Résultat void

Property Details

CoverageWeighting public_oe static_oe property

public static double CoverageWeighting
Résultat double

IsDbsnpVcf public_oe property

public bool IsDbsnpVcf
Résultat bool

MeanCoverage protected_oe property

protected float MeanCoverage
Résultat float

MedianHetSnpsDistance protected_oe property

protected int MedianHetSnpsDistance
Résultat int

MinimumVariantFrequenciesForInformativeSegment protected_oe static_oe property

protected static int MinimumVariantFrequenciesForInformativeSegment
Résultat int

TempFolder public_oe property

public string TempFolder
Résultat string