public class SomaticVariationOutputFormat extends Object implements SequenceVariationOutputFormat
| sample-id | patient-id | gender | type | kind-of-sample | tissue | parents | offspring |
| S1 | P1 | Male | Father | Germline | Blood | N/A | S3|S4 |
| S2 | P2 | Female | Mother | Germline | Blood | N/A | S3|S4 |
| S3 | P3 | Male | Patient | Somatic | Blood | S1|S2 | N/A |
| S4 | P3 | Male | Patient | Germline | Skin | S1|S2 | N/A |
| Modifier and Type | Field and Description |
|---|---|
static DynamicOptionClient |
doc |
protected it.unimi.dsi.fastutil.doubles.DoubleArrayList |
pValues |
| Constructor and Description |
|---|
SomaticVariationOutputFormat() |
| Modifier and Type | Method and Description |
|---|---|
void |
allocateStorage(int numberOfSamples,
int numberOfGroups)
Allocate storate needed to estimate the statistics the format outputs.
|
void |
close() |
void |
defineColumns(OutputInfo outputInfo,
DiscoverSequenceVariantsMode mode)
Define columns needed by this file format in the statsWriter.
|
static DynamicOptionClient |
doc() |
void |
estimatePriority(SampleCountInfo[] sampleCounts) |
void |
estimateSomaticFrequencies(SampleCountInfo[] sampleCounts) |
void |
estimateSomaticPValue(SampleCountInfo[] sampleCounts) |
int[] |
getCandidateFrequencyIndex() |
boolean |
isSomaticCandidate() |
boolean |
isStrictSomaticCandidate() |
void |
setCandidateFrequencyIndex(int[] candidateFrequencyIndex) |
void |
setCovariateInfo(CovariateInfo covInfo) |
void |
setGenome(RandomAccessSequenceInterface genome)
Optionally give access to the genome to the file format writer.
|
void |
setGenomeReferenceIndex(int index) |
protected void |
setSample2FatherSampleIndex(int[] sample2FatherSampleIndex) |
protected void |
setSample2GermlineSampleIndices(int[][] sample2GermlineSampleIndices) |
protected void |
setSample2MotherSampleIndex(int[] sample2MotherSampleIndex) |
protected void |
setSomaticPValueIndex(int[] somaticPValueIndex) |
protected void |
setSomaticSampleIndices(it.unimi.dsi.fastutil.ints.IntArrayList somaticSampleIndices)
Hook to install the somatic sample indices for testing.
|
protected void |
setStatsWriter(VCFWriter statsWriter)
Hook to install mock statsWriter.
|
void |
setupR() |
void |
writeRecord(DiscoverVariantIterateSortedAlignments iterator,
SampleCountInfo[] sampleCounts,
int referenceIndex,
int position,
DiscoverVariantPositionData list,
int groupIndexA,
int groupIndexB)
Write statistics to the statsWriter for each position that should be reported.
|
public static final DynamicOptionClient doc
protected it.unimi.dsi.fastutil.doubles.DoubleArrayList pValues
public static final DynamicOptionClient doc()
protected void setSomaticPValueIndex(int[] somaticPValueIndex)
protected void setStatsWriter(VCFWriter statsWriter)
protected void setSomaticSampleIndices(it.unimi.dsi.fastutil.ints.IntArrayList somaticSampleIndices)
somaticSampleIndices - public void defineColumns(OutputInfo outputInfo, DiscoverSequenceVariantsMode mode)
SequenceVariationOutputFormatdefineColumns in interface SequenceVariationOutputFormatoutputInfo - where output will be written.mode - The discover mode provides arguments that the format may need to define columns.public void allocateStorage(int numberOfSamples,
int numberOfGroups)
SequenceVariationOutputFormatallocateStorage in interface SequenceVariationOutputFormatnumberOfSamples - Number of samples in the comparisonnumberOfGroups - Number of groups being compared.public void writeRecord(DiscoverVariantIterateSortedAlignments iterator, SampleCountInfo[] sampleCounts, int referenceIndex, int position, DiscoverVariantPositionData list, int groupIndexA, int groupIndexB)
SequenceVariationOutputFormatwriteRecord in interface SequenceVariationOutputFormatpublic void close()
close in interface SequenceVariationOutputFormatpublic void setGenome(RandomAccessSequenceInterface genome)
SequenceVariationOutputFormatsetGenome in interface SequenceVariationOutputFormatpublic void setGenomeReferenceIndex(int index)
setGenomeReferenceIndex in interface SequenceVariationOutputFormatprotected void setSample2FatherSampleIndex(int[] sample2FatherSampleIndex)
protected void setSample2GermlineSampleIndices(int[][] sample2GermlineSampleIndices)
protected void setSample2MotherSampleIndex(int[] sample2MotherSampleIndex)
public void estimatePriority(SampleCountInfo[] sampleCounts)
public void estimateSomaticFrequencies(SampleCountInfo[] sampleCounts)
public void setCovariateInfo(CovariateInfo covInfo)
public boolean isSomaticCandidate()
public boolean isStrictSomaticCandidate()
public void setCandidateFrequencyIndex(int[] candidateFrequencyIndex)
public int[] getCandidateFrequencyIndex()
public void estimateSomaticPValue(SampleCountInfo[] sampleCounts)
public void setupR()
Copyright © 2018 Campagne Laboratory. All rights reserved.