mergeTallyFiles {h5vc} | R Documentation

## Merging multiple tally files into one

### Description

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

### Usage

    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

    ## 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)

[Package h5vc version 2.14.0 Index]