renameVcfSamples | R Documentation |
Rename samples in a VCF file with bcftools reheader
.
Variants can also be sorted.
renameVcfSamples(
in.vcf.file,
samples,
out.vcf.file,
skip.check = FALSE,
sort.variants = TRUE
)
in.vcf.file |
path to the input VCF file (will be automatically indexed if necessary) |
samples |
data frame with (at least) two columns, the first corresponding to the old names (same order as in the VCF file) and the second to the new names; spaces inside names are forbidden |
out.vcf.file |
path to the output VCF file |
skip.check |
if TRUE, no comparison is done to check that |
sort.variants |
if TRUE, variants are also sorted, with |
invisible out.vcf.file
Timothee Flutre
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.