Description Usage Arguments Details Value
get_surr_bases
retrieves the base sequence of the \[locus - k
, locus + k
\] region of each locus in mutation_ids
from fasta_filename
.
1 | get_surr_bases(fasta_filename, mutation_ids, k)
|
fasta_filename |
character string naming the path to the reference genome FASTA file the sequencing data was aligned to. |
mutation_ids |
character vector containing the ids of the loci to get the surrounding bases of. Id format is CHR:POS and can be obtained by calling the function |
k |
integer with the number of bases to the right and to the left of the loci to get the genomic sequence from. |
The sequence of the surrounding bases is retrieved from fasta_filename
using samtools faidx tool. In the process, get_surr_bases
creates a temporary file necessary for this tool to run.
Character vector with the genomic base sequence ranging from locus - k
to locus + k
for each locus in mutation_ids
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.