public void printTable(float[][] table) throws IOException{
	System.out.println("printing the resulting expression table to " + outFile);
        
        TextFile outReads = new TextFile(outFile, true);
        String curCount="", numReads="",trName="";
        float reads=0;
        int len;
        outReads.write("probe\t");
        outReads.writelnTabDelimited(sampleNames);
        for (int tr = 0; tr < trSize; tr++){            
            
            //if ( (featureExpressed[tr]) && (avgHigherThanThreshold(0, table[tr])) ){
              if (featureExpressed[tr]){
                String tr_id = allTranscr.get(tr);
                if (geneLengths.containsKey(tr_id)){
                    len = geneLengths.get(tr_id);
                    outReads.write(tr_id);
                    for (int sam = 0; sam < samplesSize; sam++){

                        reads = (table[tr][sam] * 1000000000) / readsPerSample[sam] / len;
                        outReads.write("\t" + String.format("%.8f", reads));//reads
                        //if (tr_id.equals("7SK"))
                        //    System.out.println(table[tr][sam] + "\t" + len + "\t" + reads);

                    }
                }
                else{
                    System.out.println("No gene " + tr_id + " in annotation file!");
              }
                
                outReads.writeln();
            }
        }
        outReads.close();
    }