Learn R Programming

kmeRtone (version 1.0)

splitFASTA: Split a FASTA file by header.

Description

The first non-space word in the header will be used as the file name.

Usage

splitFASTA(fasta.file, output.dir = "./")

Value

A splitted fasta files by its headers.

Arguments

fasta.file

A path to a FASTA file.

output.dir

A path to save the output results. Default is current working directory.

Details

data.table::fread is not built for reading in chunks. The developers expect skip and nrow arguments to be in a small number. Large number slows the reading a bit.