fasta.sample: Select a random sample of sequences

Description Usage Arguments Value Author(s) Examples

View source: R/FastaUtils_functions.R

Description

This function select a random sample of sequences with or without replacement.

Usage

1
fasta.sample(infile = NULL, nseq = NULL, file.out = NULL, replacement = FALSE)

Arguments

infile

Multi-Fasta file

nseq

Sample size.

file.out

Path to output file.

replacement

Logical for using or not (default) sampling with replacement.

Value

Writes a fasta file with sampled sequences.

Author(s)

Guillem Salazar <salazar@icm.csic.es>

Examples

1
fasta.sample(infile="http://greengenes.lbl.gov/Data/JD_Tutorial/UnAligSeq24606.txt",nseq=10,file.out="out.fasta")

GuillemSalazar/FastaUtils documentation built on June 9, 2021, 7:26 p.m.