Change identity of the beds$rec based on intersection result.

change_res_ident(bed_list, id, rec)

Arguments

bed_list

A list contains records of all bed files(Read by function get_beds()).

id

The ID of bed in bed_list.

rec

Result tibble from valr::intersection, contains (chrom, start, end, ident).

Value

A list which has been updated bed$res$ident based on intersection result.