C# Class CanvasSNV.SNVReviewer

The SNV reviewer takes as input a .vcf file (from the normal sample) and a .bam file (from the paired tumor sample). It processes a particular chromosome at a time. For all variants in the .vcf file that pass our filters, we review the variant allele frequency in the .bam file from the tumor sample. We output that data in tabular format.
Afficher le fichier Open project: Illumina/canvas Class Usage Examples

Protected Properties

Свойство Type Description
BamPath string
Chromosome string
MinimumMapQ int
OutputPath string
VcfPath string

Méthodes publiques

Méthode Description
Run ( ) : int
SNVReviewer ( string chromosome, string vcfPath, string bamPath, string outputPath, int minMapQ ) : System

Méthodes protégées

Méthode Description
LoadVariants ( string vcfPath ) : void

Step 1: Load the normal het SNVs of interest.

ProcessBamFile ( string bamPath ) : void

Step 2: Get the ref and variant allele frequencies for the variants of interest, in the tumor bam file.

WriteResults ( string outputPath ) : void

Step 3: Summarize results to a simple tab-delimited file.

Private Methods

Méthode Description
ProcessReadBases ( BamAlignment read, int nextVariantIndex ) : void

Use the CIGAR string to map bases to chromosome positions, and check whether we see the ref base or the variant allele for our variants of interest.

Method Details

LoadVariants() protected méthode

Step 1: Load the normal het SNVs of interest.
protected LoadVariants ( string vcfPath ) : void
vcfPath string
Résultat void

ProcessBamFile() protected méthode

Step 2: Get the ref and variant allele frequencies for the variants of interest, in the tumor bam file.
protected ProcessBamFile ( string bamPath ) : void
bamPath string
Résultat void

Run() public méthode

public Run ( ) : int
Résultat int

SNVReviewer() public méthode

public SNVReviewer ( string chromosome, string vcfPath, string bamPath, string outputPath, int minMapQ ) : System
chromosome string
vcfPath string
bamPath string
outputPath string
minMapQ int
Résultat System

WriteResults() protected méthode

Step 3: Summarize results to a simple tab-delimited file.
protected WriteResults ( string outputPath ) : void
outputPath string
Résultat void

Property Details

BamPath protected_oe property

protected string BamPath
Résultat string

Chromosome protected_oe property

protected string Chromosome
Résultat string

MinimumMapQ protected_oe property

protected int MinimumMapQ
Résultat int

OutputPath protected_oe property

protected string OutputPath
Résultat string

VcfPath protected_oe property

protected string VcfPath
Résultat string