Description Usage Arguments Author(s) Examples
This function returns a region of a bgzipped and samtools
indexed fasta alignment file using samtools
1 2 |
fasta |
fasta file which needs to be indexed by 'samtools faidx' |
start |
region start [default: 1] |
end |
region end [default: NULL] |
format |
either |
samtools |
path to samtools executable [default: "samtools"] |
Kristian K Ullrich
1 2 3 4 5 6 7 | fasta.gz.file<-system.file("extdata", "example.fasta.gz",
package="distIUPAC")
##complete alignment
dna<-faidx2seq(fasta.gz.file, format="dna", samtools="samtools")
##region from 5001 to 15000 from alignment
dna.region<-faidx2seq(fasta.gz.file, start = 5001, end = 15000,
format = "dna", samtools = "samtools")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.