{"id":878,"date":"2025-07-13T19:48:06","date_gmt":"2025-07-14T00:48:06","guid":{"rendered":"https:\/\/open.qtlmax.com\/guide\/?p=878"},"modified":"2025-07-13T20:42:14","modified_gmt":"2025-07-14T01:42:14","slug":"how-to-draw-a-violin-plot-with-qtl-marker-data-and-phenotypic-data","status":"publish","type":"post","link":"https:\/\/open.qtlmax.com\/guide\/index.php\/2025\/07\/13\/how-to-draw-a-violin-plot-with-qtl-marker-data-and-phenotypic-data\/","title":{"rendered":"How to draw a violin plot with QTL marker data and phenotypic data"},"content":{"rendered":"\n<p>Figure 1 shows the &#8220;QTL search and haplotype tools&#8221; tab page selected within QTLmax. Press the <strong>[Browse (PVALUES)]<\/strong> button to open the file explorer. Navigate to the project folder containing the GWAS result file. When you select the pvalues file in that folder, all input files will be automatically loaded (Figure 1).<\/p>\n\n\n\n<p>Enter the project name and the P cutoff value that defines the QTL, then click the <strong>[Search]<\/strong> button. A list of QTL markers satisfying the P cutoff condition will be displayed (Figure 1).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1007\" height=\"961\" src=\"https:\/\/open.qtlmax.com\/guide\/wp-content\/uploads\/2025\/07\/QTLmax-5.0_034.png\" alt=\"\" class=\"wp-image-882\" srcset=\"https:\/\/open.qtlmax.com\/guide\/wp-content\/uploads\/2025\/07\/QTLmax-5.0_034.png 1007w, https:\/\/open.qtlmax.com\/guide\/wp-content\/uploads\/2025\/07\/QTLmax-5.0_034-300x286.png 300w, https:\/\/open.qtlmax.com\/guide\/wp-content\/uploads\/2025\/07\/QTLmax-5.0_034-768x733.png 768w\" sizes=\"auto, (max-width: 1007px) 100vw, 1007px\" \/><\/figure>\n\n\n\n<p>(Figure 1)<\/p>\n\n\n\n<p>Select the &#8220;QTL marker table&#8221; tab to view a table showing information about the markers included in the QTL list. (Figure 2)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1007\" height=\"961\" src=\"https:\/\/open.qtlmax.com\/guide\/wp-content\/uploads\/2025\/07\/QTLmax-5.0_035.png\" alt=\"\" class=\"wp-image-884\" srcset=\"https:\/\/open.qtlmax.com\/guide\/wp-content\/uploads\/2025\/07\/QTLmax-5.0_035.png 1007w, https:\/\/open.qtlmax.com\/guide\/wp-content\/uploads\/2025\/07\/QTLmax-5.0_035-300x286.png 300w, https:\/\/open.qtlmax.com\/guide\/wp-content\/uploads\/2025\/07\/QTLmax-5.0_035-768x733.png 768w\" sizes=\"auto, (max-width: 1007px) 100vw, 1007px\" \/><\/figure>\n\n\n\n<p>(Figure 2)<\/p>\n\n\n\n<p>If you go to the project folder, you can see the CSV files for the tables presented in Figures 1 and 2. (Figure 3)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/help.qtlmax.com\/kr\/data\/editor\/2401\/qtl_search4.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>(Figure 3)<\/p>\n\n\n\n<p>(a) The table output in Figure 1 can be found in a file with the following format:<\/p>\n\n\n\n<p class=\"has-text-align-center\"><code><strong>QTL_cutoff_[P cutoff].csv<\/strong><\/code><\/p>\n\n\n\n<p>(b) The table output in Figure 2 can be found in a file with the following format:<\/p>\n\n\n\n<p class=\"has-text-align-center\"><code><strong>genotype_QTL_markers_[P cutoff].csv<\/strong><\/code><\/p>\n\n\n\n<p>It is important to note that (b) will be used to draw the Violin plot along with the phenotypic data. (Figure 4)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/help.qtlmax.com\/kr\/data\/editor\/2401\/qtl_search5.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>(Figure 4)<\/p>\n\n\n\n<p>Figure5 shows the &#8220;Violin plot&#8221; tab page selected within the QTLmax Workbench. The &#8220;Violin plot&#8221; tab page has many setting options. If you don&#8217;t want to select each setting option individually, just click the <strong>[Load demo]<\/strong> button. You&#8217;ll see that most of the setting options are configured automatically (Figure 5). You can freely change the settings to your desired values.<\/p>\n\n\n\n<p>Click the <strong>[Haplotype (CSV)]<\/strong> button and select a file containing SNP pairs for QTL markers. You&#8217;ll see the header list of that file displayed in the &#8220;SNP columns&#8221; list box. Click the <strong>[Phenotype (CSV)]<\/strong> button and select the phenotypic data file. You&#8217;ll see the header list of that file displayed in the &#8220;Phenotype columns&#8221; list box. (Figure 5)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/help.qtlmax.com\/kr\/data\/editor\/2401\/thumb-violin_plot2_1200x693.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>(Figure 5)<\/p>\n\n\n\n<p>In the &#8220;SNP columns&#8221; list box, select an SNP marker and click the <strong>[SNP]<\/strong> button. That marker will be selected, and information about the alleles included in that marker will be listed. Select an allele and click the <strong>[Palette]<\/strong> button to display a window pop-up palette. From there, select your desired color, which will then be assigned to the chosen allele. Repeat this process to select colors for all alleles. (Figure 6)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/help.qtlmax.com\/kr\/data\/editor\/2401\/thumb-violin_plot3_1200x693.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>(Figure 6)<\/p>\n\n\n\n<p>Go to the <strong>Workspace 2<\/strong> tab page and select whether to display the <strong>Main title<\/strong>. If you check the display option, enter the <strong>Main title<\/strong> value. Once all settings are complete, click the <strong>[Visualize]<\/strong> button, and you&#8217;ll see the Violin plot appear on the right-hand drawing panel (Figure 7).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/help.qtlmax.com\/kr\/data\/editor\/2401\/thumb-violin_plot4_1200x693.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>(Figure 7)<\/p>\n\n\n\n<p>To view the ANOVA analysis results related to the displayed Violin plot, simply click the <strong>[ANOVA]<\/strong> button. (Figure 8)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/help.qtlmax.com\/kr\/data\/editor\/2401\/thumb-violin_plot5_1200x693.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>(Figure 8)<\/p>\n\n\n\n<p>The transparency of the plot can be changed in the &#8220;Alpha (0-1)&#8221; field. The closer this value is to 0, the more transparent the plot will become.<\/p>\n\n\n\n<p>The Violin plot drawn in (Figure 7) can also be changed to a Density plot or a Box plot by adjusting the &#8220;Plot type&#8221; combo box. The Density plot is shown in (Figure 9), and the Box plot is shown in (Figure 10).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/help.qtlmax.com\/kr\/data\/editor\/2401\/thumb-violin_plot6_1200x693.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>(Figure 9)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/help.qtlmax.com\/kr\/data\/editor\/2401\/thumb-violin_plot7_1200x693.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>(Figure 10)<br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Figure 1 shows the &#8220;QTL search and haplotype tools&#8221; tab page selected within QTLmax. Press the [Browse (PVALUES)] button to open the file explorer. Navigate to the project folder containing the GWAS result file. When you select the pvalues file in that folder, all input files will be automatically loaded (Figure 1). Enter the project [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-878","post","type-post","status-publish","format-standard","hentry","category-guide"],"_links":{"self":[{"href":"https:\/\/open.qtlmax.com\/guide\/index.php\/wp-json\/wp\/v2\/posts\/878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/open.qtlmax.com\/guide\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/open.qtlmax.com\/guide\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/open.qtlmax.com\/guide\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/open.qtlmax.com\/guide\/index.php\/wp-json\/wp\/v2\/comments?post=878"}],"version-history":[{"count":11,"href":"https:\/\/open.qtlmax.com\/guide\/index.php\/wp-json\/wp\/v2\/posts\/878\/revisions"}],"predecessor-version":[{"id":898,"href":"https:\/\/open.qtlmax.com\/guide\/index.php\/wp-json\/wp\/v2\/posts\/878\/revisions\/898"}],"wp:attachment":[{"href":"https:\/\/open.qtlmax.com\/guide\/index.php\/wp-json\/wp\/v2\/media?parent=878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/open.qtlmax.com\/guide\/index.php\/wp-json\/wp\/v2\/categories?post=878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/open.qtlmax.com\/guide\/index.php\/wp-json\/wp\/v2\/tags?post=878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}