View source: R/readSVvcf.multisamps.R
readSVvcf.multisamps | R Documentation |
Read a VCF file that contains SVs for multiple samples and create a GRanges with population estimates.
readSVvcf.multisamps(
vcf.file,
keep.ins.seq = FALSE,
keep.ref.seq = FALSE,
check.inv = FALSE,
keep.ids = FALSE,
out.fmt = c("gr", "df"),
min.sv.size = 10
)
vcf.file |
the path to the VCF file |
keep.ins.seq |
should it keep the inserted sequence? Default is FALSE. |
keep.ref.seq |
should it keep the reference allele sequence? Default is FALSE. |
check.inv |
should the sequence of MNV be compared to identify inversions. |
keep.ids |
keep variant ids? Default is FALSE. |
out.fmt |
output format. Default is 'gr' for GRanges. Other options: 'df' for data.frame. |
min.sv.size |
the minimum size of the variant to extract from the VCF. Default is 10 |
Alleles are split and, for each, column 'ac' reports the total allele count. The number of "ref" genotypes, i.e. homozygous refs e.g. '0/0', and the number of called samples (not missing './.') are also counted. The 'af' column contains an estimate of the allele frequency.
depending on 'out.fmt', a GRanges or a data.frame with relevant information.
Jean Monlong
## Not run:
svs.gr = readSVvcf.multisamps('svs.vcf')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.