simulateDigestion: Simulate the digestion of a genome

Description Usage Arguments Details Value Note Author(s) Examples

Description

This function simulates the digestion process with two restriction enzymes for a dna sequence or a BSgenome package. The information can then be used for quality controls of the biological fragment library.

Usage

1
    simulateDigestion(firstCutter, secondCutter, dnaSequence)

Arguments

firstCutter

First restriction enzyme sequence for the digestion process

secondCutter

Second restriction enzyme sequence for the digestion process

dnaSequence

DNA sequence that is digested

Details

The resulting virtual library of fragment parts does not provide information on blind or non-blind fragments, but provides information on the fragment length distribution of the real (i.e. biological) 4C-seq library. In contrast to the regular virtual fragment library for 4C-seq data, fragments between two adjacent secondary restriction enzyme sites are counted as well.

Value

Data frame with lengths and corresponding frequences of fragments

Note

Author(s)

Carolin Walter

Examples

1
2
3
    shortTestGenome = "ATCCATGTAGGCTAAGTACACATGTTAAGGTACAGTACAATTGCACGATCAT"
    fragments = simulateDigestion("catg", "gtac", shortTestGenome)
    head(fragments)

Basic4Cseq documentation built on Nov. 8, 2020, 6:53 p.m.