Description Usage Arguments Examples
This reads in a fasta file and removes the leading ">" from the name of the contig so that it will match stuff in a corresponding VCF or other variant file. It then returns a tibble with columns CHROM and consSeq. Currently this only woks on files that have two line for each sequence, not with files that break the sequence over multiple lines.
1 | grab_fasta(path)
|
path |
The path to the fasta file. If it is gzipped, it will automatically be gunzipped on the fly. |
1 | grab_fasta(system.file("textdata", "fasta.txt.gz", package = "snps2assays"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.