src/CombingExperimentSimulation.java
/**
     * Prints a histogram of the average number of forks as function of fraction replicated
     * Bin size for fraction replicated given in FX_REPLICATED_BIN_SIZE
     */
Prints a histogram of the average number of forks as function of fraction replicated
Bin size for fraction replicated given in FX_REPLICATED_BIN_SIZE
Prints a histogram of the average number of forks as function of fraction replicated Bin size for fraction replicated given in FX_REPLICATED_BIN_SIZE
public static void printObservedNumberForksPerChromosomeHistogram() {
        System.out.println("AVERAGE NUMBER OBSERVED FORKS PER CHROMOSOME AS FUNCTION OF FRACTION REPLICATED");
        System.out.println("midpoint\taveNumber");
        Map<Integer, List<CombedMolecule>> molMap = sortedCombedMolList.stream().collect(groupingBy(mol-> (int) (mol.getMoleculeProps().getFxReplicated() / FX_REPLICATED_BIN_SIZE)));
        for(int key : molMap.keySet()) {
            double averageNumberforks = molMap.get(key).stream().collect(averagingDouble(mol -> mol.getMoleculeProps().getNumberForks() * ParameterSet.SEQUENCE_LENGTH / mol.getMoleculeProps().getMolLength() / 1000));
            System.out.println((key + .5) * FX_REPLICATED_BIN_SIZE + "\t" + averageNumberforks);
        }    
    }
public static void printObservedNumberForksPerChromosomeHistogram ( ) { System . out . println ( "AVERAGE NUMBER OBSERVED FORKS PER CHROMOSOME AS FUNCTION OF FRACTION REPLICATED" ) ; System . out . println ( "midpoint\taveNumber" ) ; Map < Integer , List < CombedMolecule > > molMap = sortedCombedMolList . stream ( ) . collect ( groupingBy ( mol -> ( int ) ( mol . getMoleculeProps ( ) . getFxReplicated ( ) / FX_REPLICATED_BIN_SIZE ) ) ) ; for ( int key : molMap . keySet ( ) ) { double averageNumberforks = molMap . get ( key ) . stream ( ) . collect ( averagingDouble ( mol -> mol . getMoleculeProps ( ) . getNumberForks ( ) * ParameterSet . SEQUENCE_LENGTH / mol . getMoleculeProps ( ) . getMolLength ( ) / 1000 ) ) ; System . out . println ( ( key + .5 ) * FX_REPLICATED_BIN_SIZE + "\t" + averageNumberforks ) ; } }
Prints a histogram of the average number of forks as function of fraction replicated
 Bin size for fraction replicated given in FX_REPLICATED_BIN_SIZE
Prints a histogram of the average number of forks as function of fraction replicated Bin size for fraction replicated given in FX_REPLICATED_BIN_SIZE