Formats results of segment_and_fit
Arguments
- result
a Histogram object which have attributes 'models' and 'p' (i.e. the return object of running segment_and_fit on a Histogram)
- model_name
One of the metrics used to fit models (e.g. Jaccard) and "consensus" if more than one metric was used to specify which model params to extract
Value
a data.frame with all or a subset of the following columns summarizing the results of the fit
- region_id
character string denoting the region_id of the Histogram
- segment_id
an integer id identifying the ordinal segment of the Histogram segmentation
- chr
an optional column denoting the chromosome of a GenomicHistogram object
- start
the interval start of the segment
- end
the interval end of the segment
- strand
an optional column denoting the strand of a GenomicHistogram object
- interval_count
the number of intervals in the segment - used for collapsing disjoint intervals
- interval_sizes
the width of each interval
- interval_starts
the start index of each interval
- histogram_start
the start index of the segment in the Histogram representation
- histogram_end
the end index of the segment in the Histogram representation
- value
the fitted value of the metric function
- metric
the metric used to fit the distribution
- dist
the distribution name
- sample_mean
weighted mean of the histogram
- sample_var
weighted variance of the histogram
- sample_sd
weighted standard deviation of the histogram
- sample_skew
weighted skew of the histogram
- dist_param0-9
the values of distribution parameters
- dist_param_name0-9
the matching names of distribution parameters