palimpsest_dfPosXSegm: palimpsest_dfPosXSegm

View source: R/palimpsest_utils.R

palimpsest_dfPosXSegmR Documentation

palimpsest_dfPosXSegm

Description

Function to annotate positions in a data frame (dfPos) using segments in another data frame (dfSegm)

Usage

palimpsest_dfPosXSegm(
  dfPos = NULL,
  dfPos.chrom.col = "chrom",
  dfPos.pos.col = "pos",
  dfSegm = NULL,
  dfSegm.chrom.col = "chrom",
  dfSegm.start.col = "start",
  dfSegm.end.col = "end",
  colsToAdd = NULL,
  namesColsToAdd = NULL,
  multseg = c(NA, "first", "all")[1]
)

Arguments

dfPos

Data frame with positions to annotate

dfPos.chrom.col

Chromosome column in dfPos

dfPos.pos.col

Position column in dfPos

dfSegm

Data frame with segments to use for annotating dfPos

dfSegm.chrom.col

Chromosome column in dfSegm

dfSegm.start.col

Start position column in dfSegm

dfSegm.end.col

End position column in dfSegm

colsToAdd

Names of columns in dfSegm that should be used to annotate dfPos

namesColsToAdd

Column names to give in the columns added to dfPos

multseg

required


FunGeST/Palimpsest documentation built on June 2, 2024, 4:21 a.m.