[hg] galaxy 3611: Fixes to rgQC top table ordering and add offse...
details: http://www.bx.psu.edu/hg/galaxy/rev/fabf48e747ae changeset: 3611:fabf48e747ae user: fubar: ross Lazarus at gmail period com date: Mon Apr 05 14:14:09 2010 -0400 description: Fixes to rgQC top table ordering and add offset so can use rgManQQ to make plots Fixes to rgManQQ to handle unsorted data - now sorts before manhattan plot diffstat: test-data/rgtestouts/rgQC/FQNormtinywga_s_het_cum.pdf | 4 +- test-data/rgtestouts/rgQC/MarkerDetails_rgQCtest1.xls | 27 ++- test-data/rgtestouts/rgQC/ldp_tinywga.log | 4 +- test-data/rgtestouts/rgQC/rgQCtest1.html | 104 +++++-- test-data/rgtestouts/rgQC/tinywga.log | 4 +- test-data/rgtestouts/rgQC/tinywga_All_3x3.pdf | 0 test-data/rgtestouts/rgQC/tinywga_All_Paged-0.jpg | 0 test-data/rgtestouts/rgQC/tinywga_All_Paged-1.jpg | 0 test-data/rgtestouts/rgQC/tinywga_All_Paged-2.jpg | 0 test-data/rgtestouts/rgQC/tinywga_All_Paged-3.jpg | 0 test-data/rgtestouts/rgQC/tinywga_All_Paged-4.jpg | 0 test-data/rgtestouts/rgQC/tinywga_All_Paged.pdf | 0 test-data/rgtestouts/rgQC/tinywga_fracmiss.pdf | 4 +- test-data/rgtestouts/rgQC/tinywga_fracmiss_cum.pdf | 4 +- test-data/rgtestouts/rgQC/tinywga_s_het.pdf | 4 +- test-data/rgtestouts/rgQC/tinywga_s_het_cum.pdf | 4 +- tools/data_source/upload.py | 8 +- tools/rgenetics/rgManQQ.py | 9 +- tools/rgenetics/rgQC.py | 58 +--- tools/rgenetics/rgtest_one_tool.sh | 218 ++++++++++++++++++ 20 files changed, 361 insertions(+), 91 deletions(-) diffs (793 lines): diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/FQNormtinywga_s_het_cum.pdf --- a/test-data/rgtestouts/rgQC/FQNormtinywga_s_het_cum.pdf Sun Apr 04 19:41:07 2010 -0400 +++ b/test-data/rgtestouts/rgQC/FQNormtinywga_s_het_cum.pdf Mon Apr 05 14:14:09 2010 -0400 @@ -2,8 +2,8 @@ %âãÏÓ\r 1 0 obj << -/CreationDate (D:20100325210120) -/ModDate (D:20100325210120) +/CreationDate (D:20100405140521) +/ModDate (D:20100405140521) /Title (R Graphics Output) /Producer (R 2.10.1) /Creator (R) diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/MarkerDetails_rgQCtest1.xls --- a/test-data/rgtestouts/rgQC/MarkerDetails_rgQCtest1.xls Sun Apr 04 19:41:07 2010 -0400 +++ b/test-data/rgtestouts/rgQC/MarkerDetails_rgQCtest1.xls Mon Apr 05 14:14:09 2010 -0400 @@ -1,1 +1,26 @@ -snp chrom maf a1 a2 missfrac p_hwe_all logp_hwe_all p_hwe_unaff logp_hwe_unaff N_Mendel \ No newline at end of file +snp chromosome offset maf a1 a2 missfrac p_hwe_all logp_hwe_all p_hwe_unaff logp_hwe_unaff N_Mendel +rs2283802 22 21784722 0.2593 4 2 0 0.638 0.195179 0.638 0.195179 0 +rs2267000 22 21785366 0.4259 4 2 0 1 0 1 0 0 +rs16997606 22 21794754 0.1111 1 3 0 1 0 1 0 0 +rs4820537 22 21794810 0.4444 1 3 0 0.6985 0.155834 0.6985 0.155834 0 +rs3788347 22 21797804 0.463 3 1 0 1 0 1 0 0 +rs756632 22 21799918 0.09259 4 2 0 1 0 1 0 0 +rs4820539 22 21807970 0.2778 1 3 0 0.6298 0.200797 0.6298 0.200797 0 +rs2283804 22 21820335 0.3333 1 2 0 1 0 1 0 0 +rs2267006 22 21820990 0.3333 3 1 0 1 0 1 0 0 +rs4822363 22 21821000 0.07407 4 2 0 1 0 1 0 0 +rs5751592 22 21827674 0.1667 4 2 0 1 0 1 0 0 +rs5759608 22 21832708 0.4259 2 4 0 1 0 1 0 0 +rs5759612 22 21833170 0.4259 3 1 0 1 0 1 0 0 +rs2267009 22 21860168 0.2593 3 4 0 0.638 0.195179 0.638 0.195179 0 +rs2267010 22 21864366 0.03704 3 1 0 1 0 1 0 0 +rs5759636 22 21868698 0.07407 4 2 0.025 1 0 1 0 0 +rs2071436 22 21871488 0.2593 4 2 0 0.638 0.195179 0.638 0.195179 0 +rs2267013 22 21875879 0.1111 3 1 0 1 0 1 0 0 +rs6003566 22 21889806 0.09259 3 1 0 1 0 1 0 0 +rs2256725 22 21892891 0.1111 2 1 0 1 0 1 0 0 +rs12160770 22 21892925 0.01923 1 3 0.075 1 0 1 0 0 +rs5751611 22 21896019 0.4615 2 4 0.025 0.4275 0.369064 0.4275 0.369064 0 +rs762601 22 21898858 0.3333 1 3 0 0.6657 0.176721 0.6657 0.176721 0 +rs2156921 22 21899063 0.3333 3 1 0 0.6657 0.176721 0.6657 0.176721 0 +rs4822375 22 21905642 0.3333 1 3 0 0.6657 0.176721 0.6657 0.176721 0 \ No newline at end of file diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/ldp_tinywga.log --- a/test-data/rgtestouts/rgQC/ldp_tinywga.log Sun Apr 04 19:41:07 2010 -0400 +++ b/test-data/rgtestouts/rgQC/ldp_tinywga.log Mon Apr 05 14:14:09 2010 -0400 @@ -10,7 +10,7 @@ Skipping web check... [ --noweb ] Writing this text to log file [ ldp_tinywga.log ] -Analysis started: Thu Mar 25 21:01:19 2010 +Analysis started: Mon Apr 5 14:05:21 2010 Options in effect: --noweb @@ -44,5 +44,5 @@ Writing genotype bitfile to [ ldp_tinywga.bed ] Using (default) SNP-major mode -Analysis finished: Thu Mar 25 21:01:19 2010 +Analysis finished: Mon Apr 5 14:05:21 2010 diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/rgQCtest1.html --- a/test-data/rgtestouts/rgQC/rgQCtest1.html Sun Apr 04 19:41:07 2010 -0400 +++ b/test-data/rgtestouts/rgQC/rgQCtest1.html Mon Apr 05 14:14:09 2010 -0400 @@ -10,20 +10,34 @@ <body> <div class="document"> <h4> -<div>Output from Rgenetics QC report tool run at 25/03/2010 21:01:23<br> +<div>Output from Rgenetics QC report tool run at 05/04/2010 14:05:29<br> </h4> </div><div><h4>(Click any preview image to download a full sized PDF version)</h4><br><ol> <table cellpadding="5" border="0"> -<tr><td colspan="3"><a href="MarkerDetails_rgQCtest1.xls" type="application/vnd.ms-excel">Click here to download the Marker QC Detail report file</a> (87 B) tab delimited</td></tr> +<tr><td colspan="3"><a href="MarkerDetails_rgQCtest1.xls" type="application/vnd.ms-excel">Click here to download the Marker QC Detail report file</a> (1.4 KB) tab delimited</td></tr> <tr><td colspan="3"><a href="SubjectDetails_rgQCtest1.xls" type="application/vnd.ms-excel">Click here to download the Subject QC Detail report file</a> (1.4 KB) tab delimited</td></tr> <tr><td><a href="tinywga_All_Paged.pdf"><img src="tinywga_All_Paged-0.jpg" alt="All tinywga QC Plots joined into a single pdf" hspace="10" align="middle"> </a></td><td>All tinywga QC Plots joined into a single pdf</td><td> </td></tr> -<tr><td><a href="tinywga_All_3x3.pdf"><img src="tinywga_All_3x3.jpg" alt="All tinywga QC Plots 3 by 3 to a page" hspace="10" align="middle"> +<tr><td><a href="tinywga_All_3x3.pdf"><img src="tinywga_All_3x3-0.jpg" alt="All tinywga QC Plots 3 by 3 to a page" hspace="10" align="middle"> </a></td><td>All tinywga QC Plots 3 by 3 to a page</td><td> </td></tr> +<tr><td><a href="tinywga_logphweunaff.pdf"><img src="tinywga_logphweunaff.jpg" alt="Marker HWE" hspace="10" align="middle"> +</a></td><td>Marker HWE</td><td><a href="Ranked_Marker_HWE.xls">Worst data</a></td></tr> +<tr><td><a href="tinywga_logphweunaff_cum.pdf"><img src="tinywga_logphweunaff_cum.jpg" alt="Ranked Marker HWE" hspace="10" align="middle"> +</a></td><td>Ranked Marker HWE</td><td> </td></tr> +<tr><td><a href="QQtinywga_logphweunaff_cum.pdf"><img src="QQtinywga_logphweunaff_cum.jpg" alt="LogQQ plot Marker HWE" hspace="10" align="middle"> +</a></td><td>LogQQ plot Marker HWE</td><td> </td></tr> +<tr><td><a href="tinywga_missfrac.pdf"><img src="tinywga_missfrac.jpg" alt="Marker Missing Genotype" hspace="10" align="middle"> +</a></td><td>Marker Missing Genotype</td><td><a href="Ranked_Marker_Missing_Genotype.xls">Worst data</a></td></tr> +<tr><td><a href="tinywga_missfrac_cum.pdf"><img src="tinywga_missfrac_cum.jpg" alt="Ranked Marker Missing Genotype" hspace="10" align="middle"> +</a></td><td>Ranked Marker Missing Genotype</td><td> </td></tr> +<tr><td><a href="tinywga_maf.pdf"><img src="tinywga_maf.jpg" alt="Marker MAF" hspace="10" align="middle"> +</a></td><td>Marker MAF</td><td><a href="Ranked_Marker_MAF.xls">Worst data</a></td></tr> +<tr><td><a href="tinywga_maf_cum.pdf"><img src="tinywga_maf_cum.jpg" alt="Ranked Marker MAF" hspace="10" align="middle"> +</a></td><td>Ranked Marker MAF</td><td> </td></tr> <tr><td><a href="tinywga_fracmiss.pdf"><img src="tinywga_fracmiss.jpg" alt="Subject Missing Genotype" hspace="10" align="middle"> -</a></td><td>Subject Missing Genotype</td><td> </td></tr> +</a></td><td>Subject Missing Genotype</td><td><a href="Ranked_Subject_Missing_Genotype.xls">Worst data</a></td></tr> <tr><td><a href="tinywga_fracmiss_cum.pdf"><img src="tinywga_fracmiss_cum.jpg" alt="Ranked Subject Missing Genotype" hspace="10" align="middle"> -</a></td><td>Ranked Subject Missing Genotype</td><td><a href="Ranked_Subject_Missing_Genotype.xls">Worst data</a></td></tr> +</a></td><td>Ranked Subject Missing Genotype</td><td> </td></tr> <tr><td><a href="tinywga_s_het.pdf"><img src="tinywga_s_het.jpg" alt="Subject F Statistic" hspace="10" align="middle"> </a></td><td>Subject F Statistic</td><td> </td></tr> <tr><td><a href="tinywga_s_het_cum.pdf"><img src="tinywga_s_het_cum.jpg" alt="Ranked Subject F Statistic" hspace="10" align="middle"> @@ -35,7 +49,12 @@ <tr><td><a href="FQNormtinywga_s_het_cum.jpg">FQNormtinywga_s_het_cum.jpg</a> (30.2 KB)</td></tr> <tr><td><a href="FQNormtinywga_s_het_cum.pdf">FQNormtinywga_s_het_cum.pdf</a> (7.1 KB)</td></tr> -<tr><td><a href="MarkerDetails_rgQCtest1.xls">MarkerDetails_rgQCtest1.xls</a> (87 B)</td></tr> +<tr><td><a href="MarkerDetails_rgQCtest1.xls">MarkerDetails_rgQCtest1.xls</a> (1.4 KB)</td></tr> +<tr><td><a href="QQtinywga_logphweunaff_cum.jpg">QQtinywga_logphweunaff_cum.jpg</a> (33.0 KB)</td></tr> +<tr><td><a href="QQtinywga_logphweunaff_cum.pdf">QQtinywga_logphweunaff_cum.pdf</a> (6.6 KB)</td></tr> +<tr><td><a href="Ranked_Marker_HWE.xls">Ranked_Marker_HWE.xls</a> (763 B)</td></tr> +<tr><td><a href="Ranked_Marker_MAF.xls">Ranked_Marker_MAF.xls</a> (564 B)</td></tr> +<tr><td><a href="Ranked_Marker_Missing_Genotype.xls">Ranked_Marker_Missing_Genotype.xls</a> (659 B)</td></tr> <tr><td><a href="Ranked_Subject_Missing_Genotype.xls">Ranked_Subject_Missing_Genotype.xls</a> (804 B)</td></tr> <tr><td><a href="SubjectDetails_rgQCtest1.xls">SubjectDetails_rgQCtest1.xls</a> (1.4 KB)</td></tr> <tr><td><a href="ldp_tinywga.bed">ldp_tinywga.bed</a> (143 B)</td></tr> @@ -55,28 +74,47 @@ <tr><td><a href="tinywga.prune.in">tinywga.prune.in</a> (140 B)</td></tr> <tr><td><a href="tinywga.prune.out">tinywga.prune.out</a> (110 B)</td></tr> <tr><td><a href="tinywga.sexcheck">tinywga.sexcheck</a> (2.5 KB)</td></tr> -<tr><td><a href="tinywga_All_3x3.jpg">tinywga_All_3x3.jpg</a> (27.6 KB)</td></tr> -<tr><td><a href="tinywga_All_3x3.pdf">tinywga_All_3x3.pdf</a> (37.4 KB)</td></tr> -<tr><td><a href="tinywga_All_Paged-0.jpg">tinywga_All_Paged-0.jpg</a> (11.9 KB)</td></tr> -<tr><td><a href="tinywga_All_Paged-1.jpg">tinywga_All_Paged-1.jpg</a> (29.6 KB)</td></tr> -<tr><td><a href="tinywga_All_Paged-2.jpg">tinywga_All_Paged-2.jpg</a> (17.9 KB)</td></tr> -<tr><td><a href="tinywga_All_Paged-3.jpg">tinywga_All_Paged-3.jpg</a> (31.4 KB)</td></tr> -<tr><td><a href="tinywga_All_Paged-4.jpg">tinywga_All_Paged-4.jpg</a> (29.8 KB)</td></tr> -<tr><td><a href="tinywga_All_Paged.pdf">tinywga_All_Paged.pdf</a> (36.9 KB)</td></tr> +<tr><td><a href="tinywga_All_3x3-0.jpg">tinywga_All_3x3-0.jpg</a> (45.2 KB)</td></tr> +<tr><td><a href="tinywga_All_3x3-1.jpg">tinywga_All_3x3-1.jpg</a> (19.3 KB)</td></tr> +<tr><td><a href="tinywga_All_3x3.pdf">tinywga_All_3x3.pdf</a> (82.4 KB)</td></tr> +<tr><td><a href="tinywga_All_Paged-0.jpg">tinywga_All_Paged-0.jpg</a> (13.6 KB)</td></tr> +<tr><td><a href="tinywga_All_Paged-1.jpg">tinywga_All_Paged-1.jpg</a> (26.3 KB)</td></tr> +<tr><td><a href="tinywga_All_Paged-10.jpg">tinywga_All_Paged-10.jpg</a> (31.4 KB)</td></tr> +<tr><td><a href="tinywga_All_Paged-11.jpg">tinywga_All_Paged-11.jpg</a> (29.8 KB)</td></tr> +<tr><td><a href="tinywga_All_Paged-2.jpg">tinywga_All_Paged-2.jpg</a> (32.3 KB)</td></tr> +<tr><td><a href="tinywga_All_Paged-3.jpg">tinywga_All_Paged-3.jpg</a> (11.1 KB)</td></tr> +<tr><td><a href="tinywga_All_Paged-4.jpg">tinywga_All_Paged-4.jpg</a> (26.7 KB)</td></tr> +<tr><td><a href="tinywga_All_Paged-5.jpg">tinywga_All_Paged-5.jpg</a> (18.4 KB)</td></tr> +<tr><td><a href="tinywga_All_Paged-6.jpg">tinywga_All_Paged-6.jpg</a> (28.1 KB)</td></tr> +<tr><td><a href="tinywga_All_Paged-7.jpg">tinywga_All_Paged-7.jpg</a> (11.9 KB)</td></tr> +<tr><td><a href="tinywga_All_Paged-8.jpg">tinywga_All_Paged-8.jpg</a> (29.6 KB)</td></tr> +<tr><td><a href="tinywga_All_Paged-9.jpg">tinywga_All_Paged-9.jpg</a> (17.9 KB)</td></tr> +<tr><td><a href="tinywga_All_Paged.pdf">tinywga_All_Paged.pdf</a> (81.9 KB)</td></tr> <tr><td><a href="tinywga_fracmiss.jpg">tinywga_fracmiss.jpg</a> (12.0 KB)</td></tr> <tr><td><a href="tinywga_fracmiss.pdf">tinywga_fracmiss.pdf</a> (6.4 KB)</td></tr> <tr><td><a href="tinywga_fracmiss_cum.jpg">tinywga_fracmiss_cum.jpg</a> (30.0 KB)</td></tr> <tr><td><a href="tinywga_fracmiss_cum.pdf">tinywga_fracmiss_cum.pdf</a> (7.0 KB)</td></tr> +<tr><td><a href="tinywga_logphweunaff.jpg">tinywga_logphweunaff.jpg</a> (13.6 KB)</td></tr> +<tr><td><a href="tinywga_logphweunaff.pdf">tinywga_logphweunaff.pdf</a> (5.7 KB)</td></tr> +<tr><td><a href="tinywga_logphweunaff_cum.jpg">tinywga_logphweunaff_cum.jpg</a> (26.8 KB)</td></tr> +<tr><td><a href="tinywga_logphweunaff_cum.pdf">tinywga_logphweunaff_cum.pdf</a> (5.8 KB)</td></tr> +<tr><td><a href="tinywga_maf.jpg">tinywga_maf.jpg</a> (18.5 KB)</td></tr> +<tr><td><a href="tinywga_maf.pdf">tinywga_maf.pdf</a> (6.4 KB)</td></tr> +<tr><td><a href="tinywga_maf_cum.jpg">tinywga_maf_cum.jpg</a> (28.5 KB)</td></tr> +<tr><td><a href="tinywga_maf_cum.pdf">tinywga_maf_cum.pdf</a> (6.0 KB)</td></tr> +<tr><td><a href="tinywga_missfrac.jpg">tinywga_missfrac.jpg</a> (11.1 KB)</td></tr> +<tr><td><a href="tinywga_missfrac.pdf">tinywga_missfrac.pdf</a> (5.9 KB)</td></tr> +<tr><td><a href="tinywga_missfrac_cum.jpg">tinywga_missfrac_cum.jpg</a> (27.3 KB)</td></tr> +<tr><td><a href="tinywga_missfrac_cum.pdf">tinywga_missfrac_cum.pdf</a> (5.9 KB)</td></tr> <tr><td><a href="tinywga_s_het.jpg">tinywga_s_het.jpg</a> (18.0 KB)</td></tr> <tr><td><a href="tinywga_s_het.pdf">tinywga_s_het.pdf</a> (6.8 KB)</td></tr> <tr><td><a href="tinywga_s_het_cum.jpg">tinywga_s_het_cum.jpg</a> (31.9 KB)</td></tr> <tr><td><a href="tinywga_s_het_cum.pdf">tinywga_s_het_cum.pdf</a> (7.3 KB)</td></tr> -</table><h4>QC run log contents</h4><pre>## subject reports starting at 25/03/2010 21:01:19 +</table><h4>QC run log contents</h4><pre>## subject reports starting at 05/04/2010 14:05:21 ## imissfile /opt/galaxy/test-data/rgtestouts/rgQC/tinywga.imiss contained 40 ids -### writing /opt/galaxy/test-data/rgtestouts/rgQC/SubjectDetails_rgQCtest1.xls report with ['famId', 'iId', 'FracMiss', 'Mendel_errors', 'Ped_sex', 'SNP_sex', 'Status', 'XHomEst', 'F_Stat']## marker reports starting at 25/03/2010 21:01:19 -## error - no hwefile /opt/galaxy/test-data/rgtestouts/rgQC.hwe found -No /opt/galaxy/test-data/rgtestouts/rgQC.lmendel file - assuming not family data -## starting plotpage, newfpath=/opt/galaxy/test-data/rgtestouts/rgQC,m=[['snp', 'chrom', 'maf', 'a1', 'a2', 'missfrac', 'p_hwe_all', 'logp_hwe_all', 'p_hwe_unaff', 'logp_hwe_unaff', 'N_Mendel']],s=[['famId', 'iId', 'FracMiss', 'Mendel_errors', 'Ped_sex', 'SNP_sex', 'Status', 'XHomEst', 'F_Stat'], ['101', '1', '0.04', '0', '2', '0', 'PROBLEM', 'nan', '-0.03355']]/n## Rgenetics: http://rgenetics.org Galaxy Tools rgQC.py Plink runner +### writing /opt/galaxy/test-data/rgtestouts/rgQC/SubjectDetails_rgQCtest1.xls report with ['famId', 'iId', 'FracMiss', 'Mendel_errors', 'Ped_sex', 'SNP_sex', 'Status', 'XHomEst', 'F_Stat']## marker reports starting at 05/04/2010 14:05:21 +hwe header testpos=2,ppos=8,snppos=1 +## starting plotpage, newfpath=/opt/galaxy/test-data/rgtestouts/rgQC,m=[['snp', 'chromosome', 'offset', 'maf', 'a1', 'a2', 'missfrac', 'p_hwe_all', 'logp_hwe_all', 'p_hwe_unaff', 'logp_hwe_unaff', 'N_Mendel'], ['rs2283802', '22', '21784722', '0.2593', '4', '2', '0', '0.638', '0.195179', '0.638', '0.195179', '0']],s=[['famId', 'iId', 'FracMiss', 'Mendel_errors', 'Ped_sex', 'SNP_sex', 'Status', 'XHomEst', 'F_Stat'], ['101', '1', '0.04', '0', '2', '0', 'PROBLEM', 'nan', '-0.03355']]/n## Rgenetics: http://rgenetics.org Galaxy Tools rgQC.py Plink runner @----------------------------------------------------------@ | PLINK! | v1.06 | 24/Apr/2009 | @@ -89,7 +127,7 @@ Skipping web check... [ --noweb ] Writing this text to log file [ tinywga.log ] -Analysis started: Thu Mar 25 21:01:19 2010 +Analysis started: Mon Apr 5 14:05:21 2010 Options in effect: --noweb @@ -115,7 +153,7 @@ 27 founders and 13 non-founders found Writing allele frequencies (founders-only) to [ tinywga.frq ] -Analysis finished: Thu Mar 25 21:01:19 2010 +Analysis finished: Mon Apr 5 14:05:21 2010 @----------------------------------------------------------@ @@ -129,7 +167,7 @@ Skipping web check... [ --noweb ] Writing this text to log file [ tinywga.log ] -Analysis started: Thu Mar 25 21:01:19 2010 +Analysis started: Mon Apr 5 14:05:21 2010 Options in effect: --noweb @@ -168,7 +206,7 @@ After filtering, 10 cases, 30 controls and 0 missing After filtering, 21 males, 19 females, and 0 of unspecified sex -Analysis finished: Thu Mar 25 21:01:19 2010 +Analysis finished: Mon Apr 5 14:05:21 2010 @----------------------------------------------------------@ @@ -182,7 +220,7 @@ Skipping web check... [ --noweb ] Writing this text to log file [ tinywga.log ] -Analysis started: Thu Mar 25 21:01:19 2010 +Analysis started: Mon Apr 5 14:05:21 2010 Options in effect: --noweb @@ -224,7 +262,7 @@ Writing per-locus Mendel summary to [ tinywga.lmendel ] 0 Mendel errors detected in total -Analysis finished: Thu Mar 25 21:01:19 2010 +Analysis finished: Mon Apr 5 14:05:21 2010 @----------------------------------------------------------@ @@ -238,7 +276,7 @@ Skipping web check... [ --noweb ] Writing this text to log file [ tinywga.log ] -Analysis started: Thu Mar 25 21:01:19 2010 +Analysis started: Mon Apr 5 14:05:21 2010 Options in effect: --noweb @@ -271,7 +309,7 @@ Converting data to Individual-major format Writing X-chromosome sex check results to [ tinywga.sexcheck ] -Analysis finished: Thu Mar 25 21:01:19 2010 +Analysis finished: Mon Apr 5 14:05:21 2010 ## Rgenetics: http://rgenetics.org Galaxy Tools rgQC.py Plink pruneLD runner @@ -299,7 +337,7 @@ Writing this text to log file [ tinywga.log ] -Analysis started: Thu Mar 25 21:01:19 2010 +Analysis started: Mon Apr 5 14:05:21 2010 @@ -369,7 +407,7 @@ -Analysis finished: Thu Mar 25 21:01:19 2010 +Analysis finished: Mon Apr 5 14:05:21 2010 @@ -399,7 +437,7 @@ Writing this text to log file [ ldp_tinywga.log ] -Analysis started: Thu Mar 25 21:01:19 2010 +Analysis started: Mon Apr 5 14:05:21 2010 @@ -467,7 +505,7 @@ -Analysis finished: Thu Mar 25 21:01:19 2010 +Analysis finished: Mon Apr 5 14:05:21 2010 @@ -497,7 +535,7 @@ Writing this text to log file [ tinywga.log ] -Analysis started: Thu Mar 25 21:01:19 2010 +Analysis started: Mon Apr 5 14:05:21 2010 @@ -565,7 +603,7 @@ -Analysis finished: Thu Mar 25 21:01:19 2010 +Analysis finished: Mon Apr 5 14:05:21 2010 diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/tinywga.log --- a/test-data/rgtestouts/rgQC/tinywga.log Sun Apr 04 19:41:07 2010 -0400 +++ b/test-data/rgtestouts/rgQC/tinywga.log Mon Apr 05 14:14:09 2010 -0400 @@ -10,7 +10,7 @@ Skipping web check... [ --noweb ] Writing this text to log file [ tinywga.log ] -Analysis started: Thu Mar 25 21:01:19 2010 +Analysis started: Mon Apr 5 14:05:21 2010 Options in effect: --noweb @@ -44,5 +44,5 @@ Converting data to Individual-major format Writing individual heterozygosity information to [ tinywga.het ] -Analysis finished: Thu Mar 25 21:01:19 2010 +Analysis finished: Mon Apr 5 14:05:21 2010 diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/tinywga_All_3x3.pdf Binary file test-data/rgtestouts/rgQC/tinywga_All_3x3.pdf has changed diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/tinywga_All_Paged-0.jpg Binary file test-data/rgtestouts/rgQC/tinywga_All_Paged-0.jpg has changed diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/tinywga_All_Paged-1.jpg Binary file test-data/rgtestouts/rgQC/tinywga_All_Paged-1.jpg has changed diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/tinywga_All_Paged-2.jpg Binary file test-data/rgtestouts/rgQC/tinywga_All_Paged-2.jpg has changed diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/tinywga_All_Paged-3.jpg Binary file test-data/rgtestouts/rgQC/tinywga_All_Paged-3.jpg has changed diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/tinywga_All_Paged-4.jpg Binary file test-data/rgtestouts/rgQC/tinywga_All_Paged-4.jpg has changed diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/tinywga_All_Paged.pdf Binary file test-data/rgtestouts/rgQC/tinywga_All_Paged.pdf has changed diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/tinywga_fracmiss.pdf --- a/test-data/rgtestouts/rgQC/tinywga_fracmiss.pdf Sun Apr 04 19:41:07 2010 -0400 +++ b/test-data/rgtestouts/rgQC/tinywga_fracmiss.pdf Mon Apr 05 14:14:09 2010 -0400 @@ -2,8 +2,8 @@ %âãÏÓ\r 1 0 obj << -/CreationDate (D:20100325210119) -/ModDate (D:20100325210119) +/CreationDate (D:20100405140521) +/ModDate (D:20100405140521) /Title (R Graphics Output) /Producer (R 2.10.1) /Creator (R) diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/tinywga_fracmiss_cum.pdf --- a/test-data/rgtestouts/rgQC/tinywga_fracmiss_cum.pdf Sun Apr 04 19:41:07 2010 -0400 +++ b/test-data/rgtestouts/rgQC/tinywga_fracmiss_cum.pdf Mon Apr 05 14:14:09 2010 -0400 @@ -2,8 +2,8 @@ %âãÏÓ\r 1 0 obj << -/CreationDate (D:20100325210120) -/ModDate (D:20100325210120) +/CreationDate (D:20100405140521) +/ModDate (D:20100405140521) /Title (R Graphics Output) /Producer (R 2.10.1) /Creator (R) diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/tinywga_s_het.pdf --- a/test-data/rgtestouts/rgQC/tinywga_s_het.pdf Sun Apr 04 19:41:07 2010 -0400 +++ b/test-data/rgtestouts/rgQC/tinywga_s_het.pdf Mon Apr 05 14:14:09 2010 -0400 @@ -2,8 +2,8 @@ %âãÏÓ\r 1 0 obj << -/CreationDate (D:20100325210120) -/ModDate (D:20100325210120) +/CreationDate (D:20100405140521) +/ModDate (D:20100405140521) /Title (R Graphics Output) /Producer (R 2.10.1) /Creator (R) diff -r f00f2d0699fa -r fabf48e747ae test-data/rgtestouts/rgQC/tinywga_s_het_cum.pdf --- a/test-data/rgtestouts/rgQC/tinywga_s_het_cum.pdf Sun Apr 04 19:41:07 2010 -0400 +++ b/test-data/rgtestouts/rgQC/tinywga_s_het_cum.pdf Mon Apr 05 14:14:09 2010 -0400 @@ -2,8 +2,8 @@ %âãÏÓ\r 1 0 obj << -/CreationDate (D:20100325210120) -/ModDate (D:20100325210120) +/CreationDate (D:20100405140521) +/ModDate (D:20100405140521) /Title (R Graphics Output) /Producer (R 2.10.1) /Creator (R) diff -r f00f2d0699fa -r fabf48e747ae tools/data_source/upload.py --- a/tools/data_source/upload.py Sun Apr 04 19:41:07 2010 -0400 +++ b/tools/data_source/upload.py Mon Apr 05 14:14:09 2010 -0400 @@ -178,7 +178,7 @@ # See if we have a gzipped file, which, if it passes our restrictions, we'll uncompress is_gzipped, is_valid = check_gzip( dataset.path ) if is_gzipped and not is_valid: - file_err( 'The uploaded file contains inappropriate content', dataset, json_file ) + file_err( 'The gzipped uploaded file contains inappropriate content', dataset, json_file ) return elif is_gzipped and is_valid: # We need to uncompress the temp_name file, but BAM files must remain compressed in the BGZF format @@ -206,7 +206,7 @@ # See if we have a zip archive is_zipped, is_valid, test_ext = check_zip( dataset.path ) if is_zipped and not is_valid: - file_err( 'The uploaded file contains inappropriate content', dataset, json_file ) + file_err( 'The zipped uploaded file contains inappropriate content', dataset, json_file ) return elif is_zipped and is_valid: # Currently, we force specific tools to handle this case. We also require the user @@ -231,7 +231,7 @@ if len( parts ) > 1: ext = parts[1].strip().lower() if ext not in unsniffable_binary_formats: - file_err( 'The uploaded file contains inappropriate content', dataset, json_file ) + file_err( 'The uploaded binary file contains inappropriate content', dataset, json_file ) return elif ext in unsniffable_binary_formats and dataset.file_type != ext: err_msg = "You must manually set the 'File Format' to '%s' when uploading %s files." % ( ext.capitalize(), ext ) @@ -240,7 +240,7 @@ if not data_type: # We must have a text file if check_html( dataset.path ): - file_err( 'The uploaded file contains inappropriate content', dataset, json_file ) + file_err( 'The uploaded file contains inappropriate HTML content', dataset, json_file ) return if data_type != 'binary' and data_type != 'zip': # don't convert newlines on data we're only going to symlink diff -r f00f2d0699fa -r fabf48e747ae tools/rgenetics/rgManQQ.py --- a/tools/rgenetics/rgManQQ.py Sun Apr 04 19:41:07 2010 -0400 +++ b/tools/rgenetics/rgManQQ.py Mon Apr 05 14:14:09 2010 -0400 @@ -124,7 +124,14 @@ rcode2 = """rgqqMan = function(infile="%s",chromcolumn=%d, offsetcolumn=%d, pvalscolumns=%s, title="%s",grey=%d) { -d = read.table(infile,head=T,sep='\t') +rawd = read.table(infile,head=T,sep='\t') +dn = names(rawd) +cc = dn[chromcolumn] +oc = dn[offsetcolumn] +nams = c(cc,oc) +d = rawd[do.call(order,rawd[nams]),] +# mmmf - suggested by http://onertipaday.blogspot.com/2007/08/sortingordering-dataframe-according.... +# in case not yet ordered print(paste('###',length(d[,1]),'values read from',infile,'read - now running plots',sep=' ')) for (pvalscolumn in pvalscolumns) { if (pvalscolumn > 0) diff -r f00f2d0699fa -r fabf48e747ae tools/rgenetics/rgQC.py --- a/tools/rgenetics/rgQC.py Sun Apr 04 19:41:07 2010 -0400 +++ b/tools/rgenetics/rgQC.py Mon Apr 05 14:14:09 2010 -0400 @@ -994,7 +994,7 @@ mapdict = {} if maplist <> None: rslist = [x[1] for x in maplist] - offset = [x[3] for x in maplist] + offset = [(x[0],x[3]) for x in maplist] mapdict = dict(zip(rslist,offset)) hwefile = '%s.hwe' % froot lmissfile = '%s.lmiss' % froot @@ -1009,8 +1009,9 @@ lmenddict = {} Tops = {} Tnames = ['Ranked Marker MAF', 'Ranked Marker Missing Genotype', 'Ranked Marker HWE', 'Ranked Marker Mendel'] - Tsorts = [2,5,9,10] + Tsorts = [3,6,10,11] Treverse = [False,True,True,True] # so first values are worse(r) + #res.append([rs,chrom,offset,maf,a1,a2,f_missing,hwe_all[0],hwe_all[1],hwe_unaff[0],hwe_unaff[1],nmend]) #rhead = ['snp','chrom','maf','a1','a2','missfrac','p_hwe_all','logp_hwe_all','p_hwe_unaff','logp_hwe_unaff','N_Mendel'] # -------------------hwe-------------------------- # hwe has SNP TEST GENO O(HET) E(HET) P_HWD @@ -1057,12 +1058,13 @@ hwedict[rs] = {} markerlist.append(rs) chromlist.append(chrom) # one place to find it? + lpvals = 0 if ps.upper() <> 'NA' and ps.upper() <> 'NAN': # worth keeping lpvals = '0' if ps <> '1': try: pval = float(ps) - lpvals = '%f6' % -math.log10(pval) + lpvals = '%f' % -math.log10(pval) except: pass hwedict[rs][test] = (ps,lpvals) @@ -1147,49 +1149,33 @@ rhead = ['snp','chromosome','offset','maf','a1','a2','missfrac','p_hwe_all','logp_hwe_all','p_hwe_unaff','logp_hwe_unaff','N_Mendel'] res = [] fres = [] - for i in xrange(len(markerlist)): # for each snp in found order - chrom = chromlist[i] - rs = markerlist[i] + for rs in markerlist: # for each snp in found order f_missing = lmissdict.get(rs,'NA') maf,a1,a2 = freqdict.get(rs,('NA','NA','NA')) hwe_all = hwedict[rs].get('ALL',('NA','NA')) # hope this doesn't change... hwe_unaff = hwedict[rs].get('UNAFF',('NA','NA')) nmend = lmenddict.get(rs,'NA') - offset=mapdict.get(rs,'0') + (chrom,offset)=mapdict.get(rs,('?','0')) res.append([rs,chrom,offset,maf,a1,a2,f_missing,hwe_all[0],hwe_all[1],hwe_unaff[0],hwe_unaff[1],nmend]) + ntokeep = max(10,len(res)/keepfrac) + + def msortk(item=None): + """ + deal with non numeric sorting + """ try: - fmaf = '%f' % float(maf) + return float(item) except: - fmaf = 'NA' - try: - inmend = '%d' % int(nmend) - except: - inmend = 'NA' - try: - fhweall = '%f' % float(hwe_all[1]) # the log value - except: - fhweall = 'NA' - try: - fhweunaff = '%f' % float(hwe_unaff[1]) # the log value - except: - fhweunaff = 'NA' - try: - ff_missing = '%f' % float(f_missing) # the log value - except: - ff_missing = 'NA' - #fres.append([rs,chrom,fmaf,a1,a2,ff_missing,hwe_all[0],hwe_all[1],hwe_unaff[0],fhwe,inmend]) - arow = [rs,chrom,offset,fmaf,a1,a2,ff_missing,hwe_all[0],fhweall,hwe_unaff[0],fhweunaff,inmend] - fres.append(arow) - ntokeep = max(10,len(res)/keepfrac) + return item + for i,col in enumerate(Tsorts): - fres.sort(key=operator.itemgetter(col)) + res.sort(key=msortk(lambda x:x[col])) if Treverse[i]: - fres.reverse() + res.reverse() repname = Tnames[i] - Tops[repname] = fres[0:ntokeep] - #Tops[repname] = [map(str,x) for x in Tops[repname]] + Tops[repname] = res[0:ntokeep] Tops[repname].insert(0,rhead) - res.sort() + res.sort(key=lambda x: '%s_%10d' % (x[1].ljust(4,'0'),int(x[2]))) # in chrom offset order res.insert(0,rhead) f = open(outfile,'w') f.write('\n'.join(['\t'.join(x) for x in res])) @@ -1315,10 +1301,6 @@ dat = subjectTops.get(ttitle,None) if not dat: dat = markerTops.get(ttitle,None) - if not dat: - print '## iterating plotpage - cannot find title=%s/ttitle=%s' % (title,ttitle) - else: - print '## iterating plotpage - found title=%s/ttitle=%s' % (title,ttitle) imghref = '%s.jpg' % os.path.splitext(url)[0] # removes .pdf thumbnail = os.path.join(newfpath,imghref) if not os.path.exists(thumbnail): # for multipage pdfs, mogrify makes multiple jpgs - fugly hack diff -r f00f2d0699fa -r fabf48e747ae tools/rgenetics/rgtest_one_tool.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/rgenetics/rgtest_one_tool.sh Mon Apr 05 14:14:09 2010 -0400 @@ -0,0 +1,218 @@ +#!/bin/sh +# script to generate all functional test outputs for each rgenetics tool +# could be run at installation to ensure all dependencies are in place? +case $# in 0) echo "USAGE: ${0##*/} TooltoTest"; exit 1;; + [2-10]*) echo "Too many arguments - name of tool only"; exit 2;; + *) +esac +GALAXYROOT=`pwd` +echo "using $GALAXYROOT" +# change this as needed for your local install +INPATH="${GALAXYROOT}/test-data" +BINPATH="${GALAXYROOT}/tool-data/rg/bin" +TOOLPATH="${GALAXYROOT}/tools/rgenetics" +OROOT="${GALAXYROOT}/test-data/rgtestouts" +NORMALOROOT="${GALAXYROOT}/test-data" +case "$1" in +'rgManQQ') + +TOOL="rgManQQ" +NPRE=${TOOL}test1 +OUTPATH="$OROOT/$TOOL" +rm -rf $OUTPATH/* +CL="python $TOOLPATH/$TOOL.py "$INPATH/smallwgaP.xls" $NPRE ${OUTPATH}/${NPRE}.html $OUTPATH 1 2 5,7 0" +# rgManQQ.py '$input_file' "$name" '$out_html' '$out_html.files_path' '$chrom_col' '$offset_col' +# '$pval_col' +#python /opt/galaxy/tools/rgenetics/rgManQQ.py /opt/galaxy/test-data/smallwgaP.xls rgManQQtest1 +#/opt/galaxy/test-data/rgtestouts/rgManQQ/rgManQQtest1.html /opt/galaxy/test-data/rgtestouts/rgManQQ 1 2 5,7 +echo "Testing $TOOL using $CL" +python $TOOLPATH/$TOOL.py "$INPATH/smallwgaP.xls" $NPRE ${OUTPATH}/${NPRE}.html $OUTPATH 1 2 5,7 0 +;; + +'rgfakePhe') +TOOL="rgfakePhe" +NPRE=${TOOL}test1 +OUTPATH="$OROOT/$TOOL" +rm -rf $OUTPATH/* +PSSCRIPT="$OUTPATH/script_file" +echo "{'pN':'normtest','pT':'rnorm','pP':\"{'Mean':'100', 'SD':'10'}\"}" > $PSSCRIPT +echo "{'pN':'cattest','pT':'cat','pP':\"{'values':'red,green,blue'}\"}" >> $PSSCRIPT +echo "{'pN':'uniftest','pT':'$f.series.phetype','pP':\"{'low':'1','hi':'100'}\"}" >> $PSSCRIPT +echo "{'pN':'gammatest','pT':'rgamma','pP':\"{'Alpha':'1', 'Beta':'0.1'}\"}" >> $PSSCRIPT +echo "{'pN':'poissontest','pT':'poisson','pP':\"{'lamb':'1.0',}\"}" >> $PSSCRIPT +echo "{'pN':'exptest','pT':'exponential','pP':\"{'Mean':'100.0',}\"}" >> $PSSCRIPT +echo "{'pN':'weibtest','pT':'weibull','pP':\"{'Alpha':'1.0', 'Beta':'0.1'}\"}" >> $PSSCRIPT +echo "now doing $TOOL" +python $TOOLPATH/$TOOL.py ${INPATH}/tinywga $NPRE $NPRE.pphe $OUTPATH $PSSCRIPT +# <command interpreter="python">rgfakePhe.py '$infile1.extra_files_path/$infile1.metadata.base_name' +# "$title1" '$ppheout' '$ppheout.files_path' '$script_file' +# +;; +'rgQC') + +TOOL="rgQC" +NPRE=${TOOL}test1 +echo "now doing $TOOL" +OUTPATH="$OROOT/$TOOL" +rm -rf $OUTPATH/* +python $TOOLPATH/$TOOL.py -i "$INPATH/tinywga" -o $NPRE -s ${OUTPATH}/${NPRE}.html -p $OUTPATH +# rgQC.py -i '$input_file.extra_files_path/$input_file.metadata.base_name' -o "$out_prefix" +# -s '$html_file' -p '$html_file.files_path' +# +;; + +'rgGRR') +TOOL="rgGRR" +NPRE=${TOOL}test1 +echo "now doing $TOOL" +OUTPATH="$OROOT/$TOOL" +rm -rf $OUTPATH/* +python $TOOLPATH/$TOOL.py "$INPATH/tinywga" "tinywga" $OUTPATH/${NPRE}.html $OUTPATH "$NPRE" '100' '6' +# rgGRR.py $i.extra_files_path/$i.metadata.base_name "$i.metadata.base_name" +#'$out_file1' '$out_file1.files_path' "$title" '$n' '$Z' +;; +'rgLDIndep') +TOOL="rgLDIndep" +NPRE=${TOOL}test1 +OUTPATH="$OROOT/$TOOL" +rm -rf $OUTPATH/* +python $TOOLPATH/$TOOL.py "$INPATH" "tinywga" "$NPRE" 1 1 0 0 1 1 $OUTPATH/${NPRE}.pbed $OUTPATH 10000 5000 0.1 +#rgLDIndep.py '$input_file.extra_files_path' '$input_file.metadata.base_name' '$title' '$mind' +# '$geno' '$hwe' '$maf' '$mef' '$mei' '$out_file1' +#'$out_file1.files_path' '$window' '$step' '$r2' +;; + +'rgPedSub') +TOOL="rgPedSub" +NPRE=${TOOL}test1 +OUTPATH="$OROOT/$TOOL" +rm -rf $OUTPATH/* +PSSCRIPT="$OUTPATH/pedsub.script" +echo "title~~~~$NPRE" > $PSSCRIPT +echo "output1~~~~${OUTPATH}/${NPRE}.lped" >> $PSSCRIPT +echo "outformat~~~~lped" >> $PSSCRIPT +echo "basename~~~~tinywga" >> $PSSCRIPT +echo "inped~~~~$INPATH/tinywga" >> $PSSCRIPT +echo "outdir~~~~$OUTPATH" >> $PSSCRIPT +echo "region~~~~" >> $PSSCRIPT +echo "relfilter~~~~all" >> $PSSCRIPT +echo "rslist~~~~rs2283802Xrs2267000Xrs16997606Xrs4820537Xrs3788347Xrs756632Xrs4820539Xrs2283804Xrs2267006Xrs4822363X" >> $PSSCRIPT +echo "now doing $TOOL" +python $TOOLPATH/$TOOL.py $PSSCRIPT +rm -rf $PSSCRIPT +;; + +'rgfakePhe') + +TOOL="rgfakePhe" +NPRE=${TOOL}test1 +OUTPATH="$OROOT/$TOOL" +rm -rf $OUTPATH/* +PSSCRIPT="$OUTPATH/script_file" +echo "{'pN':'normtest','pT':'rnorm','pP':\"{'Mean':'100', 'SD':'10'}\"}" > $PSSCRIPT +echo "{'pN':'cattest','pT':'cat','pP':\"{'values':'red,green,blue'}\"}" >> $PSSCRIPT +echo "{'pN':'uniftest','pT':'$f.series.phetype','pP':\"{'low':'1','hi':'100'}\"}" >> $PSSCRIPT +echo "{'pN':'gammatest','pT':'rgamma','pP':\"{'Alpha':'1', 'Beta':'0.1'}\"}" >> $PSSCRIPT +echo "{'pN':'poissontest','pT':'poisson','pP':\"{'lamb':'1.0',}\"}" >> $PSSCRIPT +echo "{'pN':'exptest','pT':'exponential','pP':\"{'Mean':'100.0',}\"}" >> $PSSCRIPT +echo "{'pN':'weibtest','pT':'weibull','pP':\"{'Alpha':'1.0', 'Beta':'0.1'}\"}" >> $PSSCRIPT +echo "now doing $TOOL" +python $TOOLPATH/$TOOL.py $PSSCRIPT +;; + +'rgClean') +TOOL="rgClean" +NPRE=${TOOL}test1 +OUTPATH="$OROOT/$TOOL" +rm -rf $OUTPATH/* +python $TOOLPATH/$TOOL.py $INPATH "tinywga" "$NPRE" 1 1 0 0 1 1 $OUTPATH/${NPRE}.pbed $OUTPATH 0 0 0 0 +# rgClean.py '$input_file.extra_files_path' '$input_file.metadata.base_name' '$title' '$mind' +# '$geno' '$hwe' '$maf' '$mef' '$mei' '$out_file1' '$out_file1.files_path' +# '${GALAXY_DATA_INDEX_DIR}/rg/bin/plink' '$relfilter' '$afffilter' '$sexfilter' '$fixaff' +# +;; + +'rgEigPCA') + +TOOL="rgEigPCA" +NPRE=${TOOL}test1 +OUTPATH="$OROOT/$TOOL" +rm -rf $OUTPATH/* +python $TOOLPATH/$TOOL.py "$INPATH/tinywga" "$NPRE" ${OUTPATH}/${NPRE}.html $OUTPATH 4 2 2 2 $OUTPATH/rgEigPCAtest1.txt +# rgEigPCA.py "$i.extra_files_path/$i.metadata.base_name" "$title" "$out_file1" +# "$out_file1.files_path" "$k" "$m" "$t" "$s" "$pca" +# +;; + +'rgfakePed') +TOOL="rgfakePed" +NPRE=${TOOL}test1 +OUTPATH="$OROOT/$TOOL" +rm -rf $OUTPATH/* +echo "now doing $TOOL" +python $TOOLPATH/$TOOL.py --title "$NPRE" -o $OUTPATH/${NPRE}.lped -p $OUTPATH -c "20" -n "40" -s "10" -w "0" -v "0" -l "pbed" -d "T" -m "0" -M "0" +#rgfakePed.py --title '$title1' +# -o '$out_file1' -p '$out_file1.extra_files_path' -c '$ncases' -n '$ntotal' +# -s '$nsnp' -w '$lowmaf' -v '$missingValue' -l '$outFormat' +# -d '$mafdist' -m '$missingRate' -M '$mendelRate' +;; + +'rgHaploView') + +TOOL="rgHaploView" +NPRE=${TOOL}test1 +OUTPATH="$OROOT/$TOOL" +rm -rf $OUTPATH/* +python $TOOLPATH/$TOOL.py "" "rs2283802Xrs2267000Xrs16997606Xrs4820537Xrs3788347Xrs756632Xrs4820539Xrs2283804Xrs2267006Xrs4822363X" \ +"$NPRE" $OUTPATH/${NPRE}.html "$INPATH" "tinywga" 0.0 200000 "RSQ" "lo" "2048" "$OUTPATH" "noinfo" "0.8" \ +"YRI" $BINPATH/haploview.jar +# rgHaploView.py "$ucsc_region" "$rslist" "$title" "$output1" +# "$lhistIn.extra_files_path" "$lhistIn.metadata.base_name" +# "$minmaf" "$maxdist" "$ldtype" "$hires" "$memsize" "$output1.files_path" +# "$infoTrack" "$tagr2" "$hmpanel" ${GALAXY_DATA_INDEX_DIR}/rg/bin/haploview.jar +# note these statistical tools do NOT generate composite outputs +;; + +'rgGLM') +TOOL="rgGLM" +NPRE=${TOOL}test1 +OUTPATH=$NORMALOROOT +python $TOOLPATH/$TOOL.py "$INPATH/tinywga" $INPATH/tinywga "$NPRE" "c1" "" $OUTPATH/${NPRE}_GLM.xls \ +$OUTPATH/${NPRE}_GLM_log.txt "tinywga" "" "" "" 1 1 0 0 $OUTPATH/${NPRE}_GLM_topTable.gff +## rgGLM.py '$i.extra_files_path/$i.metadata.base_name' '$phef.extra_files_path/$phef.metadata.base_name' +## "$title1" '$predvar' '$covar' '$out_file1' '$logf' '$dbkey' '$i.metadata.base_name' +## '$inter' '$cond' '$gender' '$mind' '$geno' '$maf' '$logistic' '$gffout' +;; + +'rgTDT') +TOOL="rgTDT" +NPRE=${TOOL}test1 +OUTPATH=$NORMALOROOT +python $TOOLPATH/$TOOL.py -i "$INPATH/tinywga" -o "$NPRE" -r $OUTPATH/${NPRE}_TDT.xls \ +-l $OUTPATH/${NPRE}_TDT_log.txt -g $OUTPATH/${NPRE}_TDT_topTable.gff +## rgTDT.py -i '$infile.extra_files_path/$infile.metadata.base_name' -o '$title' +## -r '$out_file1' -l '$logf' -x '${GALAXY_DATA_INDEX_DIR}/rg/bin/plink' +## -g '$gffout' +;; + +'rgCaCo') +TOOL="rgCaCo" +NPRE=${TOOL}test1 +OUTPATH=$NORMALOROOT +echo "now doing $TOOL" +python $TOOLPATH/rgCaCo.py $INPATH/tinywga "$NPRE" $OUTPATH/${NPRE}_CaCo.xls $OUTPATH/${NPRE}_CaCo_log.txt $OUTPATH $OUTPATH/${NPRE}_CaCo_topTable.gff +# echo tp=$TOOLPATH t=$TOOL op=$OUTPATH b=$BINPATH +# rgCaCo.py '$i.extra_files_path/$i.metadata.base_name' "$name" '$out_file1' '$logf' '$logf.files_path' '$gffout' +;; + +'rgQQ') +TOOL="rgQQ" +echo "now doing $TOOL" +NPRE=${TOOL}test1 +OUTPATH=$NORMALOROOT +CL="python $TOOLPATH/$TOOL.py "$INPATH/tinywga.pphe" "$NPRE" 1 3 $OUTPATH/$NPRE.pdf 8 10 "false" 1 $OUTPATH" +echo "running $TOOL using $CL" +python $TOOLPATH/$TOOL.py "$INPATH/tinywga.pphe" "$NPRE" 1 3 $OUTPATH/$NPRE.pdf 8 10 "false" 1 $OUTPATH +# rgQQ.py "$input1" "$name" $sample "$cols" $allqq $height $width $log $allqq.id $__new_file_path__ +;; +esac
participants (1)
-
Greg Von Kuster