getCountsMetaPart: Create meta-data for single counts collection

View source: R/utils.R

getCountsMetaPartR Documentation

Create meta-data for single counts collection

Description

Creates a part of counts collections meta-data

Usage

getCountsMetaPart(counts_dir, collection_name, verbose)

Arguments

counts_dir

path to directory with count collections

collection_name

name of collection and collection's directory

verbose

logical value which determines a content of the output.

Details

Function assumes that collection_name contains meta.txt which is valid (in sence of validateCountsCollection). For each row in meta.txt function reads specified sample_id dataset and writes every sample id to the resulting data.table with source file name and collection name.

Value

data.table with meta-data or nothing if destdir does not exist or does not contain files.

See Also

validateCountsCollection,getCountsMetaPart

Examples

## Not run: 
    collDir <- "/path/to/my/collection"
    valid_collection = validateCountsCollection(collectionDir = collDir, verbose = TRUE)
    if (valid_collection){
        metaPart = getCountsMetaPart(destdir = collDir, verbose = TRUE)
     }
 
## End(Not run)



baba-beda/morpheusR documentation built on April 23, 2024, 6:56 a.m.