Skip to contents

This function uses arrow to read edgelists from one or several .pxl files. The edgelists are stored in parquet files in the outdir directory which can be modified on disk.

Usage

ReadMPX_arrow_edgelist(pxl_file, edge_list_file = NULL, verbose = TRUE, ...)

Arguments

pxl_file

Path to a .pxl file

edge_list_file

Path to the output edgelist.parquet file

verbose

Print messages

...

Parameters passed to other methods

Value

Nothing. The edgelist is saved to a parquet file set with edge_list_file

Examples

library(pixelatorR)

# Load example data
pxl_file <- system.file("extdata/five_cells",
                        "five_cells.pxl",
                        package = "pixelatorR")
edgelist_arrow <- ReadMPX_arrow_edgelist(pxl_file)
#>  Extracting edgelist.parquet file to /var/folders/gw/bdcqhnvs0m9gs_mq8n51jtbc0000gn/T/RtmpJCnvFY/edgelist.parquet
#>  Returning FileSystemDataset
edgelist_arrow
#> FileSystemDataset with 1 Parquet file
#> upia: string
#> upib: string
#> marker: dictionary<values=string, indices=int32>
#> count: int8
#> component: dictionary<values=string, indices=int32>