fasta_headers: 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.