thin_fasta: Select n entries from a FASTA file, creating a new file

View source: R/sequence.R

thin_fastaR Documentation

Select n entries from a FASTA file, creating a new file

Description

Selects a total of n entries from a FASTA file by selecting every entry where

Usage

thin_fasta(f, n, ...)

Arguments

f

filename of FASTA protein sequence file

n

integer number of entries to extract

...

arguments passed to subset_fasta

Details

i

Where i is the element index (1,2, ... N), N is the total number of sequences in the genome, ' division.

The final term 'n / 2' ensures the first and last selected entries are equidistant (for even values of n) from the beginning and end of the sequences.

Value

filename


arendsee/phylostratr documentation built on Dec. 31, 2022, 10:22 a.m.