read_topn: Find and read the largest n segments from one or more...

View source: R/skeleton-io.R

read_topnR Documentation

Find and read the largest n segments from one or more skeleton zip files

Description

read_topn calls find_topn to find the top fragments and then reads them in using read_segments2.

find_topn finds the files, returning a tibble (data.frame) of results.

Usage

read_topn(zipfiles, n = 1, ...)

find_topn(zipfiles, n = 1, decreasing = TRUE)

Arguments

zipfiles

The path, name, or number of the zipfiles. If this is not a full path then it will be searched for in the location defined by options('fafbseg.skelziproot')

n

Number of segments to read

...

additional arguments passed to read_segments2

decreasing

Whether to sort the skeletons in decreasing order i.e. largest first (default=TRUE)

Details

Note that this will read all the fragment skeletons for each segment

See Also

read_segments

Examples

## Not run: 
top3=read_topn("224270.zip", n=3)

## End(Not run)

natverse/fafbseg documentation built on Nov. 11, 2024, 9:50 p.m.