Description Usage Arguments Value
This function read the header of the vcf file (rows starting with # in vcf) and split the case and controls according to the caseID_file. It returns two vectors each of which is the position index of case or control in the list of samples in vcf file (the last row starting with #).
1 | get_IDs(vcf_file, caseID_file, nhead = 128, ncol_ID = 9)
|
vcf_file |
The saving address and filename of the vcf file in the format of 'address/filename'. |
caseID_file |
The file including case IDs in the format of 'address/filename'. |
nhead |
The number of the lines in the vcf file which started with #. |
ncol_ID |
The number of columns before the sample IDs start in the last line of the headers in the vcf file, default=9. |
a list which inclues two vectors that correspond to the position index of the cases or controls in the last head row of the VCF with IDs, but columns are shifted by the ncol_ID columns.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.