palimpsest_dfPosXSegm: palimpsest_dfPosXSegm

Description Usage Arguments

View source: R/palimpsest_utils.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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 10, 2021, 6:35 p.m.