Description Usage Arguments Value Author(s) References See Also Examples
View source: R/vcfR_to_fasta.R
This function enables to read vcfR files and convert them to necessary fasta files. Therefore, we recommend to provide a reference sequence from e.g. genome browser and the starting position. The default parameters are those of the vcfR package.
1 2 3 |
seqName |
A character string containing the full path and the name of the sequence file. It is necessary to add the extension in order to run |
refName |
An (optional) full path including file name and extension (".vcf") to the reference sequence
for the region of interest downloaded from e.g. http://phase3browser.1000genomes.org/index.html.
Only to be used in case that |
ext.ind |
See package vcfR for details ( |
cons |
See package vcfR for details ( |
ext.haps |
See package vcfR for details ( |
start |
An (optional) integer value which reflects the starting position of the sequences in bp. Only to be used in case that |
ref |
A character string describing the name of the reference sequence. If the working directory is not set to the location of the file, the complete path to the file has to be provided g.e. ref = "/home/LDJump/refseq.fa". The reference sequence is needed as it is used together with the vcfR-package to convert each VCF-segment into a FASTA-file. |
fa_start |
An integer value used to subset the reference sequence when converting VCF-segments to FASTA. It doesn't have to be provided in the function call, but rather it is initialized and computed inside the function |
fa_end |
An integer value used to subset the reference sequence when converting VCF-segments to FASTA. It doesn't have to be provided in the function call, but rather it is initialized and computed inside the function |
attr_name |
A character string describing the chromosome number of the reference file. For example,
we have a FASTA-header ">21 dna:chromosome:GRCh37:21:41000000:41010000:1" in our reference file,
which describes our file to be a segment of chromosome 21, ranging from 41000000 to 41010000.
In |
A print command provides information that the file is converted.
Philipp Hermann philipp.hermann@jku.at, Andreas Futschik, Fardokhtsadat Mohammadi fardokht.fm@gmail.com
Knaus BJ and Grünwald NJ (2017). VCFR: a package to manipulate and visualize variant call format data in R. Molecular Ecology Resources, 17(1), pp. 44-53. ISSN 757, <URL: http://dx.doi.org/10.1111/1755-0998.12549>.
LDJump
, summary_statistics
, getPhi
, get_smuce
, vcfR2DNAbin
1 2 3 | ##### Do not run these examples #####
##### vcfR_to_fasta (seqName, refName, ext.ind = T, cons = F, #####
##### ext.haps = T, start = 1) #####
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.