mergeTallyFiles: Merging multiple tally files into one

Description Usage Arguments Details Value Author(s) Examples

View source: R/mergeTallyFiles.r

Description

Function to merge multiple tally files by genomic position (i.e. gluing samples together)

Usage

1
mergeTallyFiles( inputFiles, destFile, destGroup, blockSize = 1e6, sampleDims = c(), positionDims = c() )

Arguments

inputFiles

A list mapping input file names to the groups within them from which the data shall be taken (e.g. "example.tally.hfs5" -> "/ExampleStudy/16")

destFile

Name of the file that should be created

destGroup

Group within destFile that will hold the merged data

blockSize

Size of the blocks in bases that the merging will be performed in

sampleDims

List mapping dataset names to their respective sample dimension, e.g. "Counts" -> 2 - has the standard datasets included by default

positionDims

List mapping dataset names to their respective position dimension, e.g. "Counts" -> 4 - has the standard datasets included by default

Details

This function merges tally data from a list of tally files into a new destination file.

Value

[None] – prints progress messages along the way.

Author(s)

Paul Pyl

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
mergeTallyFiles{ # merging a file to itself, i.e. "doubling" it
  list(
    "example.tally.hfs5" = "/ExampleStudy/16",
    "example.tally.hfs5" = "/ExampleStudy/16"
  ),
  "test.merge.hfs5",
  "/MergedStudy/16"}

## End(Not run)

h5vc documentation built on Nov. 8, 2020, 4:56 p.m.