|
| static Logger | logger = Logger.getLogger(SampleData.class.getName()) |
| |
| broad.pda.seq.clip.SampleData.SampleData |
( |
String |
bamFile, |
|
|
boolean |
firstReadTranscriptionStrand, |
|
|
Map< String, Collection< Gene >> |
genes, |
|
|
double |
expressionCutoff, |
|
|
boolean |
expByScanPval, |
|
|
boolean |
fullyContained |
|
) |
| throws IOException |
- Parameters
-
| bamFile | Bam file |
| firstReadTranscriptionStrand | Whether read 1 is in direction of transcription |
| genes | Genes by chromosome |
| window | Window size |
| step | Step size |
| expressionCutoff | P value cutoff for scan test of gene expression |
| expByScanPval | Expression is assessed by scan P value. If false, uses average read depth |
| fullyContained | Count fully contained reads only |
- Exceptions
-
| boolean broad.pda.seq.clip.SampleData.firstReadTranscriptionStrand |
( |
| ) |
|
Whether read 1 is in direction of transcription
- Returns
- True iff first read transcription strand is true
| TranscriptomeSpaceAlignmentModel broad.pda.seq.clip.SampleData.getData |
( |
| ) |
|
Write the window scores to a file for future use
- Parameters
-
| m | Multi sample binding site caller that this belongs to |
- Exceptions
-
| IOException | Get the alignment data |
- Returns
- Alignment model
| double broad.pda.seq.clip.SampleData.getEnrichmentOverGene |
( |
Gene |
gene, |
|
|
Annotation |
window |
|
) |
| |
Get enrichment of a window over a gene
- Parameters
-
| gene | The gene |
| window | Window contained in the gene |
- Returns
- Enrichment of window over gene background
| double broad.pda.seq.clip.SampleData.getExpressionScanPvalueCutoff |
( |
| ) |
|
Get genome wide scan P value cutoff for expression of transcript
- Returns
- P value cutoff for transcript expression against genomic background
| TranscriptomeSpaceAlignmentModel broad.pda.seq.clip.SampleData.getFragmentLengthFilterData |
( |
| ) |
|
Get the alignment data filtered by max fragment length
- Returns
- Alignment model
| double broad.pda.seq.clip.SampleData.getFragmentLengthGeneCount |
( |
Gene |
gene | ) |
|
Get number of fragments mapping to gene after fragment length filter Get score from cache or calculate and cache score
- Parameters
-
- Returns
- The number of fragments mapping to the gene
| double broad.pda.seq.clip.SampleData.getGeneAverageCoverage |
( |
Gene |
gene | ) |
|
Get average coverage of gene Get score from cache or calculate and cache score
- Parameters
-
- Returns
- The average coverage of the gene
| double broad.pda.seq.clip.SampleData.getGeneCount |
( |
Gene |
gene | ) |
|
Get number of fragments mapping to gene Get score from cache or calculate and cache score
- Parameters
-
- Returns
- The number of fragments mapping to the gene
| double broad.pda.seq.clip.SampleData.getGeneScanPval |
( |
Gene |
gene | ) |
|
Get coordinate space wide scan P value of number of fragments mapping to the gene Get score from cache or calculate and cache score
- Parameters
-
- Returns
- The scan P value of the number of fragments mapping to the gene with respect to teh coordinate space
| Logger broad.pda.seq.clip.SampleData.getLogger |
( |
| ) |
|
Get the logger
- Returns
- The logger
| String broad.pda.seq.clip.SampleData.getOriginalBamFile |
( |
| ) |
|
Get name of original bam file
- Returns
- Bam file name
| String broad.pda.seq.clip.SampleData.getSampleName |
( |
| ) |
|
Get the sample name
- Returns
- Sample name
| int broad.pda.seq.clip.SampleData.hashCode |
( |
| ) |
|
| boolean broad.pda.seq.clip.SampleData.isExpressed |
( |
Gene |
gene | ) |
|
Whether the gene is significantly expressed in the sample
- Parameters
-
- Returns
- Whether the gene is expressed at the given significance level
| void broad.pda.seq.clip.SampleData.setExpressionScanPvalueCutoff |
( |
double |
expressionScanPvalCutoff | ) |
|
Set genome wide scan P value cutoff for expression of transcript
- Parameters
-
| expressionScanPvalCutoff | P value cutoff for transcript expression against genomic background |
| void broad.pda.seq.clip.SampleData.setSampleName |
( |
String |
name | ) |
|
Set the sample name
- Parameters
-
| TranscriptomeSpaceAlignmentModel broad.pda.seq.clip.SampleData.data |
|
protected |
| boolean broad.pda.seq.clip.SampleData.expressionByScanPval |
|
protected |
| double broad.pda.seq.clip.SampleData.expressionCutoffValue |
|
protected |
| boolean broad.pda.seq.clip.SampleData.fullyContainedReads |
|
protected |
| Map<Gene, Double> broad.pda.seq.clip.SampleData.geneAvgCoverage |
|
protected |
| Map<String, Collection<Gene> > broad.pda.seq.clip.SampleData.genesByChr |
|
protected |
| Map<String, Gene> broad.pda.seq.clip.SampleData.genesByName |
|
protected |
| Map<Gene, ScanStatisticScore> broad.pda.seq.clip.SampleData.geneScores |
|
protected |
| Logger broad.pda.seq.clip.SampleData.logger = Logger.getLogger(SampleData.class.getName()) |
|
static |
| TranscriptomeSpaceAlignmentModel broad.pda.seq.clip.SampleData.maxFragmentLengthData |
|
protected |
| Map<Gene, ScanStatisticScore> broad.pda.seq.clip.SampleData.maxFragmentLengthGeneScores |
|
protected |
| String broad.pda.seq.clip.SampleData.sampleName |
|
protected |
The documentation for this class was generated from the following file: