Skip to contents

This function computes the total coverage of a track, and adds it as an attribute to the track. If the attribute was pre-computed before, it is returned. Set the overwrite parameter to TRUE to recompute the coverage.

Usage

get_track_total_coverage(track, attr_name = "total_cov", overwrite = FALSE)

Arguments

track

track name

attr_name

attribute name. Default is "total_cov", please do not change this unless you know what you are doing.

overwrite

overwrite existing attribute (logical)

Value

Total coverage of the track.

Examples

if (FALSE) {
add_track_total_coverage("track1")
}