dot-AddModMotifPctToDf: AddModMotifPctToDf Function (GloModAn)

.AddModMotifPctToDfR Documentation

AddModMotifPctToDf Function (GloModAn)

Description

Return the dataframe provided with the motif percentages associated to modifications in the GRanges object.

Usage

.AddModMotifPctToDf(
  dReportTable,
  grangesModPos,
  grangesGenome,
  dnastringsetGenome,
  cBaseLetterForMod,
  cModNameInOutput,
  nModPositionInMotif = 1,
  nUpstreamBpToAdd = 0,
  nDownstreamBpToAdd = 0
)

Arguments

dReportTable

The dataframe in which the motif percentages must be included.

grangesModPos

A GRanges object containing Modifications Positions data.

grangesGenome

A GRanges object containing the width of each contig.

dnastringsetGenome

A DNAStringSet object containing the sequence for each contig.

cBaseLetterForMod

The name of the base letter of the modified base.

cModNameInOutput

Name for the modification in the output.

nModPositionInMotif

Number representing the position of the modification in the ranges (after resizing if some base pairs were added). Defaults to 1.

nUpstreamBpToAdd

Number of base pairs to add upstream of the range from the GRanges object provided to obtain some sequence upstream of range. If some new ranges do not fit in the ranges of the contigs (provided with grangesGenome), those new ranges will be removed. New windows with gaps are also removed. Defaults to 0.

nDownstreamBpToAdd

Number of base pairs to add downstream of the range from the GRanges object provided to obtain some sequence downstream of range. If some new ranges do not fit in the ranges of the contigs (provided with grangesGenome), those new ranges will be removed. New windows with gaps are also removed. Defaults to 0.


AlexisHardy/DNAModAnnot documentation built on Feb. 27, 2023, 12:03 a.m.