Description Usage Arguments Value Examples
Get fasta sequences of given input list from reference multi-fasta file.
1 | fa_some_records(gene_list, fasta_file, outfile = "stdout.fa")
|
gene_list |
A charcter vector of gene names or gene ids; the gene names or gene ids should exactly match with sequence headers present in multi-fasta file |
fasta_file |
Either a path or a connection to reference multi-fasta file, from which subset of sequences for given input list is to be retrieved. |
outfile |
A character vector containing the path to the file to write output |
A multi-fasta file, containing sequences of given input list id's.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
myGenelist <- system.file("exdata", "Sc_myGenelist.txt", package = "fastaR")
myGenelist <- scan(myGenelist, what="character", sep=NULL)
ref_fasta <- system.file("exdata", "Sc_nucl_R64-2-1.fasta", package = "fastaR")
fastaR::fa_some_records(gene_list=myGenelist, fasta_file=ref_fasta, outfile="sc_myGenelist.fa")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.