#!/bin/bash -ve

UTILDIR=`pwd`/../

${UTILDIR}/run_EdgeR.pl --matrix transcript_read_counts.RAW --trans_lengths trans_lengths.txt --output test.out.dir

cd test.out.dir

${UTILDIR}/analyze_diff_expr.pl --matrix transcript_read_counts.RAW.normalized.FPKM -P 1e-12 -C 7

${UTILDIR}/define_clusters_by_cutting_tree.pl -K 6

cd clusters_fixed_K_6/

${UTILDIR}/plot_expression_patterns.pl subcluster_*

