exportVCF: Exporting a VCF object.

View source: R/exportVCF.R

exportVCFR Documentation

Exporting a VCF object.

Description

This function exports a vcf object into a standard vcf file.

Usage

exportVCF(vcf, file = NULL)

Arguments

vcf

vcf object

file

Character, specifies filename/path

Details

This function exports a vcf object to a standard vcf file. If no file name is given, the variable name will be used instead.

Value

A vcf file

Author(s)

Daniel Fischer

Examples

 # Define here the location on HDD for the example file
   fpath <- system.file("extdata","example.vcf", package="GenomicTools.fileHandler")
 # Import the example fasta file  
 #  vcfFile <- importVCF(file=fpath)
   
 # myfile <- file.path(tempdir(), "myLocs.vcf")
   
  exportVCF(newVCF, file=myfile)



fischuu/GenomicTools.fileHandler documentation built on Feb. 15, 2025, 1:11 p.m.