Description Usage Arguments Value See Also Examples
A function to get a filtered (and possibly splitted) vcfR::VCF object from a VCF file.
1 2 |
file.path |
The path to the VCF file you want to load |
survival |
Optional. A logical vector for splitting the data into two vcfR::VCF objects. The length of the vector must match the number of samples in the VCF file. |
only.biallelic |
Logical. If TRUE (default), only biallelic variants will be loaded. |
only.snp |
Logical. If TRUE (default), the indel variants will be omited. |
verbose |
Logical. If TRUE (default), report status of the process along the execution. |
A vcR:VCF object or a list of vcfR:VCF objects if a survival vector was provided. If a list is returned, list$alive is the vcfR::VCF object containing the samples which the position corresponded with a TRUE in the survival vector. The other samples are contained in list$dead as an other vcfR::VCF object.
For more information, see SplitVcf
,
RmNonBiallelics
and RmIndels
which this
function bind.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.