as_paf: Coerce a data.frame or tibble into a pafr object

Description Usage Arguments Value See Also

View source: R/IO.r

Description

The main reason to use this function is speed up the process of reading in a large paf file that has no tags. Functions like read.table, read_delim (reader) and fread (data.table) can process a 12 column file more quickly than pafr's read_paf. If you you do not need tag data for your analyses or visualizations, it might make sense to use a fast reading function to get a 12 column data.frame, convert that data.frame into a 'pafr object with this function. The 'pafr' object can then work easily with the functions in this package.

Usage

1
as_paf(paf_data_frame)

Arguments

paf_data_frame

a data.frame object with 12 columns. Column names and types will be over-written in the returned object

Value

a pafr object

See Also

read_paf


pafr documentation built on Dec. 8, 2020, 5:06 p.m.