public class GeneScores extends Object
Constructor and Description |
---|
GeneScores(Collection<String> identifiers,
Settings settings,
StatusViewer m,
GeneAnnotations geneAnnotations,
String outputFileName)
Constructor for the case when we are just taking in a hit list.
|
GeneScores(GeneScores source,
GeneAnnotations geneAnnots)
Create a copy of source that contains only the probes given.
|
GeneScores(InputStream is,
SettingsHolder settings,
StatusViewer m,
GeneAnnotations geneAnnotations) |
GeneScores(List<String> probes,
List<Double> scores,
GeneAnnotations geneAnnots,
SettingsHolder settings)
Constructor designed for use when input is not a file.
|
GeneScores(String filename,
SettingsHolder settings,
StatusViewer messenger,
GeneAnnotations geneAnnots) |
Modifier and Type | Method and Description |
---|---|
Double[] |
getGeneScores()
Note that these will already be log-transformed, if that was requested by the user.
|
Double[] |
getGeneSetScores(GeneSetTerm geneSetTerm)
Get the gene scores for just the genes in the set indicated.
|
Map<Gene,Double> |
getGeneToScoreMap()
Note that these values will already be log tranformed if that was requested.
|
Map<Gene,Double> |
getGeneToScoreMap(boolean shuffle) |
int |
getNumGenesUsed() |
int |
getNumProbesUsed() |
Double[] |
getProbeScores()
Note that these values will already be log-transformed if that was requested.
|
Map<Probe,Double> |
getProbeToScoreMap()
Note that these values will already be log-transformed if that was requested
|
GeneAnnotations |
getPrunedGeneAnnotations() |
List<Gene> |
getRankedGenes() |
String |
getScoreColumnName()
Might not be available.
|
double |
getValueMap(String probe_id) |
boolean |
isNegativeLog10Transformed() |
int |
numGenesAboveThreshold(double geneScoreThreshold) |
boolean |
rankLargeScoresBest() |
String |
toString() |
void |
write(File f)
Write the gene scores to a file.
|
public GeneScores(Collection<String> identifiers, Settings settings, StatusViewer m, GeneAnnotations geneAnnotations, String outputFileName)
identifiers
- settings
- m
- geneAnnotations
- outputFileName
- if provided, also save this, and update the settings.public GeneScores(GeneScores source, GeneAnnotations geneAnnots)
source
- geneAnnots
- - the original gene annotation set, the probes here will be used as a starting pointpublic GeneScores(InputStream is, SettingsHolder settings, StatusViewer m, GeneAnnotations geneAnnotations) throws IOException
is
- - input streamsettings
- messenger
- geneAnnotations
- Source (original) geneannotation set.IOException
public GeneScores(List<String> probes, List<Double> scores, GeneAnnotations geneAnnots, SettingsHolder settings)
probes
- List of Strings.scores
- List of java.lang.Doubles containing the scores for each probe.geneAnnots
- Source (original) geneannotation set.settings
- public GeneScores(String filename, SettingsHolder settings, StatusViewer messenger, GeneAnnotations geneAnnots) throws IOException
filename
- settings
- messenger
- geneAnnots
- Source (original) geneannotation set.IOException
public Double[] getGeneScores()
public Double[] getGeneSetScores(GeneSetTerm geneSetTerm)
geneSetTerm
- public Map<Gene,Double> getGeneToScoreMap()
public Map<Gene,Double> getGeneToScoreMap(boolean shuffle)
shuffle
- Whether the map should be scrambled first. If so, then groups are randomly associated with scores,
but the actual values are the same. This is used for resampling multiple test correction.public int getNumGenesUsed()
public int getNumProbesUsed()
public Double[] getProbeScores()
public Map<Probe,Double> getProbeToScoreMap()
public GeneAnnotations getPrunedGeneAnnotations()
public List<Gene> getRankedGenes()
public String getScoreColumnName()
public double getValueMap(String probe_id)
probe_id
- public boolean isNegativeLog10Transformed()
public int numGenesAboveThreshold(double geneScoreThreshold)
geneScoreThreshold
- public boolean rankLargeScoresBest()
Settings.upperTail(), which does the same thing.
public void write(File f) throws IOException
f
- path to write toIOException
Copyright © 2002-2013 UBC Centre for High-Throughput Biology. All Rights Reserved.