process_tbl: flexibly read in a field and append an id to the output

View source: R/package.R

process_tblR Documentation

flexibly read in a field and append an id to the output

Description

perform an embarrassingly parallel operation on files i.e. read in and do some pre processing

Usage

process_tbl(
  tbl,
  field = "jabba_rds",
  id.field = "pair",
  read.fun,
  remove_ext = c(".gz", ".zip"),
  mc.cores = 1
)

Arguments

tbl

table with fields to read in

field

field to read in

id.field

field with id to append to output

read.fun

function to read in, will try to guess based on extension, but may need to provide

remove_ext

extension strings to remove from file

mc.cores

number of cores

Value

a list of idx and seq


kevinmhadi/khtools documentation built on Jan. 16, 2025, 4:18 p.m.