wiki

PlinkView

This script reads in a .list file created with the software program “Plink” and allows the user to select SNPs that he/she is interested in, as well as a subject ID lookup table, and a gene reference table. The script matches the study IDs with the correct participants, as well as appends the gene identifier to the name of each SNP. The output is a .csv file for easy import into Excel, SPSS, etc. The name of the output file is the name of the list file appended with the date.

Running the Script

Plink_View - will be prompted for listfile, lookup, and ref

Plink_View(listfile) - will not have gene names and other_IDs
Plink_View(listfile,lookup) - will not have gene names
Plink_View(listfile,lookup,ref) - will have gene names and other_IDs

Variables

How does it work?

7 rs16 11 7612 1 6931 1 3658 1 4346 1 9744 
7 rs16 12 941 1 8955 1 9705 1 7220 1 9232 1 5650 1 698 1 
7 rs16 22 5966 1 9412 1 9519 1 5922 1 2772 1 7129 1 5537 1 
7 rs16 00 
7 rs8 11 7680 1 7468 1 3862 1 4992 1 
7 rs8 12 8955 1 9519 1 5922 1 4346 1 8796 1 8905 1 8702 1 
7 rs8 22 941 1 7612 1 5966 1 6931 1 9412 1 9705 1 3658 1 7220 1 
7 rs8 00 6904 1 7312 1 7393 1 

Each line follows the following format: \

(gene) (SNP) (allele) (family ID 1) (individual ID 1) (family ID 2) (Individual ID 2)... etc \\

View the Script