BookmarkSubscribeRSS Feed
Choose Language Hide Translation Bar
dagenu
Staff
Genetic Association with JMP Genomics, Part 3d: Q-K Mixed Model Workflow for Genetic Association

There two ways to run a Q-K analysis in JMP Genomics. One example uses the Q-K Mixed Model process which was outlined in an earlier blog post, Genetic Association with JMP Genomics, Part 3c: Q-K Mixed ModelThis is a general tool that has a great deal of flexibility, but it requires you to construct the input data set yourself.

A simpler option is the Genetics Q-K Analysis Workflow, which performs all the steps for the Q-K Analysis and merges the data automatically. It is, however, less flexible than the Q-K Mixed Model process: The workflow only allows a Q matrix computed from PCA, and a K matrix from IBD calculations from the Relationship Matrix process. In this post, we work through a Q-K analysis using the workflow using the marker data file rice_genos_recgeno.sas7bdat, and the corresponding annotation file rice_anno_recgeno.sas7bdat.

  1. From the Genomics Starter menu, choose Workflows > Advanced > Genetics Q-K Analysis Workflow.
  2. On the General tab, select rice_genos_recgeno.sas7bdat as the Input.1_input_data.png

     

  3. Select GW as the Trait Variable. The Q-K workflow can handle all of the traits at once; but to perform K Matrix compression, the analysis will need to be done on a trait-by-trait basis.
  4. Enter recgeno: in the box under List-Style Specification of SNP Variables.
  5. Choose an Output Folder.2_general.png
  6. On the Annotation tab, Choose rice_anno_recgeno.sas7bdat as the Annotation SAS Data Set.3_anno_data.png
  7. Fill out the Annotation tab with RS_RG as the Annotation Label Variable, chrom as the Annotation Group Variable and pos as the Annotation Location Variable.
    • Marker filtering options are available on this tab as well. But for this example, leave the filters blank to include all markers.4_annotab.png
  8. Move now to the PCA Options. Set 5 as the Maximum Number of Principal Components, which attempt to explain 50% of the variance in the data (Enter 0.50 as the Cumulative Proportion of Variation to Explain with Principal Components).
    • From previous analysis, we know that 5 PCs are sufficient to explain 50% of the variance in the data.5_pcaTab.png
  9. On the K Matrix Options tab, check the box next to Compress K Matrix.
    • This option will only be available if a single Trait Variable is specified on the General tab.
  10. In the Compression Options section, set the Minimum Dimension of K Matrix to 1 and the Maximum Dimension of K Matrix to 225.
    • To let JMP determine the optimal dimensions for the K Matrix, these boxes can be left blank.
  11. Set the Compression Rate to 1.
    • This means the K Matrix will be compressed by 10% at each compression level. Lower numbers for this option will increase the precision of the compression by causing more iterations of compression.5b_KMatrix.png
  12. On the Model Variables tab, select the Continuous for Type of Trait.
    • Here, additional effects (non-marker) can be added to the model.
  13. On the Options tab, specify Numeric Genotypes for the Format of Marker Variables.
  14. Deselect Genotype from the Association Tests. The Genotype test performs chi-square tests based on genotypes, whereas the Trend test performs a Cochran-Armitage test. Removing the genotype option results in much faster run times.6_options.png
  15. Leave the default selections on the P-Value Plots.
  16. Click Run to launch the analysis. When the workflow analysis is complete, the following JMP Journal will be displayed.7_journal.png

Results

  1. Click the PCA for Population Stratification result to bring up results pertaining to population structure and the Q Matrix.
  2. Both the PCA 2D & 3D Row Scores tabs show the relationships between the principal components. Individuals that cluster together in these plots would be considered to share ancestry. The 2D Plot shows the correlation of each of the 5 PCs with one another. In the 3D Plot, the relationship between any 3 PCs (selected beneath the plot) can be shown in a three-dimensional space.8_2D.png9_3D.png

 

  1. The Scree Plot tab shows the amount of variance accounted for by each of the 5 Principal Components.10_scree.png
  2. Return to the Journal and open the Relationship Matrix. These are results associated with Identity By Descent and the K Matrix.
  3. The IBD Pairs Results tab shows a distribution of IBD values above the specified threshold for individuals.
  4. The Launch Follow-Up Processes menu on the left has options for Multidiminsional Scaling and K Matrix Compression (which has already been done).11_IBD.png
  5. Return to the Journal and open the K Matrix Compression. The plot shows the number of clusters for each compression iteration, with lower y values being more effective compression. The final version of the K Matrix has 202 clusters.12_KmatrixComp.png
  6. Return to the Journal and open the Q-K Mixed Model. The Summary Chart tab shows the number of significant markers on each chromosome for Grain Yield (GW). The blue bars represent results from the Trend test. The trend test looks for a linear relationship in the trend scores when moving from homozygous minor to heterozygous to homozygous major.13_sumtab.png
  7. Selecting any of the chromosomes from the Tabs menu on the left brings up a plot of each marker on the chromosome plotted by position. Significant markers fall above the red dotted line which represents our alpha value of 0.05. Below is the plot of chrom 3 Results.14_chrom3.png
  8. The Manhattan Plot tab shows significant markers by chromosome as determined by the trend test. The red dotted line once again represents the alpha value of 0.05.15_manhattan.png
  9. The Volcano Plot tab gives a volcano plot for each marker, with minor allele genotype effect on the x-axis and the log transformed p-value on the y-axis. Points above the red line are considered significant.
    • Clicking through the Local Data Filter options on the right gives volcano plots for each individual chromosome.16_volc.png
  10. In the Drill Downs menu, a subset can be created for selected markers, or a plot of Grain Yield values by genotype can be created by selecting Plot Trait By Genotype.
    • This is a great way to quickly see the effect different genotypes have on a trait for a given marker.
    • Shown below are trait by genotype plots from three markers on chromosome 5. The first marker shows a highly significant positive minor allele effect on GW. The second marker shows a slightly negative minor allele effect for GW. The third marker does not have significant effect on grain yield. 17_TbyG.png

*See the interactive results of this analysis on JMP Public.

Summary

There are multiple methods for creating a Q-K Mixed Model in JMP Genomics. Earlier posts outlined creating a K Matrix, compressing it, creating a Population Structure (Q) Matrix, and making a Q-K Mixed Model separately. The Genetics Q-K Analysis Workflow handles all of those analyses using one tool. Keep in mind that there is less flexibility in the model-building process when using the workflow, but in most cases it produces similar output.