Description Usage Arguments Value Author(s) Examples
View source: R/FastaUtils_functions.R
This function select a random sample of sequences with or without replacement.
1 | fasta.sample(infile = NULL, nseq = NULL, file.out = NULL, replacement = FALSE)
|
infile |
Multi-Fasta file |
nseq |
Sample size. |
file.out |
Path to output file. |
replacement |
Logical for using or not (default) sampling with replacement. |
Writes a fasta file with sampled sequences.
Guillem Salazar <salazar@icm.csic.es>
1 | fasta.sample(infile="http://greengenes.lbl.gov/Data/JD_Tutorial/UnAligSeq24606.txt",nseq=10,file.out="out.fasta")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.