public void printTableNormByLength() throws IOException{
	System.out.println("printing the resulting expression table to " + outFile);
        System.out.println("Normalize=" + normalize);
	//BufferedWriter outReads = new BufferedWriter (new FileWriter(outFile));
	TextFile outReads = new TextFile(outFile, true);
        String curCount="", numReads="",trName="";
        String tr_id;
        float reads=0;
        outReads.write("probe\t");
        outReads.writelnTabDelimited(sampleNames);
        for (int tr = 0; tr < trSize; tr++){            
            //if ( (featureExpressed[tr]) && (avgHigherThanThreshold(1, table[tr])) ){
            if (featureExpressed[tr]){    
                tr_id = allTranscr.get(tr);
                outReads.write(tr_id);
                if (normalize){
                    for (int sam = 0; sam < samplesSize; sam++){
                        reads = (table[tr][sam] * 1000000) / (readsPerSample[sam] * trLengths.get(tr_id));
                        outReads.write("\t" + String.format("%.8f", reads));//reads

                    }
                }
                else{
                    for (int sam = 0; sam < samplesSize; sam++){
                        
                        reads = (table[tr][sam] * 1000000) / trLengths.get(tr_id);
                        outReads.write("\t" + String.format("%.8f", reads));//reads
                        
                    }
                }
                outReads.writeln();
            }
        }
        outReads.close();
    }