import_BEDPE_to_List: Import a BEDPE

View source: R/import_BEDPE_to_List.R

import_BEDPE_to_ListR Documentation

Import a BEDPE

Description

Import a paired-end BEDPE file as a list object c(tibble BED of first end, tibble BED of last end). The direction / grouping of first and last ends is arbitrary.

Usage

import_BEDPE_to_List(
  bedpefile,
  metadata_cols = NULL,
  prefix_InteractionID = NULL
)

Arguments

bedpefile

A tab-delimited file in bedpe format with columns: chromA, startA, endA, chromB, startB, endB, ...(metadata cols)...

metadata_cols

A character vector of the names of metadata columns (bedfile cols 4+) in the BED file

Value

A paired (first + last) list representation of the BEDPE file as two valr-compatible tibble BEDs with an ID column matching pairs, optionally with metadata columns


alextidd/tgp documentation built on June 1, 2022, 9:25 a.m.