Okay, that's a good start. You appear to have enough information to create a PLINK object.
PLINK will not directly accept a CSV file, though. You will have to reformat your data to create a PED and MAP file, and then you will be able to create a PLINK object. Have you taken a look here:
To assist you, your PED file should have the following columns (but do not include these as a header - the file should be 'headerless'):
FID IID PID MID SEX PHENO
- FID, family ID
- IID, individual (sample) ID
- PID, paternal ID
- MID, maternal ID
- SEX, gender (1, male; 2, female)
- PHENO, phenotype (1, control; 2, case)
The information in this file can be space- or tab-delimited.
Your MAP file should have:
- Chromosome code (can be anything...)
- Variant identifier (e.g. SNP rs ID)
- Position in morgans or centimorgans (can just leave as 0)
- Base-pair coordinate
This can also be space- or tab-delimited.
If you then have both of these files, you can create a PLINK object with:
plink --file PlinkDataSet --ped MyData.tsv --map MyDataMap.tsv
If you only have the IID, then you can specify the following parameters along with the command (above), or choose one o more of these depending on what info you have:
--no-fid --no-parents --no-sex --no-pheno
Kevin
How to add images to a Biostars post
It would be helpful to show an example of the data you have.
I have shown how to use imgbb in that post. Please follow the guide carefully.
The 012 encoding is based on the tabulation of the number of minor alleles. Do you know which it is the minor allele for each of your variants?
Allele 1 is minor allélé and Alléle 2 major alléle. if you also knew how to load a csv file via plink thanks