DrawContigCumulLength: DrawContigCumulLength Function (SeQual)

View source: R/SeQual.R

DrawContigCumulLengthR Documentation

DrawContigCumulLength Function (SeQual)

Description

Return a line-plot describing the cumulative length of contigs (ordered from largest to smallest contig).

Usage

DrawContigCumulLength(
  nContigCumsumLength,
  cOrgAssemblyName,
  lGridInBackground = FALSE,
  cLineColor = "red",
  nLineWidth = 2,
  nLineType = 1
)

Arguments

nContigCumsumLength

A numeric vector containing the cumulative length of contigs (ordered from largest to smallest contig).

cOrgAssemblyName

The name of the genome assembly corresponding to these contigs.

lGridInBackground

If TRUE, add a grid in the background. Defaults to FALSE.

cLineColor

The color of the line. Defaults to "red".

nLineWidth

The width of the line. Defaults to 2.

nLineType

The type of the line. Defaults to 1.

Examples

myGenome <- Biostrings::readDNAStringSet(system.file(
  package = "DNAModAnnot", "extdata",
  "ptetraurelia_mac_51_sca171819.fa"
))

myContig_cumul_len_t <- GetContigCumulLength(dnastringsetGenome = myGenome)

DrawContigCumulLength(
  nContigCumsumLength = myContig_cumul_len_t$cumsum_Mbp_length,
  cOrgAssemblyName = "ptetraurelia_mac_51"
)

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