about summary refs log tree commit diff
path: root/sourcecodes/data/example2
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/data/example2')
-rw-r--r--sourcecodes/data/example2/hQGban.txt1
-rw-r--r--sourcecodes/data/example2/hQGcontinuous_input.txt203
-rw-r--r--sourcecodes/data/example2/hQGgraphviz.txt11
-rw-r--r--sourcecodes/data/example2/hQGk.txt1
-rw-r--r--sourcecodes/data/example2/hQGmap.txt8
-rw-r--r--sourcecodes/data/example2/hQGmapdata.txt1
-rw-r--r--sourcecodes/data/example2/hQGname.txt1
-rw-r--r--sourcecodes/data/example2/hQGnet_figure.txt652
-rw-r--r--sourcecodes/data/example2/hQGnlevels.txt4
-rw-r--r--sourcecodes/data/example2/hQGnnode.txt1
-rw-r--r--sourcecodes/data/example2/hQGnrows.txt1
-rw-r--r--sourcecodes/data/example2/hQGparent.txt1
-rw-r--r--sourcecodes/data/example2/hQGrun_initialstructure.sh38
-rw-r--r--sourcecodes/data/example2/hQGstructure_input.txt9
-rw-r--r--sourcecodes/data/example2/hQGstructure_input_temp.txt9
-rw-r--r--sourcecodes/data/example2/hQGstructure_old.txt7
-rw-r--r--sourcecodes/data/example2/hQGthr.txt1
-rw-r--r--sourcecodes/data/example2/hQGtier.txt1
-rw-r--r--sourcecodes/data/example2/hQGtype.txt2
-rw-r--r--sourcecodes/data/example2/hQGwhite.txt1
-rw-r--r--sourcecodes/data/example2/standardized_data.txt201
21 files changed, 1154 insertions, 0 deletions
diff --git a/sourcecodes/data/example2/hQGban.txt b/sourcecodes/data/example2/hQGban.txt
new file mode 100644
index 00000000..83e81b8b
--- /dev/null
+++ b/sourcecodes/data/example2/hQGban.txt
@@ -0,0 +1 @@
+From	To
diff --git a/sourcecodes/data/example2/hQGcontinuous_input.txt b/sourcecodes/data/example2/hQGcontinuous_input.txt
new file mode 100644
index 00000000..5e296c45
--- /dev/null
+++ b/sourcecodes/data/example2/hQGcontinuous_input.txt
@@ -0,0 +1,203 @@
+Geno1	Geno2	Trait1	Trait2	Trait3	Trait4	Trait5	Trait6
+2	2	1	1	1	1	1	1
+2	2	0.46259	1.2692	-1.3164	-0.44096	0.5929	-0.75422
+1	1	-0.10011	-0.88834	1.6407	0.99972	0.31288	0.65602
+1	1	-1.0533	-0.55296	1.2715	1.3686	-0.19153	0.37361
+1	2	0.042371	0.13573	-0.72659	-0.66133	0.43157	-1.6715
+1	2	-0.68686	-1.6152	-0.95019	-1.2239	0.12319	-0.79155
+1	1	-0.4558	0.090877	0.94224	1.2354	-0.36356	0.34937
+1	1	0.237	-0.49002	1.8939	1.4399	0.033059	1.3229
+1	2	0.070265	0.22547	-1.4903	-0.069341	-0.16148	-0.01449
+1	1	-0.69146	-0.43461	1.1501	0.21205	-0.18087	0.32746
+1	1	0.31535	-0.9858	0.57816	0.35924	0.12866	1.0553
+2	1	1.2718	0.39314	0.6669	0.90002	-0.30206	1.3376
+1	1	1.1871	-0.45611	0.87227	0.31014	-0.092846	0.81278
+2	1	-1.0168	-0.44286	1.6933	0.72968	0.038808	0.81906
+2	2	-0.25313	0.52468	0.02823	-0.20984	-0.075809	-1.3591
+1	2	-0.58108	-0.3967	-0.11925	-0.61288	0.46778	0.090941
+1	2	-0.88043	-0.28187	-1.1645	-1.2543	-0.28951	-1.039
+1	2	0.54121	0.24395	-1.0043	-1.4483	-0.19839	-2.5407
+2	1	0.47375	1.1319	0.68553	1.035	0.44043	1.3011
+2	1	0.57785	0.69093	1.5941	1.6735	0.19981	0.50708
+1	2	-0.43989	0.0024131	-1.5405	-1.2304	-0.15382	-1.1058
+2	1	0.38035	-0.063535	1.1606	1.3124	-0.38043	0.6277
+1	2	0.70114	-0.41044	-0.39767	-1.5424	0.27477	-0.76183
+1	1	-0.9406	-0.20526	1.3302	1.097	0.16006	1.2988
+1	2	0.52122	0.064793	-0.031492	0.21696	-0.41979	-0.79123
+1	2	-0.53387	-0.71043	-0.52344	-1.5584	-0.09538	-1.5781
+1	1	0.49563	-0.58126	0.7747	1.274	0.19196	0.10624
+2	2	1.1499	1.879	0.43595	0.73474	0.045381	-0.88645
+1	2	0.40705	-0.37647	-0.19815	-1.5366	0.37167	-0.10553
+2	2	0.62526	0.043371	-0.64449	-0.44076	-0.4318	-0.91807
+1	1	-0.61788	-0.62414	0.3169	0.85091	-0.10135	0.79065
+1	1	0.18491	-1.5226	1.1149	0.75046	0.25948	0.42431
+2	2	0.86063	0.92883	-1.1584	-0.099858	-0.55095	-0.064129
+1	2	-0.28946	0.0057533	-0.95703	-0.44018	0.084268	-0.23718
+1	1	-0.073096	0.16452	1.4444	1.1452	0.46025	0.30452
+1	1	0.15637	-0.73137	0.585	-0.046911	0.43881	1.2888
+1	2	0.081142	-0.63691	-0.14883	0.66593	-0.13479	-0.22207
+1	1	0.10876	-0.23383	1.8314	1.3282	0.4362	0.90139
+1	2	-1.0582	-0.97152	-0.57118	-1.2617	0.17115	-0.060679
+2	2	-0.47421	-0.56819	-0.38775	0.035215	0.51982	-1.6309
+2	2	-0.10242	0.8127	0.41773	-1.1308	-0.30719	-0.80758
+1	1	-0.083462	-0.4565	1.1556	0.3299	0.087362	0.31349
+1	2	-0.98158	0.01727	-1.3281	-1.4474	0.54555	-0.10096
+1	1	-0.80604	-0.19415	1.4986	1.3386	-0.16367	0.68271
+1	1	0.80082	-0.57853	1.0716	0.94015	-0.54114	0.032172
+2	2	2.0456	0.97954	-0.45536	-0.14332	-0.25819	-1.0833
+1	1	-0.30148	0.20623	0.64194	0.76414	-0.59067	0.64326
+1	1	-0.55625	-0.26957	1.8447	1.6568	-0.38077	0.58831
+1	2	0.11898	0.80706	-0.025844	-0.57984	-0.23395	-1.1554
+1	2	-0.095497	-1.0637	-0.92583	-0.57928	0.23695	-0.42992
+2	2	0.066154	0.73037	-0.73622	-0.57047	0.39169	0.40928
+1	1	0.81522	0.11381	0.68971	0.29219	0.037792	0.81502
+1	1	-0.65356	-0.20182	0.92089	0.92298	-0.5417	0.49215
+1	1	-0.90826	-0.10979	1.3847	0.75954	-0.20255	0.32975
+1	2	-0.25671	-1.1903	-1.4241	-1.6058	-0.062549	-1.3981
+2	2	-1.8038	-1.4801	-0.94121	-1.6244	0.4817	-0.0029469
+1	2	0.12651	0.028719	-1.5818	-1.0266	0.19779	-0.36357
+1	1	-1.0658	-0.58443	0.68956	0.35467	0.11177	1.5243
+1	2	0.14729	-0.15111	-0.027639	-0.2899	0.11533	-0.60305
+2	2	-0.76889	0.87161	-0.83556	-1.1777	-0.21878	-0.98527
+2	2	0.12252	0.49068	-0.2557	-1.5816	0.25332	-0.78715
+1	1	-0.40287	0.26456	0.62208	0.60909	0.36074	0.092703
+2	1	-0.78301	1.4641	1.3162	1.9448	-0.10841	0.9618
+1	2	-0.25018	-0.32797	-1.113	-1.6123	0.6272	-1.2718
+2	1	0.15804	-0.18147	2.4571	0.59504	-0.34056	0.8691
+2	1	-0.582	0.25738	1.4075	0.92251	-0.40889	0.66381
+1	1	-0.26827	0.58632	0.51883	1.5745	-0.13818	1.0526
+1	2	0.13453	0.18218	-0.51676	-0.54166	-0.36636	-1.206
+2	1	1.1502	0.36164	1.9983	1.0809	0.11272	0.67683
+1	2	0.27812	0.46559	-1.6109	-0.91039	0.3803	-0.71802
+2	1	0.15292	0.61921	0.71009	1.3063	-0.35819	0.8661
+1	2	0.19902	0.48986	-1.4026	-0.8495	0.47158	0.0622
+2	1	0.4838	1.1096	1.4392	1.1438	0.34739	0.084004
+1	1	-0.63609	-0.35105	0.63581	1.1939	-0.062938	0.91353
+1	2	0.64203	-0.5095	-1.7792	-0.88803	0.43482	-0.66314
+1	1	-0.18434	-0.48157	0.69942	0.56942	-0.019967	0.50506
+1	1	0.10168	-1.0928	1.2144	0.28313	0.22159	0.54058
+1	1	-0.18578	-0.45336	1.5468	0.99679	0.11821	1.0476
+1	2	-0.60607	-1.1275	-0.90963	-0.69014	-0.33163	-1.2734
+1	1	-0.35353	-0.42708	0.78989	0.14094	-0.056632	0.80598
+1	1	-0.020221	-1.1235	1.9782	-0.041281	0.19857	1.2488
+1	1	1.2346	-0.37121	1.3325	1.1237	-0.027458	1.0044
+2	2	-0.54489	1.6812	-0.59836	-0.012441	0.41243	-0.58835
+2	1	-0.029577	2.1707	1.3285	1.2109	0.29684	0.90646
+2	2	0.70774	1.0606	-1.3996	-0.020914	-0.60955	-1.2187
+2	1	0.07926	0.52862	1.3994	0.54549	0.55303	0.16155
+1	1	0.041856	-0.92023	0.87269	-0.66601	-0.15945	0.1004
+1	2	0.17665	0.31945	-1.7756	-0.60442	0.020525	-1.0625
+1	1	-0.090238	-0.65111	0.56993	-0.4117	-0.19486	-0.18849
+1	2	0.059166	-0.47194	-0.69068	-0.41022	0.25867	-0.057175
+1	2	0.10473	0.66887	0.082035	-0.55975	-0.28439	-1.468
+1	1	-0.20937	-0.36621	0.09609	0.28164	0.24673	-0.11107
+1	2	-1.2678	0.22369	-0.42201	-0.70103	0.075915	-1.3347
+1	2	-0.35467	0.11166	-0.42144	-0.095223	-0.29936	-0.68322
+2	2	0.84875	1.24	-0.81217	0.084034	-0.32224	-1.6241
+2	1	-0.45939	1.3208	0.97993	1.2991	-0.015791	1.487
+1	2	-0.42254	-0.57928	-0.58529	-2.2375	0.51999	-0.79909
+2	1	0.32092	-0.13796	0.67098	0.24639	-0.36066	-0.032948
+1	2	-1.2408	-0.94836	0.026276	-0.37981	-0.02237	-0.38777
+2	2	0.20959	2.1466	-1.7027	-1.3169	-0.16515	-1.046
+2	2	-0.10482	1.3773	-1.2998	-0.014223	0.34065	-0.35362
+1	2	-0.66188	-1.2477	-0.62084	0.27682	0.1674	-0.8918
+1	1	-0.97246	-0.73017	1.3843	1.5549	0.1067	0.85754
+1	1	0.74567	-0.032694	1.1153	0.97318	-0.0033905	0.85059
+2	2	0.29324	-0.090608	-0.4945	-1.0484	-0.14987	-1.0141
+2	1	-0.86818	0.44948	1.8531	0.51896	-0.021141	1.8486
+1	2	0.362	-0.29749	-0.66525	0.21709	-0.15594	-1.4087
+1	2	-0.17675	0.36465	-0.45423	-1.262	0.22968	-1.246
+1	2	-0.34633	-0.16067	-1.2216	-1.3019	-0.040891	-1.2935
+1	2	0.44608	-0.57732	0.25606	-1.1664	0.54705	-0.19859
+1	2	0.45398	-0.55214	-0.33433	-0.085418	-0.10094	-0.48509
+1	2	0.12407	0.022419	-1.0312	-0.47727	0.20924	-1.2961
+1	1	-0.76644	-1.1794	1.2345	0.84756	0.1532	0.77648
+1	2	-0.10329	-0.53768	-0.67677	-0.58708	-0.014634	-0.036347
+1	1	0.2378	0.15372	0.49652	0.29193	0.19047	1.152
+1	2	0.024605	-0.38937	-0.89907	-0.42106	0.16921	-0.80893
+1	2	0.28812	0.26265	-0.94234	-0.88527	-0.49803	0.48254
+1	1	0.85086	0.11783	1.5014	1.2382	0.24441	1.3649
+2	2	0.86172	0.14894	-0.4846	-1.3488	-0.41844	-1.1372
+1	2	0.67971	-0.27488	-0.50687	-0.79153	-0.093399	-1.391
+1	1	-0.91977	-0.66099	0.5801	0.46587	-0.2263	1.43
+1	2	0.88213	-0.48674	-0.42406	-1.2762	0.28981	-1.0813
+2	1	-0.36583	0.51518	1.4491	1.4995	-0.073755	1.1218
+1	1	-0.54006	-0.59443	0.81263	0.65809	-0.15621	1.2508
+2	2	1.2125	-0.012648	-0.92657	-0.81972	-0.1536	-1.0176
+1	2	0.42493	0.34558	-1.7672	-1.3503	-0.045928	0.37449
+1	1	0.17097	-0.86593	-0.13424	1.0257	0.058014	0.91044
+2	1	-1.393	0.5338	1.8514	2.291	0.15305	0.30028
+1	1	-0.58552	-1.5337	1.5133	0.9976	0.64638	1.4428
+1	2	0.046272	-0.56387	-0.86063	-1.0462	0.014457	-1.3038
+1	2	0.34933	-0.16796	-0.27854	-0.27327	-0.0040928	-0.17912
+1	1	-1.0672	0.3979	1.208	0.50111	-0.013978	0.015097
+1	2	0.31052	-0.46723	-1.1237	0.59267	0.30978	-1.0169
+1	2	-0.55337	-0.42776	-0.12612	-0.41838	-0.56558	-0.58189
+2	2	0.3925	0.15644	-0.72963	-0.66601	-0.10837	-0.27787
+1	2	-0.48513	-1.4119	-0.16889	-0.19646	-0.068098	-0.084247
+2	2	0.16692	1.5447	-1.3064	-1.3338	-0.25668	-0.48832
+1	2	-0.36092	0.31518	-0.44815	-1.4019	-0.47505	-0.37187
+1	1	-1.8192	-0.57745	1.1304	0.262	-0.3595	0.58577
+1	1	-0.065383	0.07156	1.4931	2.3215	0.85149	1.4585
+2	1	-1.119	0.70896	1.0498	0.74334	0.75838	1.6107
+2	2	-0.17682	-0.21029	-0.74465	-0.83806	0.10827	-1.2829
+1	2	0.69834	-0.082402	0.64008	-0.83119	-0.26766	0.36961
+2	2	-0.28266	1.1929	-0.15174	0.098554	-0.33989	-0.6376
+2	2	1.5369	1.8434	0.0030761	-0.59703	0.14497	-1.5165
+1	2	0.35023	-0.28475	-0.93594	-1.0937	-0.46614	-2.188
+2	1	0.62308	1.0873	-0.0037182	0.86847	-0.48699	-0.10105
+1	1	-1.0408	-0.99866	2.0799	1.1634	0.092516	0.30401
+1	1	-0.87125	-0.88987	1.0278	1.0157	-0.23725	1.2377
+1	2	-0.020591	-0.03398	-0.024834	-1.3588	-0.045961	-0.89693
+1	1	0.9213	-0.57037	1.044	1.2994	0.046517	0.66563
+1	2	-0.87288	-0.96382	-0.704	-1.2184	0.046903	-0.30008
+1	2	0.77586	-0.34168	-0.09867	-0.37744	-0.24309	-0.13441
+2	1	0.19521	0.67595	1.4533	1.5115	0.19553	0.79596
+2	1	-1.3273	1.0891	1.2544	0.98928	0.045725	0.54963
+2	2	0.59176	0.65915	-0.84578	-0.080229	-0.26961	0.24045
+1	2	-0.66958	-1.042	-1.2138	-0.7612	-0.22775	-0.40062
+1	2	1.1154	-0.57069	-0.6592	-2.1961	-0.013175	0.46007
+1	2	-0.5254	0.0031225	-0.77758	0.8169	0.13224	-0.65572
+2	1	0.24551	1.5078	0.10719	1.1454	0.70578	0.59051
+1	2	0.29875	-0.11455	-1.0497	-0.77881	0.080708	-0.48337
+1	1	-0.1047	0.011628	1.2504	0.41776	-0.20102	1.2252
+1	2	0.44808	-0.8165	-0.080134	-0.49618	0.051011	-0.71722
+2	1	2.0365	1.5592	1.3257	1.2472	-0.47899	0.10943
+1	1	-0.16507	-0.66011	0.98739	0.58519	0.245	-0.43277
+1	2	-0.028366	-0.16961	-1.3266	0.14248	-0.24634	-1.1154
+2	1	0.92842	1.8842	1.3169	1.0358	-0.20988	0.88021
+2	2	0.33158	0.32463	-0.50924	0.40233	0.54391	-0.24309
+1	2	1.2555	0.1928	-0.487	0.048779	-0.23483	-1.477
+2	1	0.75021	0.85943	-0.2323	0.10748	-0.68906	0.84276
+2	2	0.6297	1.7397	-1.6136	-0.43268	-0.21442	-0.77462
+2	1	0.53168	1.0807	1.0853	0.62304	0.44036	0.48087
+1	2	-0.31256	-0.69771	-0.88556	-1.333	0.038614	-1.5744
+1	2	-0.039695	-0.52447	0.91401	-0.93272	0.53434	-0.080746
+2	1	-0.16596	0.56821	0.76008	0.45442	0.10286	0.6539
+1	2	-0.4331	-0.89669	-1.3097	-1.2157	0.1065	-0.8512
+1	2	-0.34708	-0.51457	-1.012	-0.39437	-0.55374	-1.144
+2	2	0.024082	0.7128	-1.3702	-1.4492	-0.10228	-0.59071
+1	2	-0.0037109	-0.68845	-0.649	-0.91581	0.066805	-0.98583
+2	1	0.68706	0.067424	0.87139	0.7938	-0.099645	1.529
+2	2	-0.31183	0.57814	-0.80815	-0.66724	-0.31919	-0.61319
+1	2	-0.11153	-0.6246	-0.27979	-0.18363	0.83639	0.014919
+2	2	0.20406	1.5838	-0.96334	-1.1228	-0.17808	-1.2123
+2	2	-0.1134	0.63358	-0.53321	-0.84276	-0.27657	-0.36992
+1	2	0.25517	0.67006	-0.1349	0.18275	0.40982	-0.62487
+1	1	-1.2684	0.31042	0.91155	0.66143	0.2483	-0.12434
+1	1	-0.97542	-0.85419	0.7663	0.16362	-0.18737	0.67266
+1	2	-0.043882	-0.62746	-0.82816	-0.40626	-0.051048	-0.61297
+1	1	0.59605	-0.45852	1.2962	0.78156	-0.48154	0.17778
+2	2	-0.06266	1.1144	-0.80524	-0.3189	-0.16038	-0.96372
+1	2	-1.1821	1.0798	-1.3407	-0.52643	0.12458	-0.7871
+2	2	0.59446	0.89186	-0.97856	-0.64658	0.2712	-1.5538
+1	2	0.15067	0.41827	-1.0487	-1.0551	0.19143	-1.4537
+1	2	-1.073	0.022587	-1.7088	-1.3777	0.1964	-0.84025
+2	1	0.20928	1.8026	1.2073	2.78	0.15131	0.3448
+1	2	-1.1317	-0.6359	-0.70457	-1.676	-0.22886	-0.58769
+1	1	-0.039428	-0.58746	0.56	0.7896	-0.052581	0.99511
+1	2	0.55023	-0.20403	0.138	-0.70518	0.66927	-0.28861
+2	2	0.57423	1.1886	0.092876	0.025677	-0.41099	-1.2858
+2	2	-0.14179	1.5827	-0.94328	0.7703	-0.43967	-0.50448
+2	2	0.14666	1.0492	-0.0030259	-0.62418	-0.087515	-0.048386
+
diff --git a/sourcecodes/data/example2/hQGgraphviz.txt b/sourcecodes/data/example2/hQGgraphviz.txt
new file mode 100644
index 00000000..7f279843
--- /dev/null
+++ b/sourcecodes/data/example2/hQGgraphviz.txt
@@ -0,0 +1,11 @@
+digraph G {
+size="10,10";  ratio = fill;
+node [shape=square,width=1.5];
+Geno1 -> Trait2;
+Geno2 -> Trait3;
+Geno2 -> Trait4;
+Geno2 -> Trait6;
+Trait2 -> Trait1;
+Trait2 -> Trait4;
+Trait3 -> Trait4;
+}
\ No newline at end of file
diff --git a/sourcecodes/data/example2/hQGk.txt b/sourcecodes/data/example2/hQGk.txt
new file mode 100644
index 00000000..29d6383b
--- /dev/null
+++ b/sourcecodes/data/example2/hQGk.txt
@@ -0,0 +1 @@
+100
diff --git a/sourcecodes/data/example2/hQGmap.txt b/sourcecodes/data/example2/hQGmap.txt
new file mode 100644
index 00000000..032b8928
--- /dev/null
+++ b/sourcecodes/data/example2/hQGmap.txt
@@ -0,0 +1,8 @@
+Geno1	1	0.473175	1.335000
+Geno2	2	0.496318	1.570000
+Trait1	1	0.668009	-0.023903
+Trait2	1	0.796873	0.038552
+Trait3	2	1.036694	0.068708
+Trait4	1	0.984008	-0.010125
+Trait5	1	0.316471	0.008911
+Trait6	1	0.904542	-0.114267
diff --git a/sourcecodes/data/example2/hQGmapdata.txt b/sourcecodes/data/example2/hQGmapdata.txt
new file mode 100644
index 00000000..42b2fd9c
--- /dev/null
+++ b/sourcecodes/data/example2/hQGmapdata.txt
@@ -0,0 +1 @@
+Trait5	Geno2	Trait6	Trait3	Geno1	Trait2	Trait4	Trait1
diff --git a/sourcecodes/data/example2/hQGname.txt b/sourcecodes/data/example2/hQGname.txt
new file mode 100644
index 00000000..8f42b468
--- /dev/null
+++ b/sourcecodes/data/example2/hQGname.txt
@@ -0,0 +1 @@
+Geno1	Geno2	Trait1	Trait2	Trait3	Trait4	Trait5	Trait6
diff --git a/sourcecodes/data/example2/hQGnet_figure.txt b/sourcecodes/data/example2/hQGnet_figure.txt
new file mode 100644
index 00000000..893f9f14
--- /dev/null
+++ b/sourcecodes/data/example2/hQGnet_figure.txt
@@ -0,0 +1,652 @@
+8
+1200	1200	
+Trait5	0	0
+Geno2	300	0
+Trait6	120	300
+Trait3	420	300
+Geno1	600	0
+Trait2	720	300
+Trait4	100	600
+Trait1	500	600
+Trait5	1
+250	150
+0
+0
+-3.2055	0.0025
+-3.1368	0.0030
+-3.0681	0.0038
+-2.9994	0.0046
+-2.9308	0.0057
+-2.8621	0.0069
+-2.7934	0.0083
+-2.7247	0.0101
+-2.6561	0.0121
+-2.5874	0.0144
+-2.5187	0.0172
+-2.4500	0.0203
+-2.3813	0.0240
+-2.3127	0.0281
+-2.2440	0.0328
+-2.1753	0.0381
+-2.1066	0.0441
+-2.0379	0.0508
+-1.9693	0.0582
+-1.9006	0.0664
+-1.8319	0.0754
+-1.7632	0.0852
+-1.6945	0.0958
+-1.6259	0.1073
+-1.5572	0.1195
+-1.4885	0.1326
+-1.4198	0.1463
+-1.3511	0.1608
+-1.2825	0.1758
+-1.2138	0.1914
+-1.1451	0.2074
+-1.0764	0.2237
+-1.0078	0.2401
+-0.9391	0.2565
+-0.8704	0.2728
+-0.8017	0.2888
+-0.7330	0.3042
+-0.6644	0.3190
+-0.5957	0.3330
+-0.5270	0.3460
+-0.4583	0.3578
+-0.3896	0.3682
+-0.3210	0.3772
+-0.2523	0.3846
+-0.1836	0.3904
+-0.1149	0.3944
+-0.0462	0.3965
+0.0224	0.3969
+0.0911	0.3953
+0.1598	0.3920
+0.2285	0.3868
+0.2971	0.3800
+0.3658	0.3715
+0.4345	0.3615
+0.5032	0.3502
+0.5719	0.3376
+0.6405	0.3240
+0.7092	0.3095
+0.7779	0.2942
+0.8466	0.2784
+0.9153	0.2622
+0.9839	0.2458
+1.0526	0.2294
+1.1213	0.2130
+1.1900	0.1969
+1.2587	0.1812
+1.3273	0.1659
+1.3960	0.1513
+1.4647	0.1373
+1.5334	0.1240
+1.6021	0.1114
+1.6707	0.0997
+1.7394	0.0888
+1.8081	0.0787
+1.8768	0.0694
+1.9454	0.0610
+2.0141	0.0533
+2.0828	0.0464
+2.1515	0.0401
+2.2202	0.0346
+2.2888	0.0297
+2.3575	0.0253
+2.4262	0.0215
+2.4949	0.0182
+2.5636	0.0153
+2.6322	0.0129
+2.7009	0.0107
+2.7696	0.0089
+2.8383	0.0074
+2.9070	0.0061
+2.9756	0.0050
+3.0443	0.0040
+3.1130	0.0033
+3.1817	0.0026
+3.2503	0.0021
+3.3190	0.0017
+3.3877	0.0014
+3.4564	0.0011
+3.5251	0.0008
+3.5937	0.0007
+3.6624	0.0005
+Geno2	2
+250	150
+0
+3	3	4	7
+1	0.4300
+2	0.5700
+Trait6	1
+250	150
+1	2
+0
+-3.6825	0.0005
+-3.6140	0.0006
+-3.5455	0.0008
+-3.4769	0.0010
+-3.4084	0.0013
+-3.3399	0.0016
+-3.2713	0.0020
+-3.2028	0.0025
+-3.1343	0.0031
+-3.0658	0.0038
+-2.9972	0.0046
+-2.9287	0.0057
+-2.8602	0.0069
+-2.7917	0.0084
+-2.7231	0.0101
+-2.6546	0.0121
+-2.5861	0.0145
+-2.5176	0.0172
+-2.4490	0.0204
+-2.3805	0.0240
+-2.3120	0.0282
+-2.2435	0.0329
+-2.1749	0.0382
+-2.1064	0.0441
+-2.0379	0.0508
+-1.9694	0.0582
+-1.9008	0.0664
+-1.8323	0.0753
+-1.7638	0.0851
+-1.6953	0.0957
+-1.6267	0.1071
+-1.5582	0.1193
+-1.4897	0.1323
+-1.4212	0.1461
+-1.3526	0.1605
+-1.2841	0.1755
+-1.2156	0.1910
+-1.1471	0.2069
+-1.0785	0.2232
+-1.0100	0.2396
+-0.9415	0.2560
+-0.8730	0.2722
+-0.8044	0.2881
+-0.7359	0.3036
+-0.6674	0.3184
+-0.5989	0.3324
+-0.5303	0.3454
+-0.4618	0.3572
+-0.3933	0.3677
+-0.3248	0.3768
+-0.2562	0.3843
+-0.1877	0.3901
+-0.1192	0.3942
+-0.0507	0.3965
+0.0179	0.3969
+0.0864	0.3955
+0.1549	0.3923
+0.2234	0.3873
+0.2920	0.3806
+0.3605	0.3722
+0.4290	0.3624
+0.4975	0.3512
+0.5661	0.3387
+0.6346	0.3252
+0.7031	0.3108
+0.7716	0.2956
+0.8402	0.2799
+0.9087	0.2638
+0.9772	0.2474
+1.0457	0.2310
+1.1143	0.2147
+1.1828	0.1986
+1.2513	0.1829
+1.3198	0.1676
+1.3884	0.1529
+1.4569	0.1388
+1.5254	0.1255
+1.5939	0.1129
+1.6625	0.1011
+1.7310	0.0901
+1.7995	0.0799
+1.8680	0.0706
+1.9366	0.0620
+2.0051	0.0542
+2.0736	0.0472
+2.1421	0.0409
+2.2107	0.0353
+2.2792	0.0303
+2.3477	0.0259
+2.4162	0.0221
+2.4848	0.0187
+2.5533	0.0157
+2.6218	0.0132
+2.6903	0.0110
+2.7589	0.0092
+2.8274	0.0076
+2.8959	0.0062
+2.9644	0.0051
+3.0330	0.0042
+3.1015	0.0034
+3.1700	0.0027
+Trait3	1
+250	150
+1	2
+1	7
+-2.7825	0.0086
+-2.7216	0.0101
+-2.6608	0.0119
+-2.5999	0.0140
+-2.5390	0.0163
+-2.4782	0.0190
+-2.4173	0.0220
+-2.3565	0.0254
+-2.2956	0.0292
+-2.2347	0.0335
+-2.1739	0.0383
+-2.1130	0.0435
+-2.0521	0.0494
+-1.9913	0.0558
+-1.9304	0.0627
+-1.8695	0.0704
+-1.8087	0.0786
+-1.7478	0.0875
+-1.6870	0.0970
+-1.6261	0.1072
+-1.5652	0.1180
+-1.5044	0.1295
+-1.4435	0.1415
+-1.3826	0.1541
+-1.3218	0.1672
+-1.2609	0.1807
+-1.2000	0.1946
+-1.1392	0.2088
+-1.0783	0.2232
+-1.0175	0.2378
+-0.9566	0.2524
+-0.8957	0.2668
+-0.8349	0.2811
+-0.7740	0.2951
+-0.7131	0.3086
+-0.6523	0.3216
+-0.5914	0.3338
+-0.5305	0.3453
+-0.4697	0.3559
+-0.4088	0.3654
+-0.3480	0.3739
+-0.2871	0.3811
+-0.2262	0.3870
+-0.1654	0.3916
+-0.1045	0.3948
+-0.0436	0.3966
+0.0172	0.3969
+0.0781	0.3958
+0.1389	0.3932
+0.1998	0.3892
+0.2607	0.3838
+0.3215	0.3772
+0.3824	0.3692
+0.4433	0.3602
+0.5041	0.3500
+0.5650	0.3389
+0.6259	0.3270
+0.6867	0.3143
+0.7476	0.3010
+0.8084	0.2872
+0.8693	0.2731
+0.9302	0.2587
+0.9910	0.2441
+1.0519	0.2295
+1.1128	0.2150
+1.1736	0.2007
+1.2345	0.1867
+1.2954	0.1730
+1.3562	0.1597
+1.4171	0.1469
+1.4779	0.1346
+1.5388	0.1229
+1.5997	0.1118
+1.6605	0.1014
+1.7214	0.0916
+1.7823	0.0824
+1.8431	0.0739
+1.9040	0.0660
+1.9649	0.0587
+2.0257	0.0521
+2.0866	0.0460
+2.1474	0.0405
+2.2083	0.0355
+2.2692	0.0310
+2.3300	0.0270
+2.3909	0.0234
+2.4518	0.0202
+2.5126	0.0174
+2.5735	0.0150
+2.6344	0.0128
+2.6952	0.0109
+2.7561	0.0092
+2.8169	0.0078
+2.8778	0.0066
+2.9387	0.0055
+2.9995	0.0046
+3.0604	0.0038
+3.1213	0.0032
+3.1821	0.0026
+3.2430	0.0022
+3.3039	0.0018
+Geno1	2
+250	150
+0
+1	6
+1	0.6650
+2	0.3350
+Trait2	1
+250	150
+1	5
+2	7	8
+-3.0753	0.0037
+-3.0078	0.0045
+-2.9403	0.0055
+-2.8728	0.0067
+-2.8053	0.0081
+-2.7378	0.0097
+-2.6702	0.0116
+-2.6027	0.0139
+-2.5352	0.0165
+-2.4677	0.0195
+-2.4002	0.0229
+-2.3327	0.0268
+-2.2652	0.0313
+-2.1977	0.0363
+-2.1302	0.0420
+-2.0627	0.0483
+-1.9951	0.0553
+-1.9276	0.0631
+-1.8601	0.0716
+-1.7926	0.0809
+-1.7251	0.0910
+-1.6576	0.1019
+-1.5901	0.1135
+-1.5226	0.1260
+-1.4551	0.1392
+-1.3876	0.1530
+-1.3201	0.1675
+-1.2525	0.1826
+-1.1850	0.1981
+-1.1175	0.2139
+-1.0500	0.2300
+-0.9825	0.2462
+-0.9150	0.2623
+-0.8475	0.2782
+-0.7800	0.2937
+-0.7125	0.3088
+-0.6450	0.3231
+-0.5775	0.3366
+-0.5099	0.3490
+-0.4424	0.3603
+-0.3749	0.3703
+-0.3074	0.3788
+-0.2399	0.3858
+-0.1724	0.3912
+-0.1049	0.3948
+-0.0374	0.3967
+0.0301	0.3968
+0.0976	0.3951
+0.1652	0.3916
+0.2327	0.3865
+0.3002	0.3796
+0.3677	0.3713
+0.4352	0.3614
+0.5027	0.3503
+0.5702	0.3379
+0.6377	0.3246
+0.7052	0.3103
+0.7727	0.2954
+0.8402	0.2799
+0.9078	0.2640
+0.9753	0.2479
+1.0428	0.2317
+1.1103	0.2156
+1.1778	0.1998
+1.2453	0.1842
+1.3128	0.1691
+1.3803	0.1546
+1.4478	0.1406
+1.5153	0.1274
+1.5829	0.1148
+1.6504	0.1031
+1.7179	0.0921
+1.7854	0.0819
+1.8529	0.0725
+1.9204	0.0640
+1.9879	0.0561
+2.0554	0.0490
+2.1229	0.0426
+2.1904	0.0369
+2.2579	0.0318
+2.3255	0.0273
+2.3930	0.0233
+2.4605	0.0198
+2.5280	0.0168
+2.5955	0.0141
+2.6630	0.0119
+2.7305	0.0099
+2.7980	0.0082
+2.8655	0.0068
+2.9330	0.0056
+3.0005	0.0046
+3.0681	0.0038
+3.1356	0.0031
+3.2031	0.0025
+3.2706	0.0020
+3.3381	0.0016
+3.4056	0.0013
+3.4731	0.0010
+3.5406	0.0008
+3.6081	0.0006
+3.6756	0.0005
+Trait4	1
+250	150
+3	2	4	6
+0
+-3.2636	0.0025
+-3.1926	0.0031
+-3.1216	0.0039
+-3.0506	0.0048
+-2.9796	0.0059
+-2.9086	0.0071
+-2.8376	0.0086
+-2.7666	0.0104
+-2.6957	0.0125
+-2.6247	0.0150
+-2.5537	0.0178
+-2.4827	0.0211
+-2.4117	0.0248
+-2.3407	0.0291
+-2.2697	0.0340
+-2.1987	0.0395
+-2.1277	0.0456
+-2.0567	0.0525
+-1.9857	0.0601
+-1.9148	0.0685
+-1.8438	0.0777
+-1.7728	0.0877
+-1.7018	0.0986
+-1.6308	0.1102
+-1.5598	0.1226
+-1.4888	0.1358
+-1.4178	0.1497
+-1.3468	0.1643
+-1.2758	0.1794
+-1.2049	0.1949
+-1.1339	0.2108
+-1.0629	0.2270
+-0.9919	0.2432
+-0.9209	0.2593
+-0.8499	0.2751
+-0.7789	0.2906
+-0.7079	0.3055
+-0.6369	0.3196
+-0.5659	0.3328
+-0.4949	0.3448
+-0.4240	0.3557
+-0.3530	0.3651
+-0.2820	0.3730
+-0.2110	0.3792
+-0.1400	0.3838
+-0.0690	0.3865
+0.0020	0.3874
+0.0730	0.3865
+0.1440	0.3838
+0.2150	0.3792
+0.2859	0.3730
+0.3569	0.3651
+0.4279	0.3557
+0.4989	0.3448
+0.5699	0.3328
+0.6409	0.3196
+0.7119	0.3055
+0.7829	0.2906
+0.8539	0.2752
+0.9249	0.2593
+0.9959	0.2432
+1.0668	0.2270
+1.1378	0.2109
+1.2088	0.1950
+1.2798	0.1794
+1.3508	0.1643
+1.4218	0.1498
+1.4928	0.1358
+1.5638	0.1227
+1.6348	0.1102
+1.7058	0.0986
+1.7767	0.0877
+1.8477	0.0777
+1.9187	0.0685
+1.9897	0.0601
+2.0607	0.0525
+2.1317	0.0456
+2.2027	0.0395
+2.2737	0.0340
+2.3447	0.0291
+2.4157	0.0248
+2.4867	0.0211
+2.5576	0.0178
+2.6286	0.0150
+2.6996	0.0125
+2.7706	0.0104
+2.8416	0.0086
+2.9126	0.0071
+2.9836	0.0059
+3.0546	0.0048
+3.1256	0.0039
+3.1966	0.0031
+3.2675	0.0025
+3.3385	0.0020
+3.4095	0.0016
+3.4805	0.0013
+3.5515	0.0010
+3.6225	0.0008
+3.6935	0.0006
+3.7645	0.0005
+3.8355	0.0004
+Trait1	1
+250	150
+1	6
+0
+-3.6875	0.0005
+-3.6097	0.0006
+-3.5318	0.0008
+-3.4540	0.0011
+-3.3761	0.0014
+-3.2983	0.0018
+-3.2204	0.0024
+-3.1425	0.0030
+-3.0647	0.0038
+-2.9868	0.0048
+-2.9090	0.0061
+-2.8311	0.0076
+-2.7533	0.0094
+-2.6754	0.0115
+-2.5976	0.0141
+-2.5197	0.0172
+-2.4418	0.0208
+-2.3640	0.0251
+-2.2861	0.0300
+-2.2083	0.0356
+-2.1304	0.0421
+-2.0526	0.0495
+-1.9747	0.0577
+-1.8969	0.0670
+-1.8190	0.0773
+-1.7411	0.0887
+-1.6633	0.1011
+-1.5854	0.1145
+-1.5076	0.1290
+-1.4297	0.1444
+-1.3519	0.1608
+-1.2740	0.1778
+-1.1962	0.1956
+-1.1183	0.2138
+-1.0404	0.2323
+-0.9626	0.2509
+-0.8847	0.2694
+-0.8069	0.2875
+-0.7290	0.3050
+-0.6512	0.3216
+-0.5733	0.3371
+-0.4955	0.3513
+-0.4176	0.3639
+-0.3397	0.3746
+-0.2619	0.3834
+-0.1840	0.3900
+-0.1062	0.3944
+-0.0283	0.3964
+0.0495	0.3961
+0.1274	0.3934
+0.2052	0.3884
+0.2831	0.3812
+0.3610	0.3719
+0.4388	0.3606
+0.5167	0.3476
+0.5945	0.3330
+0.6724	0.3172
+0.7502	0.3003
+0.8281	0.2826
+0.9059	0.2644
+0.9838	0.2458
+1.0617	0.2272
+1.1395	0.2088
+1.2174	0.1907
+1.2952	0.1731
+1.3731	0.1562
+1.4509	0.1401
+1.5288	0.1250
+1.6066	0.1108
+1.6845	0.0976
+1.7624	0.0855
+1.8402	0.0744
+1.9181	0.0644
+1.9959	0.0554
+2.0738	0.0474
+2.1516	0.0403
+2.2295	0.0340
+2.3073	0.0286
+2.3852	0.0238
+2.4631	0.0198
+2.5409	0.0163
+2.6188	0.0134
+2.6966	0.0109
+2.7745	0.0088
+2.8523	0.0071
+2.9302	0.0057
+3.0080	0.0045
+3.0859	0.0036
+3.1638	0.0028
+3.2416	0.0022
+3.3195	0.0017
+3.3973	0.0013
+3.4752	0.0010
+3.5530	0.0008
+3.6309	0.0006
+3.7087	0.0004
+3.7866	0.0003
+3.8645	0.0002
+3.9423	0.0002
+4.0202	0.0001
+4.0980	0.0001
diff --git a/sourcecodes/data/example2/hQGnlevels.txt b/sourcecodes/data/example2/hQGnlevels.txt
new file mode 100644
index 00000000..32457058
--- /dev/null
+++ b/sourcecodes/data/example2/hQGnlevels.txt
@@ -0,0 +1,4 @@
+Geno1	1	2
+Geno2	1	2
+
+
diff --git a/sourcecodes/data/example2/hQGnnode.txt b/sourcecodes/data/example2/hQGnnode.txt
new file mode 100644
index 00000000..45a4fb75
--- /dev/null
+++ b/sourcecodes/data/example2/hQGnnode.txt
@@ -0,0 +1 @@
+8
diff --git a/sourcecodes/data/example2/hQGnrows.txt b/sourcecodes/data/example2/hQGnrows.txt
new file mode 100644
index 00000000..3bc92d44
--- /dev/null
+++ b/sourcecodes/data/example2/hQGnrows.txt
@@ -0,0 +1 @@
+201
diff --git a/sourcecodes/data/example2/hQGparent.txt b/sourcecodes/data/example2/hQGparent.txt
new file mode 100644
index 00000000..b8626c4c
--- /dev/null
+++ b/sourcecodes/data/example2/hQGparent.txt
@@ -0,0 +1 @@
+4
diff --git a/sourcecodes/data/example2/hQGrun_initialstructure.sh b/sourcecodes/data/example2/hQGrun_initialstructure.sh
new file mode 100644
index 00000000..7d4cbfea
--- /dev/null
+++ b/sourcecodes/data/example2/hQGrun_initialstructure.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+# script for execution of deployed applications
+#
+# Sets up the MCR environment for the current $ARCH and executes 
+# the specified command.
+#
+exe_name=$0
+exe_dir=`dirname "$0"`
+echo "------------------------------------------"
+if [ "x$1" = "x" ]; then
+  echo Usage:
+  echo    $0 \<deployedMCRroot\> args
+else
+  echo Setting up environment variables
+  MCRROOT="$1"
+  echo ---
+  LD_LIBRARY_PATH=.:${MCRROOT}/runtime/glnxa64 ;
+  LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/bin/glnxa64 ;
+  LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/os/glnxa64;
+	MCRJRE=${MCRROOT}/sys/java/jre/glnxa64/jre/lib/amd64 ;
+	LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/native_threads ; 
+	LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/server ;
+	LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/client ;
+	LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE} ;  
+  XAPPLRESDIR=${MCRROOT}/X11/app-defaults ;
+  export LD_LIBRARY_PATH;
+  export XAPPLRESDIR;
+  echo LD_LIBRARY_PATH is ${LD_LIBRARY_PATH};
+  shift 1
+  args=
+  while [ $# -gt 0 ]; do
+      token=`echo "$1" | sed 's/ /\\\\ /g'`   # Add blackslash before each blank
+      args="${args} ${token}" 
+      shift
+  done
+  "${exe_dir}"/initialstructure hQG
+fi
+exit
diff --git a/sourcecodes/data/example2/hQGstructure_input.txt b/sourcecodes/data/example2/hQGstructure_input.txt
new file mode 100644
index 00000000..410c0fa4
--- /dev/null
+++ b/sourcecodes/data/example2/hQGstructure_input.txt
@@ -0,0 +1,9 @@
+Geno1	Geno2	Trait1	Trait2	Trait3	Trait4	Trait5	Trait6	
+0	0	0	1	0	0	0	0	
+0	0	0	0	1	1	0	1	
+0	0	0	0	0	0	0	0	
+0	0	1	0	0	1	0	0	
+0	0	0	0	0	1	0	0	
+0	0	0	0	0	0	0	0	
+0	0	0	0	0	0	0	0	
+0	0	0	0	0	0	0	0	
diff --git a/sourcecodes/data/example2/hQGstructure_input_temp.txt b/sourcecodes/data/example2/hQGstructure_input_temp.txt
new file mode 100644
index 00000000..63380a62
--- /dev/null
+++ b/sourcecodes/data/example2/hQGstructure_input_temp.txt
@@ -0,0 +1,9 @@
+Geno1	Geno2	Trait1	Trait2	Trait3	Trait4	Trait5	Trait6	
+0.000000	0.000000	0.000000	1.000000	0.000000	0.000000	0.350069	0.000000	
+0.030654	0.000000	0.049399	0.000000	1.000000	1.000000	0.000000	1.000000	
+0.000000	0.000000	0.000000	0.000000	0.025163	0.000000	0.123845	0.000000	
+0.000000	0.000000	1.000000	0.000000	0.000000	1.000000	0.053585	0.000000	
+0.000000	0.000000	0.000000	0.108604	0.000000	1.000000	0.010570	0.000000	
+0.000000	0.000000	0.013713	0.000000	0.000000	0.000000	0.011282	0.000000	
+0.000000	0.000000	0.000000	0.000000	0.000000	0.000000	0.000000	0.137567	
+0.000000	0.000000	0.136004	0.056792	0.457123	0.029978	0.000000	0.000000	
diff --git a/sourcecodes/data/example2/hQGstructure_old.txt b/sourcecodes/data/example2/hQGstructure_old.txt
new file mode 100644
index 00000000..f979ea93
--- /dev/null
+++ b/sourcecodes/data/example2/hQGstructure_old.txt
@@ -0,0 +1,7 @@
+Geno1	0.6650	0.3350
+Trait2	0.0037	0.0045	0.0055	0.0067	0.0081	0.0097	0.0116	0.0139	0.0165	0.0195	0.0229	0.0268	0.0313	0.0363	0.0420	0.0483	0.0553	0.0631	0.0716	0.0809	0.0910	0.1019	0.1135	0.1260	0.1392	0.1530	0.1675	0.1826	0.1981	0.2139	0.2300	0.2462	0.2623	0.2782	0.2937	0.3088	0.3231	0.3366	0.3490	0.3603	0.3703	0.3788	0.3858	0.3912	0.3948	0.3967	0.3968	0.3951	0.3916	0.3865	0.3796	0.3713	0.3614	0.3503	0.3379	0.3246	0.3103	0.2954	0.2799	0.2640	0.2479	0.2317	0.2156	0.1998	0.1842	0.1691	0.1546	0.1406	0.1274	0.1148	0.1031	0.0921	0.0819	0.0725	0.0640	0.0561	0.0490	0.0426	0.0369	0.0318	0.0273	0.0233	0.0198	0.0168	0.0141	0.0119	0.0099	0.0082	0.0068	0.0056	0.0046	0.0038	0.0031	0.0025	0.0020	0.0016	0.0013	0.0010	0.0008	0.0006	0.0005
+Geno2	0.4300	0.5700
+Trait3	0.0086	0.0101	0.0119	0.0140	0.0163	0.0190	0.0220	0.0254	0.0292	0.0335	0.0383	0.0435	0.0494	0.0558	0.0627	0.0704	0.0786	0.0875	0.0970	0.1072	0.1180	0.1295	0.1415	0.1541	0.1672	0.1807	0.1946	0.2088	0.2232	0.2378	0.2524	0.2668	0.2811	0.2951	0.3086	0.3216	0.3338	0.3453	0.3559	0.3654	0.3739	0.3811	0.3870	0.3916	0.3948	0.3966	0.3969	0.3958	0.3932	0.3892	0.3838	0.3772	0.3692	0.3602	0.3500	0.3389	0.3270	0.3143	0.3010	0.2872	0.2731	0.2587	0.2441	0.2295	0.2150	0.2007	0.1867	0.1730	0.1597	0.1469	0.1346	0.1229	0.1118	0.1014	0.0916	0.0824	0.0739	0.0660	0.0587	0.0521	0.0460	0.0405	0.0355	0.0310	0.0270	0.0234	0.0202	0.0174	0.0150	0.0128	0.0109	0.0092	0.0078	0.0066	0.0055	0.0046	0.0038	0.0032	0.0026	0.0022	0.0018
+Trait4	0.0025	0.0031	0.0039	0.0048	0.0059	0.0071	0.0086	0.0104	0.0125	0.0150	0.0178	0.0211	0.0248	0.0291	0.0340	0.0395	0.0456	0.0525	0.0601	0.0685	0.0777	0.0877	0.0986	0.1102	0.1226	0.1358	0.1497	0.1643	0.1794	0.1949	0.2108	0.2270	0.2432	0.2593	0.2751	0.2906	0.3055	0.3196	0.3328	0.3448	0.3557	0.3651	0.3730	0.3792	0.3838	0.3865	0.3874	0.3865	0.3838	0.3792	0.3730	0.3651	0.3557	0.3448	0.3328	0.3196	0.3055	0.2906	0.2752	0.2593	0.2432	0.2270	0.2109	0.1950	0.1794	0.1643	0.1498	0.1358	0.1227	0.1102	0.0986	0.0877	0.0777	0.0685	0.0601	0.0525	0.0456	0.0395	0.0340	0.0291	0.0248	0.0211	0.0178	0.0150	0.0125	0.0104	0.0086	0.0071	0.0059	0.0048	0.0039	0.0031	0.0025	0.0020	0.0016	0.0013	0.0010	0.0008	0.0006	0.0005	0.0004
+Trait6	0.0005	0.0006	0.0008	0.0010	0.0013	0.0016	0.0020	0.0025	0.0031	0.0038	0.0046	0.0057	0.0069	0.0084	0.0101	0.0121	0.0145	0.0172	0.0204	0.0240	0.0282	0.0329	0.0382	0.0441	0.0508	0.0582	0.0664	0.0753	0.0851	0.0957	0.1071	0.1193	0.1323	0.1461	0.1605	0.1755	0.1910	0.2069	0.2232	0.2396	0.2560	0.2722	0.2881	0.3036	0.3184	0.3324	0.3454	0.3572	0.3677	0.3768	0.3843	0.3901	0.3942	0.3965	0.3969	0.3955	0.3923	0.3873	0.3806	0.3722	0.3624	0.3512	0.3387	0.3252	0.3108	0.2956	0.2799	0.2638	0.2474	0.2310	0.2147	0.1986	0.1829	0.1676	0.1529	0.1388	0.1255	0.1129	0.1011	0.0901	0.0799	0.0706	0.0620	0.0542	0.0472	0.0409	0.0353	0.0303	0.0259	0.0221	0.0187	0.0157	0.0132	0.0110	0.0092	0.0076	0.0062	0.0051	0.0042	0.0034	0.0027
+Trait1	0.0005	0.0006	0.0008	0.0011	0.0014	0.0018	0.0024	0.0030	0.0038	0.0048	0.0061	0.0076	0.0094	0.0115	0.0141	0.0172	0.0208	0.0251	0.0300	0.0356	0.0421	0.0495	0.0577	0.0670	0.0773	0.0887	0.1011	0.1145	0.1290	0.1444	0.1608	0.1778	0.1956	0.2138	0.2323	0.2509	0.2694	0.2875	0.3050	0.3216	0.3371	0.3513	0.3639	0.3746	0.3834	0.3900	0.3944	0.3964	0.3961	0.3934	0.3884	0.3812	0.3719	0.3606	0.3476	0.3330	0.3172	0.3003	0.2826	0.2644	0.2458	0.2272	0.2088	0.1907	0.1731	0.1562	0.1401	0.1250	0.1108	0.0976	0.0855	0.0744	0.0644	0.0554	0.0474	0.0403	0.0340	0.0286	0.0238	0.0198	0.0163	0.0134	0.0109	0.0088	0.0071	0.0057	0.0045	0.0036	0.0028	0.0022	0.0017	0.0013	0.0010	0.0008	0.0006	0.0004	0.0003	0.0002	0.0002	0.0001	0.0001
diff --git a/sourcecodes/data/example2/hQGthr.txt b/sourcecodes/data/example2/hQGthr.txt
new file mode 100644
index 00000000..2eb3c4fe
--- /dev/null
+++ b/sourcecodes/data/example2/hQGthr.txt
@@ -0,0 +1 @@
+0.5
diff --git a/sourcecodes/data/example2/hQGtier.txt b/sourcecodes/data/example2/hQGtier.txt
new file mode 100644
index 00000000..bc94239b
--- /dev/null
+++ b/sourcecodes/data/example2/hQGtier.txt
@@ -0,0 +1 @@
+3,Tier1,0,Tier2,0,Tier3,0,
\ No newline at end of file
diff --git a/sourcecodes/data/example2/hQGtype.txt b/sourcecodes/data/example2/hQGtype.txt
new file mode 100644
index 00000000..285a68af
--- /dev/null
+++ b/sourcecodes/data/example2/hQGtype.txt
@@ -0,0 +1,2 @@
+Geno1	Geno2	Trait1	Trait2	Trait3	Trait4	Trait5	Trait6
+2	2	1	1	1	1	1	1	
diff --git a/sourcecodes/data/example2/hQGwhite.txt b/sourcecodes/data/example2/hQGwhite.txt
new file mode 100644
index 00000000..83e81b8b
--- /dev/null
+++ b/sourcecodes/data/example2/hQGwhite.txt
@@ -0,0 +1 @@
+From	To
diff --git a/sourcecodes/data/example2/standardized_data.txt b/sourcecodes/data/example2/standardized_data.txt
new file mode 100644
index 00000000..743e8b02
--- /dev/null
+++ b/sourcecodes/data/example2/standardized_data.txt
@@ -0,0 +1,201 @@
+Trait5	Geno2	Trait6	Trait3	Geno1	Trait2	Trait4	Trait1	
+1.8453	2	-0.70749	-1.3361	2	1.5443	-0.43784	0.72827
+0.9605	1	0.85158	1.5164	1	-1.1632	1.0263	-0.11408
+-0.63336	1	0.53936	1.1602	1	-0.74229	1.4011	-1.541
+1.3355	2	-1.7216	-0.76715	1	0.12195	-0.66179	0.099211
+0.36111	2	-0.74876	-0.98283	1	-2.0753	-1.2335	-0.99244
+-1.177	1	0.51257	0.84261	1	0.065663	1.2658	-0.64654
+0.076305	1	1.5888	1.7606	1	-0.66331	1.4736	0.39057
+-0.53841	2	0.11031	-1.5038	1	0.23456	-0.060179	0.14097
+-0.59968	1	0.48834	1.0431	1	-0.59377	0.22579	-0.99932
+0.37839	1	1.293	0.49142	1	-1.2855	0.37537	0.50786
+-0.98262	1	1.6051	0.57702	2	0.44497	0.92494	1.9396
+-0.32154	1	1.0249	0.77512	1	-0.62075	0.32547	1.8129
+0.094471	1	1.0318	1.5671	2	-0.60413	0.75183	-1.4864
+-0.2677	2	-1.3762	-0.039045	2	0.61004	-0.20296	-0.34315
+1.45	2	0.22686	-0.18131	1	-0.5462	-0.61255	-0.83409
+-0.94296	2	-1.0223	-1.1896	1	-0.4021	-1.2644	-1.2822
+-0.65504	2	-2.6825	-1.035	1	0.25776	-1.4615	0.84597
+1.3635	1	1.5647	0.59499	2	1.372	1.0621	0.74498
+0.60321	1	0.68692	1.4714	2	0.81867	1.711	0.90082
+-0.5142	2	-1.0962	-1.5522	1	-0.04535	-1.2401	-0.62273
+-1.2303	1	0.82027	1.0532	2	-0.12811	1.344	0.60516
+0.84008	2	-0.7159	-0.44987	1	-0.56344	-1.5572	1.0854
+0.47761	1	1.5622	1.2168	1	-0.30596	1.1251	-1.3723
+-1.3546	2	-0.7484	-0.096654	1	0.03293	0.23078	0.81604
+-0.32954	2	-1.6183	-0.57119	1	-0.9399	-1.5734	-0.76341
+0.57841	1	0.24378	0.681	1	-0.7778	1.305	0.77773
+0.11524	2	-0.85367	0.35424	2	2.3096	0.75697	1.7572
+1.1463	2	0.0096586	-0.25741	1	-0.52081	-1.5513	0.64513
+-1.3926	2	-0.88863	-0.68795	2	0.0060478	-0.43763	0.97179
+-0.34841	1	1.0004	0.23941	1	-0.83161	0.87503	-0.88918
+0.79176	1	0.59541	1.0092	1	-1.9591	0.77295	0.31259
+-1.7691	2	0.055429	-1.1837	2	1.1172	-0.091192	1.3241
+0.23812	2	-0.13588	-0.98943	1	-0.041159	-0.43704	-0.39754
+1.4262	1	0.46298	1.327	1	0.15808	1.1741	-0.073642
+1.3584	1	1.5511	0.49802	1	-0.96618	-0.037384	0.26987
+-0.45407	2	-0.11918	-0.20984	1	-0.84764	0.68704	0.15725
+1.3502	1	1.1228	1.7003	1	-0.34181	1.3601	0.19859
+0.51265	2	0.059243	-0.61724	1	-1.2675	-1.2719	-1.5483
+1.6144	2	-1.6767	-0.4403	2	-0.7614	0.046076	-0.6741
+-0.99883	2	-0.76648	0.33667	2	0.97148	-1.1389	-0.11754
+0.24789	1	0.4729	1.0484	1	-0.62124	0.34555	-0.08916
+1.6957	2	0.014711	-1.3474	1	-0.026706	-1.4606	-1.4336
+-0.54533	1	0.88108	1.3793	1	-0.29202	1.3706	-1.1708
+-1.7381	1	0.16189	0.96739	1	-0.77438	0.96572	1.2346
+-0.844	2	-1.0713	-0.50552	2	1.1809	-0.13536	3.098
+-1.8946	1	0.83747	0.55294	1	0.21042	0.78685	-0.41553
+-1.2313	1	0.77672	1.7131	1	-0.38666	1.694	-0.79692
+-0.7674	2	-1.151	-0.091205	1	0.9644	-0.57897	0.21389
+0.72057	2	-0.34897	-0.95934	1	-1.3832	-0.57841	-0.10718
+1.2095	2	0.5788	-0.77644	2	0.86817	-0.56945	0.13481
+0.09126	1	1.0274	0.59902	1	0.094442	0.30723	1.2562
+-1.7398	1	0.67041	0.82202	1	-0.30164	0.94827	-0.94259
+-0.66818	1	0.49087	1.2694	1	-0.18615	0.78217	-1.3239
+-0.2258	2	-1.4193	-1.44	1	-1.5421	-1.6216	-0.34851
+1.4939	2	0.12307	-0.97417	2	-1.9058	-1.6405	-2.6645
+0.59683	2	-0.27561	-1.5921	1	-0.012339	-1.033	0.22517
+0.32502	1	1.8115	0.59888	1	-0.78178	0.37072	-1.5597
+0.33627	2	-0.54037	-0.092937	1	-0.23801	-0.28432	0.25627
+-0.71947	2	-0.96292	-0.87226	2	1.0454	-1.1866	-1.1152
+0.7723	2	-0.74389	-0.31293	2	0.56738	-1.597	0.21919
+1.1117	1	0.22881	0.53378	1	0.28362	0.62928	-0.56731
+-0.37072	1	1.1896	1.2033	2	1.7889	1.9867	-1.1364
+1.9537	2	-1.2797	-1.1399	1	-0.45995	-1.6282	-0.33873
+-1.1043	1	1.0871	2.3039	2	-0.27611	0.615	0.27237
+-1.3202	1	0.86019	1.2914	2	0.27461	0.94779	-0.83546
+-0.46478	1	1.29	0.43419	1	0.6874	1.6104	-0.36581
+-1.1858	2	-1.2069	-0.56475	1	0.18024	-0.54017	0.23717
+0.32802	1	0.87458	1.8613	2	0.40544	1.1088	1.7576
+1.1735	2	-0.66747	-1.6202	1	0.53589	-0.9149	0.45212
+-1.16	1	1.0838	0.61868	2	0.72867	1.3378	0.2647
+1.462	2	0.19509	-1.4192	1	0.56635	-0.85302	0.33371
+1.0695	1	0.21919	1.322	2	1.3441	1.1727	0.76002
+-0.22703	1	1.1363	0.54703	1	-0.48891	1.2236	-0.91644
+1.3458	2	-0.6068	-1.7825	1	-0.68775	-0.89217	0.99689
+-0.091249	1	0.68469	0.60839	1	-0.6527	0.58896	-0.24017
+0.67203	1	0.72395	1.1051	1	-1.4197	0.29802	0.188
+0.34537	1	1.2845	1.4258	1	-0.6173	1.0233	-0.24233
+-1.0761	2	-1.2815	-0.94371	1	-1.4633	-0.69107	-0.8715
+-0.20711	1	1.0174	0.69566	1	-0.58432	0.15352	-0.49345
+0.59929	1	1.5069	1.8419	1	-1.4583	-0.031663	0.0055113
+-0.11492	1	1.2367	1.2191	1	-0.51421	1.1523	1.884
+1.2751	2	-0.52411	-0.64346	2	2.0614	-0.0023541	-0.77991
+0.90981	1	1.1284	1.2152	2	2.6756	1.2409	-0.0084945
+-1.9542	2	-1.221	-1.4163	2	1.2826	-0.010965	1.0953
+1.7193	1	0.30492	1.2836	2	0.61499	0.56464	0.15443
+-0.53199	1	0.23732	0.77552	1	-1.2032	-0.66655	0.09844
+0.036699	2	-1.0483	-1.779	1	0.3525	-0.60395	0.30022
+-0.64389	1	-0.082056	0.48348	1	-0.86546	-0.4081	-0.099303
+0.7892	2	0.063117	-0.73251	1	-0.64062	-0.4066	0.12435
+-0.92679	2	-1.4966	0.012855	1	0.79099	-0.55856	0.19256
+0.75147	1	0.0035339	0.026413	1	-0.50794	0.29651	-0.27764
+0.21172	2	-1.3492	-0.47335	1	0.23233	-0.70213	-1.8621
+-0.97409	2	-0.629	-0.4728	1	0.091744	-0.086481	-0.49515
+-1.0464	2	-1.6692	-0.8497	2	1.5077	0.095689	1.3063
+-0.078054	1	1.7703	0.87897	2	1.6091	1.3305	-0.65192
+1.6149	2	-0.75709	-0.63085	1	-0.77532	-2.2636	-0.59675
+-1.1678	1	0.0899	0.58095	2	-0.22151	0.26068	0.51619
+-0.098842	2	-0.30237	-0.04093	1	-1.2385	-0.37569	-1.8217
+-0.55001	2	-1.0301	-1.7087	2	2.6454	-1.328	0.34954
+1.0482	2	-0.26461	-1.3201	2	1.68	-0.0041651	-0.12113
+0.5008	2	-0.85959	-0.66514	1	-1.6141	0.29161	-0.95504
+0.309	1	1.0744	1.269	1	-0.96467	1.5905	-1.42
+-0.03887	1	1.0667	1.0095	1	-0.089407	0.99929	1.152
+-0.50172	2	-0.99479	-0.54327	2	-0.16208	-1.0551	0.47476
+-0.094959	1	2.17	1.7212	2	0.51568	0.53768	-1.2639
+-0.5209	2	-1.431	-0.70798	1	-0.4217	0.23091	0.57769
+0.6976	2	-1.2512	-0.50443	1	0.40922	-1.2722	-0.22881
+-0.15737	2	-1.3037	-1.2446	1	-0.25	-1.3128	-0.48267
+1.7004	2	-0.093222	0.18072	1	-0.77286	-1.1751	0.70356
+-0.34711	2	-0.40996	-0.38877	1	-0.74126	-0.076517	0.71538
+0.63301	2	-1.3066	-1.061	1	-0.020245	-0.47474	0.22151
+0.45593	1	0.98475	1.1245	1	-1.5284	0.87162	-1.1116
+-0.074398	2	0.086143	-0.71909	1	-0.72312	-0.58633	-0.11884
+0.5737	1	1.3999	0.41267	1	0.14453	0.30696	0.39177
+0.50652	2	-0.76797	-0.93352	1	-0.537	-0.41761	0.072615
+-1.6019	2	0.65979	-0.97526	1	0.28122	-0.88937	0.46709
+0.74414	1	1.6353	1.382	1	0.099487	1.2686	1.3095
+-1.3504	2	-1.1309	-0.53372	2	0.13853	-1.3604	1.3258
+-0.32328	2	-1.4115	-0.55521	1	-0.39333	-0.7941	1.0533
+-0.74323	1	1.7072	0.49329	1	-0.87786	0.48373	-1.3411
+0.8876	2	-1.0691	-0.47533	1	-0.65919	-1.2867	1.3563
+-0.26121	1	1.3665	1.3315	2	0.59812	1.5342	-0.51186
+-0.52176	1	1.5091	0.71759	1	-0.79433	0.67907	-0.77268
+-0.51351	2	-0.99866	-0.96005	2	-0.064251	-0.82275	1.8509
+-0.17328	2	0.54034	-1.7709	1	0.38529	-1.362	0.6719
+0.15516	1	1.1328	-0.19576	1	-1.135	1.0527	0.29172
+0.45546	1	0.45829	1.7196	2	0.62149	2.3385	-2.0495
+2.0143	1	1.7214	1.3935	1	-1.973	1.0241	-0.84073
+0.017525	2	-1.3151	-0.89644	1	-0.75598	-1.0529	0.10505
+-0.041089	2	-0.071698	-0.33496	1	-0.25915	-0.26742	0.55872
+-0.072325	1	0.14302	1.099	1	0.45095	0.51954	-1.5618
+0.9507	2	-0.99789	-1.1502	1	-0.63471	0.61259	0.50063
+-1.8153	2	-0.51697	-0.18793	1	-0.58518	-0.41489	-0.79261
+-0.37059	2	-0.18087	-0.77008	2	0.14794	-0.66655	0.62335
+-0.24334	2	0.033188	-0.22919	1	-1.8202	-0.18936	-0.69045
+-0.83923	2	-0.41353	-1.3264	2	1.8901	-1.3452	0.28566
+-1.5292	2	-0.28479	-0.49856	1	0.34714	-1.4144	-0.50451
+-1.1641	1	0.77391	1.0241	1	-0.77302	0.27655	-2.6875
+2.6624	1	1.7387	1.374	1	0.041422	2.3695	-0.062096
+2.3682	1	1.907	0.94637	2	0.8413	0.76571	-1.6393
+0.31396	2	-1.292	-0.78457	2	-0.31227	-0.84139	-0.22892
+-0.87392	2	0.53494	0.55115	1	-0.15179	-0.83441	1.0812
+-1.1022	2	-0.57856	-0.21265	2	1.4486	0.11044	-0.38736
+0.42993	2	-1.5502	-0.063309	2	2.2649	-0.59644	2.3365
+-1.5011	2	-2.2926	-0.96909	1	-0.40571	-1.1012	0.56007
+-1.567	1	0.014611	-0.069863	2	1.3161	0.89287	0.96852
+0.26418	1	0.46242	1.94	1	-1.3016	1.1926	-1.5223
+-0.77783	1	1.4946	0.92514	1	-1.1651	1.0425	-1.2685
+-0.17339	2	-0.86526	-0.090231	1	-0.09102	-1.3706	0.0049574
+0.11883	1	0.8622	0.94077	1	-0.76414	1.3308	1.415
+0.12005	2	-0.20542	-0.74536	1	-1.2579	-1.2279	-1.2709
+-0.79628	2	-0.022269	-0.16145	1	-0.47715	-0.37329	1.1972
+0.58969	1	1.0063	1.3356	2	0.79987	1.5464	0.32801
+0.11633	1	0.73396	1.1437	2	1.3183	1.0156	-1.9512
+-0.88008	2	0.39215	-0.88212	2	0.77879	-0.071244	0.92164
+-0.74781	2	-0.31657	-1.2371	1	-1.356	-0.76328	-0.96657
+-0.069788	2	0.63495	-0.70214	1	-0.76454	-2.2215	1.7055
+0.3897	2	-0.59859	-0.81633	1	-0.04446	0.84047	-0.75073
+2.202	1	0.77915	0.03712	2	1.8438	1.1743	0.40331
+0.22687	2	-0.40806	-1.0788	1	-0.19213	-0.78118	0.48301
+-0.66335	1	1.4808	1.1399	1	-0.033787	0.43484	-0.12095
+0.13303	2	-0.66658	-0.14357	1	-1.073	-0.49395	0.70655
+-1.5417	1	0.2473	1.2125	2	1.9083	1.2778	3.0844
+0.74601	1	-0.35212	0.88616	1	-0.87675	0.60499	-0.21133
+-0.80655	2	-1.1068	-1.3459	1	-0.26122	0.15508	-0.0066816
+-0.69135	1	1.0994	1.204	2	2.3161	1.0629	1.4256
+1.6905	2	-0.14242	-0.55749	2	0.359	0.41916	0.53215
+-0.77018	2	-1.5065	-0.53604	1	0.19357	0.059861	1.9152
+-2.2055	1	1.058	-0.29035	2	1.0301	0.11952	1.1588
+-0.70569	2	-0.73004	-1.6228	2	2.1348	-0.42942	0.97843
+1.3633	1	0.65794	0.98061	2	1.3078	0.64345	0.8317
+0.093858	2	-1.6142	-0.92049	1	-0.92394	-1.3444	-0.43212
+1.6603	2	0.037058	0.81538	1	-0.70654	-0.93759	-0.023641
+0.29687	1	0.84923	0.6669	2	0.66467	0.47209	-0.21266
+0.30837	2	-0.8147	-1.3296	1	-1.1736	-1.2252	-0.61256
+-1.7779	2	-1.1384	-1.0425	1	-0.69411	-0.39049	-0.48379
+-0.35135	2	-0.52672	-1.388	2	0.84612	-1.4625	0.071832
+0.18294	2	-0.96354	-0.6923	1	-0.91232	-0.9204	0.030227
+-0.34302	1	1.8167	0.77427	2	0.036232	0.81699	1.0643
+-1.0367	2	-0.55158	-0.84582	2	0.67713	-0.66779	-0.43102
+2.6147	2	0.14282	-0.33616	1	-0.83219	-0.17633	-0.13118
+-0.59086	2	-1.2139	-0.99552	2	1.9391	-1.1308	0.34126
+-0.90208	2	-0.28263	-0.58061	2	0.7467	-0.84617	-0.13398
+1.2668	2	-0.56449	-0.1964	1	0.79248	0.19601	0.41777
+0.75643	1	-0.011136	0.81301	1	0.34117	0.68247	-1.863
+-0.62022	1	0.86997	0.6729	1	-1.1203	0.17657	-1.4244
+-0.18946	2	-0.55133	-0.86512	1	-0.83578	-0.40257	-0.029909
+-1.5498	1	0.32287	1.184	1	-0.62378	0.80455	0.92806
+-0.53493	2	-0.9391	-0.84301	2	1.3501	-0.31379	-0.058019
+0.3655	2	-0.74384	-1.3595	1	1.3067	-0.5247	-1.7338
+0.82879	2	-1.5915	-1.0102	2	1.0708	-0.6468	0.92568
+0.57673	2	-1.4808	-1.0779	1	0.47651	-1.062	0.26133
+0.59244	2	-0.8026	-1.7146	1	-0.020034	-1.3898	-1.5705
+0.44996	1	0.50751	1.0983	2	2.2137	2.8355	0.34907
+-0.75132	2	-0.52338	-0.74591	1	-0.84637	-1.6929	-1.6584
+-0.1943	1	1.2265	0.4739	1	-0.78558	0.81272	-0.023241
+2.0866	2	-0.19274	0.066839	1	-0.30442	-0.70635	0.85947
+-1.3268	2	-1.2952	0.023312	2	1.4432	0.036383	0.8954
+-1.4174	2	-0.43139	-0.97617	2	1.9378	0.79311	-0.17648
+-0.30469	2	0.072833	-0.069195	2	1.2683	-0.62404	0.25533