Class ExpressionReducer


  • public class ExpressionReducer
    extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,​org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.Text,​org.apache.hadoop.io.LongWritable>
    Reducer for the expression estimation.
    Since:
    1.2
    Author:
    Claire Wallon
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer

        org.apache.hadoop.mapreduce.Reducer.Context
    • Constructor Detail

      • ExpressionReducer

        public ExpressionReducer()
    • Method Detail

      • reduce

        protected void reduce​(org.apache.hadoop.io.Text key,
                              Iterable<org.apache.hadoop.io.LongWritable> values,
                              org.apache.hadoop.mapreduce.Reducer.Context context)
                       throws IOException,
                              InterruptedException
        'key': annotation identifier of the feature (gene, mRNA, exon...). 'values': a list of '1', the size of this list is the number of reads found on the feature.
        Overrides:
        reduce in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Text,​org.apache.hadoop.io.LongWritable,​org.apache.hadoop.io.Text,​org.apache.hadoop.io.LongWritable>
        Throws:
        IOException
        InterruptedException