Package ubic.gemma.core.analysis.service
Class ExpressionAnalysisResultSetFileServiceImpl
- java.lang.Object
-
- ubic.gemma.core.analysis.service.AbstractFileService<ExpressionAnalysisResultSet>
-
- ubic.gemma.core.analysis.service.ExpressionAnalysisResultSetFileServiceImpl
-
- All Implemented Interfaces:
ExpressionAnalysisResultSetFileService,FileService<ExpressionAnalysisResultSet>,JsonFileService<ExpressionAnalysisResultSet>,TsvFileService<ExpressionAnalysisResultSet>
@Service public class ExpressionAnalysisResultSetFileServiceImpl extends AbstractFileService<ExpressionAnalysisResultSet> implements ExpressionAnalysisResultSetFileService
-
-
Constructor Summary
Constructors Constructor Description ExpressionAnalysisResultSetFileServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwriteTsv(ExpressionAnalysisResultSet entity, Writer writer)Write the analysis result set to anAppendableusing a tabular format.voidwriteTsv(ExpressionAnalysisResultSet analysisResultSet, Baseline baseline, Map<Long,List<Gene>> resultId2Genes, Writer appendable)Write the analysis result set with result-to-gene mappings.-
Methods inherited from class ubic.gemma.core.analysis.service.AbstractFileService
escapeTsv, format, getSubDelimiter, getTsvFormatBuilder, write, write, writeJson
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ubic.gemma.core.analysis.service.FileService
write, write
-
-
-
-
Method Detail
-
writeTsv
public void writeTsv(ExpressionAnalysisResultSet entity, Writer writer) throws IOException
Description copied from interface:ExpressionAnalysisResultSetFileServiceWrite the analysis result set to anAppendableusing a tabular format.The format is borrowed from
ExpressionDataFileServiceand contains the following columns:- result id - probe id - probe name - pvalue - corrected pvalue (a.k.a. qvalue) - rank Then for each contrast, a column with the
contrast_prefix: - coefficient - log2 fold-change - t statistic - pvalue- Specified by:
writeTsvin interfaceExpressionAnalysisResultSetFileService- Specified by:
writeTsvin interfaceTsvFileService<ExpressionAnalysisResultSet>- Throws:
IOException
-
writeTsv
public void writeTsv(ExpressionAnalysisResultSet analysisResultSet, @Nullable Baseline baseline, Map<Long,List<Gene>> resultId2Genes, Writer appendable) throws IOException
Description copied from interface:ExpressionAnalysisResultSetFileServiceWrite the analysis result set with result-to-gene mappings.The tabular format has the following additional columns: - gene id - gene name - gene NCBI ID - gene official symbol - gene official name
- Specified by:
writeTsvin interfaceExpressionAnalysisResultSetFileServicebaseline- baseline to include in the TSV headerresultId2Genes- mapping of results to genes- Throws:
IOException
-
-