FastaSub: FastaSub

Description Usage Arguments Value Examples

View source: R/blast.R

Description

Creates a fasta file from only certain sequences in another fasta file

Usage

1
FastaSub(gene.names, fasta.file, save = TRUE, filename = NULL)

Arguments

gene.names

A character vector of gene names

fasta.file

A fasta file read in using seqinr

save

Logical. If TRUE then the newly created fasta file is saved to the working directory

filename

The filename to use for a saved fasta file

Value

A fasta file

Examples

1
2
main.fasta <- seqinr::read.fasta("fasta_file.fasta")
fasta.sub <- FastaSub(a.filter$sample, main.fasta, filename="reduced_fasta")

nathansam/CircadianTools documentation built on Dec. 26, 2019, 11:30 a.m.