Learn R Programming

geneNR (version 2.0.1)

summariseSNP_vcf: Distribution of SNPs Across Chromosomes from VCF

Description

Distribution of SNPs Across Chromosomes from VCF

Usage

summariseSNP_vcf(vcf_data)

Value

A data frame with chromosome names and the count of SNPs for each chromosome.

Arguments

vcf_data

A vcfR object containing VCF data.

Examples

Run this code
# \donttest{
demo_SNP <- system.file("extdata", "demo_SNP.vcf", package = "geneNR")
vcf_data <- import_vcf(demo_SNP)
snp_distribution <- summariseSNP_vcf(vcf_data)
print(snp_distribution)
# }

Run the code above in your browser using DataLab