I want to convert my pedmap (or bed) files into the format required by snp.plotter (R package to create plots of p-values using single SNP and/or haplotype data). The documentation is terrible, so here is what I got.
The SNP file
From the doc:
"SNP.FILE includes four necessary columns ASSOC, SNP.NAME, LOC, and
SS.PVAL corresponding to positive or negative association (indicating
protective or susceptibility alleles, a SNP label, the location, and a
p-value for each SNP"
Columns 2 and 3 could be taken from .MAP file directly.
The SS.PVAL could be obtained after running PLINK with --hardy.
But how about the ASSOC (+ or -)? Where to get the negative or positive association data for each SNP?
The HAP file
From the doc:
HAP.FILE: HAP.FILE includes three necessary columns ASSOC, G.PVAL, and
I.PVAL corresponding to positive or negative association (indicating
protective or susceptibility alleles, a global p-value and an
individual p-value for each haplotype followed by a set of columnns of
SNPs with corresponding haplotypes. Haplotypes are presented in a
step-wise fashion with the major allele given as 1 and the minor
allele as 2; haplotype variants for a set of SNPs should be grouped.
SNP labels in HAP.FILE must be the same as in SNP.FILE, and only SNPs
with corresponding haplotypes need to be included. In the figure,
unfilled symbols connected by solid lines are used to indicate global
haplotype p-values, (a circle is used if no symbol is specified for
the dataset). Unfilled and filled symbols are used to indicate alleles
1 and 2, respectively connected by solid lines and dashed lines for
positive and negative association (indicating susceptibility or
protective haplotypes) when using indivudal haplotype p-values.
How they get the Global PVAL and Individual PVAL for haplotypes?
Also for each SNP in columns they put
- Major allele = 1
- Minor allele = 2
- Nothing otherwise
If this info matches the .hwe I don't get it, how they recode the A1 and A2 columns?
The GENOTYPE file
From the doc:
GENOTYPE.FILE: GENOTYPE.FILE is a modified Linkage PED file. Each row
should have the following information: family ID, individual ID,
father ID, mother ID, sex, and affection status followed by marker
loci coded as binary factors
I guess this could be obtained after a --recode12 from the PED.