edu.ucla.stat.SOCR.analyses.command.volume
Class Test_FDR

java.lang.Object
  extended by edu.ucla.stat.SOCR.analyses.command.volume.Test_FDR

public class Test_FDR
extends java.lang.Object


Constructor Summary
Test_FDR()
          FDR object constructor
 
Method Summary
static void fuseFDRResultsWithMask()
          fuseFDRResultsWithMask() method This method fuses back the FDR-corrected pValues with the mask ( to produce an output of the same dimension as the initial array of p-values p_values * mask -> MaskedPvalues --FDR--> thresholdedPMap -> FuseWithMask -> Results
static void main(java.lang.String[] args)
          FDR object main method
static void maskPValues()
          maskPValues() method This method extracts only the pValues that are under the mask (shrinks the pvalues array) Extract the data under the mask! p_values * mask -> MaskedPvalues --FDR--> thresholdedPMap -> FuseWithMask -> Results
static void readAsciiData()
          readAsciiData() method Reads data from an ASCII text file (one number, probability-value, per line)
static void readAsciiMaskShape()
          readAsciiMaskShape() method Reads shape mask from an ASCII text file (one number, probability-value, per line)
static void readBinaryData()
          readBinaryData() method Reads data from a Binary file (4-byte floats)
static void readBinaryMaskVolume()
          readBinaryMaskVolume() method Reads volume-mask from a Binary file (1-byte character array)
static void reportUsage()
          reportUsage() method Report the usage of this class
static void setByteOrder(javax.imageio.stream.MemoryCacheImageInputStream dis, java.lang.String byteorder)
          This method sets the Bite-Order for a MemoryCacheImageInputStream
static void setByteOrder(javax.imageio.stream.MemoryCacheImageOutputStream dos, java.lang.String byteorder)
          This method sets the Bite-Order for a MemoryCacheImageOutputStream
static void writeAsciiData()
          writeAsciiData() method Writes results to an ASCII text file (one number, probability-value, per line)
static void writeBinaryData()
          writeBinaryData() method Writes results to a Binary file (4-byte float)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Test_FDR

public Test_FDR()
FDR object constructor

Method Detail

reportUsage

public static void reportUsage()
reportUsage() method Report the usage of this class


main

public static void main(java.lang.String[] args)
FDR object main method

Parameters:
args - a String array of command-line call arguments

readAsciiData

public static void readAsciiData()
readAsciiData() method Reads data from an ASCII text file (one number, probability-value, per line)


readAsciiMaskShape

public static void readAsciiMaskShape()
readAsciiMaskShape() method Reads shape mask from an ASCII text file (one number, probability-value, per line)


writeAsciiData

public static void writeAsciiData()
writeAsciiData() method Writes results to an ASCII text file (one number, probability-value, per line)


readBinaryData

public static void readBinaryData()
readBinaryData() method Reads data from a Binary file (4-byte floats)


readBinaryMaskVolume

public static void readBinaryMaskVolume()
readBinaryMaskVolume() method Reads volume-mask from a Binary file (1-byte character array)


writeBinaryData

public static void writeBinaryData()
writeBinaryData() method Writes results to a Binary file (4-byte float)


maskPValues

public static void maskPValues()
maskPValues() method This method extracts only the pValues that are under the mask (shrinks the pvalues array) Extract the data under the mask! p_values * mask -> MaskedPvalues --FDR--> thresholdedPMap -> FuseWithMask -> Results


fuseFDRResultsWithMask

public static void fuseFDRResultsWithMask()
fuseFDRResultsWithMask() method This method fuses back the FDR-corrected pValues with the mask ( to produce an output of the same dimension as the initial array of p-values p_values * mask -> MaskedPvalues --FDR--> thresholdedPMap -> FuseWithMask -> Results


setByteOrder

public static void setByteOrder(javax.imageio.stream.MemoryCacheImageInputStream dis,
                                java.lang.String byteorder)
This method sets the Bite-Order for a MemoryCacheImageInputStream

Parameters:
dis - - MemoryCacheImageInputStream
byteorder - - String representation of byteorder. Options are big (java.nio.ByteOrder.BIG_ENDIAN) little (java.nio.ByteOrder.LITTLE_ENDIAN) system (default system byteorder, java.nio.ByteOrder.nativeOrder())

setByteOrder

public static void setByteOrder(javax.imageio.stream.MemoryCacheImageOutputStream dos,
                                java.lang.String byteorder)
This method sets the Bite-Order for a MemoryCacheImageOutputStream

Parameters:
dis - - MemoryCacheImageOutputStream
byteorder - - String representation of byteorder. Options are big (java.nio.ByteOrder.BIG_ENDIAN) little (java.nio.ByteOrder.LITTLE_ENDIAN) system (default system byteorder, java.nio.ByteOrder.nativeOrder())