# HG changeset patch # User iuc # Date 1605735226 0 # Node ID 2824d77cd8f874499e7f18b10915f9679b2b20a8 # Parent 4ac4e7083b7ef971a275b0391ca8e4604eb7f21f "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/pygenometracks commit d1b394c8e588a78d1b94e3e57922f7ce684ac835" diff -r 4ac4e7083b7e -r 2824d77cd8f8 macros.xml --- a/macros.xml Tue Jul 21 03:32:48 2020 -0400 +++ b/macros.xml Wed Nov 18 21:33:46 2020 +0000 @@ -1,6 +1,6 @@ \${GALAXY_SLOTS:-4} - 3.5 + 3.6 pygenometracks @@ -11,7 +11,8 @@ - 10.5281/zenodo.1133705 + 10.1038/s41467-017-02525-w + 10.1093/bioinformatics/btaa692 diff -r 4ac4e7083b7e -r 2824d77cd8f8 pyGenomeTracks.xml --- a/pyGenomeTracks.xml Tue Jul 21 03:32:48 2020 -0400 +++ b/pyGenomeTracks.xml Wed Nov 18 21:33:46 2020 +0000 @@ -21,11 +21,17 @@ sed '/^$/d' '$tracks_config' && @BINARY@ --tracks '$tracks_config' - #if $region and $region is not None: - --region '$region' + --region '$region' + #if $global_args.title != '': + --title '$global_args.title' #end if - #if $global_args.title is not None: - --title '$global_args.title' + #if $global_args.plotWidth != '': + --plotWidth $global_args.plotWidth + #else: + --width $global_args.width + #end if + #if $global_args.height != '': + --height '$global_args.height' #end if --fontSize $global_args.fontsize --dpi $global_args.dpi @@ -557,11 +563,17 @@ #end if alpha = $track.track_file_style_conditional.alpha line_width = $track.track_file_style_conditional.line_width - #if $track.track_file_style_conditional.x_center != "": -x_center = $track.track_file_style_conditional.x_center + #if $track.track_file_style_conditional.scalebar_pos.x_center != "": +x_center = $track.track_file_style_conditional.scalebar_pos.x_center + #end if + #if $track.track_file_style_conditional.scalebar_pos.size != "": +size = $track.track_file_style_conditional.scalebar_pos.size #end if - #if $track.track_file_style_conditional.size != "": -size = $track.track_file_style_conditional.size + #if $track.track_file_style_conditional.scalebar_pos.scalebar_start_position != "": +scalebar_start_position = $track.track_file_style_conditional.scalebar_pos.scalebar_start_position + #end if + #if $track.track_file_style_conditional.scalebar_pos.scalebar_end_position != "": +scalebar_end_position = $track.track_file_style_conditional.scalebar_pos.scalebar_end_position #end if where = $track.track_file_style_conditional.sb_where #if $track.track_file_style_conditional.fontsize != "": @@ -580,12 +592,19 @@ + help="The format is chr:start-end, for example chr10:10-500"> + '^[a-zA-Z0-9_]:\d+-\d+$' +
+ + + @@ -964,10 +983,14 @@ - - +
+ + + + +
@@ -1174,7 +1197,7 @@ - + @@ -1238,7 +1261,7 @@ - + @@ -1469,7 +1492,7 @@ - + @@ -1507,7 +1530,7 @@ - + @@ -1545,7 +1568,7 @@ - + @@ -1619,7 +1642,7 @@ - + @@ -1724,7 +1747,7 @@ - + @@ -1766,7 +1789,7 @@ - + @@ -1825,7 +1848,7 @@ - + @@ -1875,7 +1898,7 @@ - + @@ -1932,7 +1955,7 @@ - + @@ -1982,7 +2005,7 @@ - + @@ -2035,7 +2058,7 @@ - + @@ -2065,15 +2088,17 @@ - - +
+ + +
- +
@@ -2132,7 +2157,7 @@ - + @@ -2173,7 +2198,7 @@ - + @@ -2296,7 +2321,7 @@ - + @@ -2374,7 +2399,7 @@ - + @@ -2505,7 +2530,7 @@ - + @@ -2555,6 +2580,7 @@ + @@ -2597,6 +2623,7 @@ + @@ -2607,7 +2634,86 @@ - + + + + + +
+ + + +
+ + + + + + + + + + + + +
+ +
+ +
+
+ + + + +
+ + +
+ +
+
+ + + + +
+ + +
+ +
+
+ + + + +
+ + +
+ +
+
+ + + + +
+ + +
+ +
+
+ + + + + + + +
diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/bigwig_multiple.png Binary file test-data/bigwig_multiple.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/master_TADs_BW_plot.png Binary file test-data/master_TADs_BW_plot.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/master_TADs_plot.png Binary file test-data/master_TADs_plot.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/master_scale_bar_startend.png Binary file test-data/master_scale_bar_startend.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test21.ini --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/test21.ini Wed Nov 18 21:33:46 2020 +0000 @@ -0,0 +1,46 @@ + +[sb1] +file_type = scalebar +title = scalebar where = right +where = right + +[spacer] + +[sb2] +file_type = scalebar +title = scalebar scalebar_start_position = 3200000 +scalebar_start_position = 3200000 + +[spacer] + +[sb3] +file_type = scalebar +title = scalebar scalebar_start_position = 3200000 scalebar_end_position = 3250000 +scalebar_end_position = 3250000 +scalebar_start_position = 3200000 + +[spacer] + +[sb4] +file_type = scalebar +title = scalebar scalebar_start_position = 3200000 x_center = 3250000 +x_center = 3250000 +scalebar_start_position = 3200000 + +[spacer] + +[sb5] +file_type = scalebar +title = scalebar scalebar_start_position = 3200000 size = 50000 +size = 50000 +scalebar_start_position = 3200000 + +[spacer] + +[sb6] +file_type = scalebar +title = scalebar scalebar_end_position = 3200000 size = 50000 +size = 50000 +scalebar_end_position = 3200000 + +[x-axis] diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_TADs_bdgm.png Binary file test-data/test_TADs_bdgm.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_alpha.png Binary file test-data/test_alpha.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_alpha_dec.png Binary file test-data/test_alpha_dec.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_arcs_use_middle.png Binary file test-data/test_arcs_use_middle.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_arrowhead_zoom.png Binary file test-data/test_arrowhead_zoom.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_gtf_bed4.png Binary file test-data/test_gtf_bed4.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_gtf_flybase_param.png Binary file test-data/test_gtf_flybase_param.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_link.png Binary file test-data/test_link.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_link2.png Binary file test-data/test_link2.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_log.png Binary file test-data/test_log.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_log_grid.png Binary file test-data/test_log_grid.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_middle_triangle.png Binary file test-data/test_middle_triangle.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_narrowPeak.png Binary file test-data/test_narrowPeak.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_operation.png Binary file test-data/test_operation.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_scale_bar.png Binary file test-data/test_scale_bar.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_tssarrow.png Binary file test-data/test_tssarrow.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/test_ucsc_param.png Binary file test-data/test_ucsc_param.png has changed diff -r 4ac4e7083b7e -r 2824d77cd8f8 test-data/testpyGT.sh --- a/test-data/testpyGT.sh Tue Jul 21 03:32:48 2020 -0400 +++ b/test-data/testpyGT.sh Wed Nov 18 21:33:46 2020 +0000 @@ -1,23 +1,24 @@ . <(planemo conda_env pyGenomeTracks.xml) -# pgt --tracks test-data/test1.ini --region chrX:3000000-3500000 -o test-data/master_TADs_plot.png -# pgt --tracks test-data/test2.ini --region chrX:3000000-3500000 -o test-data/bigwig_multiple.png -# pgt --tracks test-data/test3.ini --region chrX:3000000-3500000 -o test-data/master_TADs_BW_plot.png -# pgt --tracks test-data/test4.ini --region X:2700000-3100000 -o test-data/test_alpha.png -# pgt --tracks test-data/test5.ini --region X:3000000-3300000 -o test-data/test_gtf_bed4.png -# pgt --tracks test-data/test6.ini --region X:2760000-2802000 -o test-data/test_narrowPeak.png -# pgt --tracks test-data/test7.ini --region chrX:3300000-3500000 -o test-data/test_gtf_flybase_param.png -# pgt --tracks test-data/test8.ini --region chrX:3300000-3500000 -o test-data/test_ucsc_param.png -# pgt --tracks test-data/test9.ini --region X:3133000-3138000 -o test-data/test_arrowhead_zoom.png -# pgt --tracks test-data/test10.ini --region X:3340000-3380000 -o test-data/test_middle_triangle.png -# pgt --tracks test-data/test11.ini --region chrX:3250000-3400000 -o test-data/test_TADs_bdgm.png -# pgt --tracks test-data/test12.ini --region chrX:3000000-3300000 -o test-data/test_link.png -# pgt --tracks test-data/test13.ini --region chrX:3000000-3300000 -o test-data/test_link2.png -# pgt --tracks test-data/test14.ini --region chrX:3000000-3300000 --title "Scale bar" --trackLabelFraction 0.5 --trackLabelHAlign center -o test-data/test_scale_bar.png -# pgt --tracks test-data/test15.ini --region chrX:3300000-3500000 -o test-data/test_tssarrow.png -# pgt --tracks test-data/test4.ini --region chrX:2700000-3100000 --decreasingXAxis -o test-data/test_alpha_dec.png -# pgt --tracks test-data/test17.ini --region chr2:73,800,000-75,744,000 -o test-data/test_log.png -# pgt --tracks test-data/test18.ini --region chrX:2700000-3100000 -o test-data/test_operation.png -# pgt --tracks test-data/test19.ini --region chr2:73,800,000-75,744,000 -o test-data/test_log_grid.png -pgt --tracks test-data/test20.ini --region chrX:3000000-3300000 -o test-data/test_arcs_use_middle.png +pgt --tracks test-data/test1.ini --region chrX:3000000-3500000 --fontSize 12 -o test-data/master_TADs_plot.png +pgt --tracks test-data/test2.ini --region chrX:3000000-3500000 --fontSize 12 -o test-data/bigwig_multiple.png +pgt --tracks test-data/test3.ini --region chrX:3000000-3500000 --fontSize 12 -o test-data/master_TADs_BW_plot.png +pgt --tracks test-data/test4.ini --region X:2700000-3100000 --fontSize 12 -o test-data/test_alpha.png +pgt --tracks test-data/test5.ini --region X:3000000-3300000 --fontSize 12 -o test-data/test_gtf_bed4.png +pgt --tracks test-data/test6.ini --region X:2760000-2802000 --fontSize 12 -o test-data/test_narrowPeak.png +pgt --tracks test-data/test7.ini --region chrX:3300000-3500000 --fontSize 12 -o test-data/test_gtf_flybase_param.png +pgt --tracks test-data/test8.ini --region chrX:3300000-3500000 --fontSize 12 -o test-data/test_ucsc_param.png +pgt --tracks test-data/test9.ini --region X:3133000-3138000 --fontSize 12 -o test-data/test_arrowhead_zoom.png +pgt --tracks test-data/test10.ini --region X:3340000-3380000 --fontSize 12 -o test-data/test_middle_triangle.png +pgt --tracks test-data/test11.ini --region chrX:3250000-3400000 --fontSize 12 -o test-data/test_TADs_bdgm.png +pgt --tracks test-data/test12.ini --region chrX:3000000-3300000 --fontSize 12 -o test-data/test_link.png +pgt --tracks test-data/test13.ini --region chrX:3000000-3300000 --fontSize 12 -o test-data/test_link2.png +pgt --tracks test-data/test14.ini --region chrX:3000000-3300000 --fontSize 12 --title "Scale bar" --trackLabelFraction 0.5 --trackLabelHAlign center -o test-data/test_scale_bar.png +pgt --tracks test-data/test15.ini --region chrX:3300000-3500000 --fontSize 12 -o test-data/test_tssarrow.png +pgt --tracks test-data/test4.ini --region chrX:2700000-3100000 --fontSize 12 --decreasingXAxis -o test-data/test_alpha_dec.png +pgt --tracks test-data/test17.ini --region chr2:73,800,000-75,744,000 --fontSize 12 -o test-data/test_log.png +pgt --tracks test-data/test18.ini --region chrX:2700000-3100000 --fontSize 12 -o test-data/test_operation.png +pgt --tracks test-data/test19.ini --region chr2:73,800,000-75,744,000 --fontSize 12 -o test-data/test_log_grid.png +pgt --tracks test-data/test20.ini --region chrX:3000000-3300000 --fontSize 12 -o test-data/test_arcs_use_middle.png +pgt --tracks test-data/test21.ini --region X:3000000-3600000 --fontSize 12 --trackLabelFraction 0.3 --plotWidth 12 --dpi 20 -o test-data/master_scale_bar_startend.png conda_env_deactivate diff -r 4ac4e7083b7e -r 2824d77cd8f8 test.bed --- a/test.bed Tue Jul 21 03:32:48 2020 -0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -X 3000000 3500000