fasta_headers: Get line numbers of FASTA headers

View source: R/read_fasta.R

fasta_headersR Documentation

Get line numbers of FASTA headers

Description

Get line numbers of FASTA headers without reading whole fasta file into RAM.

Usage

fasta_headers(file_path, buffer_size = 1000, return_headers = TRUE)

Arguments

file_path

(character of length 1) The path to a file to read.

buffer_size

(numeric of length 1) The number of lines in each chunk.

return_headers

(logical of length 1) If TRUE, name the result with the headers.

Value

numeric


metacoder documentation built on April 4, 2023, 9:08 a.m.