Learn R Programming

Basic4Cseq (version 1.8.0)

drawDigestionFragmentHistogram: Visualize digestion fragments with a histogram

Description

This function is a small convenience function to plot the results of simulateDigestion as a histogram. Minimum and maximum fragment lengths can be specified to visualize a specified interval of the fragment data.

Usage

drawDigestionFragmentHistogram(fragments, minLength = 0, maxLength = 10000)

Arguments

fragments
Fragment data to visualize (data frame with lengths and corresponding frequencies)
minLength
Minimum fragment length to visualize
maxLength
Maximum fragment length to visualize

Value

Examples

Run this code
  shortTestGenome = "ATCCATGTAGGCTAAGTACACATGTTAAGGTACAGTACAATTGCACGATCAT"
  fragments = simulateDigestion("catg", "gtac", shortTestGenome)
  drawDigestionFragmentHistogram(fragments)

Run the code above in your browser using DataLab