Learn R Programming

DEploid.utils (version 0.0.1)

extractCoverageFromTxt: Extract read counts from plain text file

Description

Extract read counts from tab-delimited text files of a single sample.

Usage

extractCoverageFromTxt(refFileName, altFileName)

Value

A data.frame contains four columns: chromosomes, positions, reference allele count, alternative allele count.

Arguments

refFileName

Path of the reference allele count file.

altFileName

Path of the alternative allele count file.

Examples

Run this code
refFile <- system.file("extdata", "PG0390-C.test.ref", package = "DEploid.utils")
altFile <- system.file("extdata", "PG0390-C.test.alt", package = "DEploid.utils")
PG0390 <- extractCoverageFromTxt(refFile, altFile)

Run the code above in your browser using DataLab