Learn R Programming

DEploid (version 0.5.4)

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")
altFile = system.file("extdata", "PG0390-C.test.alt", package = "DEploid")
PG0390 = extractCoverageFromTxt(refFile, altFile)

Run the code above in your browser using DataLab