Average out duplicate rows and created a new file

Hi Everyone,

I am new to galaxy and thus wanted to get some inputs. I have a microarray file with gene names as rows and corresponding sample data entered for each gene. But there are around 50,000 rows due to duplication in the genes listed as rows. Can galaxy be used to average out the gene rows with identical name and made into a fresh file with compressed data ? Any help in this direction will be much appreciated.