# HG changeset patch # User gregor.m # Date 1606408847 0 # Node ID a4c6fcf2c456c26fc62b132aade42c73612dbef8 # Parent 4d7f30a7e2f6637596f3b24f38586e10aedfaf86 "planemo upload commit 0584e8878deaf91614c6bb3c0122975300132c25" diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 OutputReport.html --- a/OutputReport.html Tue Nov 24 13:06:26 2020 +0000 +++ b/OutputReport.html Thu Nov 26 16:40:47 2020 +0000 @@ -1,5 +1,6 @@ + SpyBOAT Output Report @@ -83,139 +84,162 @@
-

Frame Nr. 2

+

Frame Nr. 20

-

Frame Nr. 18

+

Frame Nr. 29

+
+ +
+

Frame Nr. 38

+ +
-

Frame Nr. 34

+

Frame Nr. 47

-

Frame Nr. 50

+

Frame Nr. 56

-

Frame Nr. 66

+

Frame Nr. 65

-

Frame Nr. 82

+

Frame Nr. 74

diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 SpyBOAT.xml --- a/SpyBOAT.xml Tue Nov 24 13:06:26 2020 +0000 +++ b/SpyBOAT.xml Thu Nov 26 16:40:47 2020 +0000 @@ -1,6 +1,11 @@ - + +wavelet transforms image stacks + + 0.1.1 + + - spyboat + spyboat python $__tool_directory__/spyboat_cli.py --version $log - ]]> + ]]> + - + + + + + - - - - - + + + + + save_preprocessed['selection'] == 'Yes' - - + + - + @@ -220,5 +233,16 @@ advantage is that signal with strong amplitude trends will have more meaningful Wavelet powers after normalization. - ]]> + ]]> + + + @article{monke2020optimal, + title={Optimal time frequency analysis for biological data-pyBOAT}, + author={M{\"o}nke, Gregor and Sorgenfrei, Frieda A and Schmal, Christoph and Granada, Adri{\'a}n E}, + journal={bioRxiv}, + year={2020}, + publisher={Cold Spring Harbor Laboratory} +} + + diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 __pycache__/output_report.cpython-38.pyc Binary file __pycache__/output_report.cpython-38.pyc has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame0.png Binary file amplitude_frame0.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame16.png Binary file amplitude_frame16.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame18.png Binary file amplitude_frame18.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame2.png Binary file amplitude_frame2.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame20.png Binary file amplitude_frame20.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame32.png Binary file amplitude_frame32.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame34.png Binary file amplitude_frame34.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame40.png Binary file amplitude_frame40.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame48.png Binary file amplitude_frame48.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame50.png Binary file amplitude_frame50.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame60.png Binary file amplitude_frame60.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame64.png Binary file amplitude_frame64.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame66.png Binary file amplitude_frame66.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame80.png Binary file amplitude_frame80.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame82.png Binary file amplitude_frame82.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_frame96.png Binary file amplitude_frame96.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 amplitude_twosines_out.tif Binary file amplitude_twosines_out.tif has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame0.png Binary file input_frame0.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame16.png Binary file input_frame16.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame18.png Binary file input_frame18.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame2.png Binary file input_frame2.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame20.png Binary file input_frame20.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame32.png Binary file input_frame32.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame34.png Binary file input_frame34.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame40.png Binary file input_frame40.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame48.png Binary file input_frame48.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame50.png Binary file input_frame50.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame60.png Binary file input_frame60.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame64.png Binary file input_frame64.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame66.png Binary file input_frame66.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame80.png Binary file input_frame80.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame82.png Binary file input_frame82.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 input_frame96.png Binary file input_frame96.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 notes.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/notes.md Thu Nov 26 16:40:47 2020 +0000 @@ -0,0 +1,27 @@ +## Notes for setting up the SpyBOAT Galaxy tool + +### Toolshed(s) + +Register at: + +- https://testtoolshed.g2.bx.psu.edu/ +- https://toolshed.g2.bx.psu.edu/ + + +### commands + +First put toolshed account details into `.planemo.yml` + +- planemo lint [tool.xml] +- planemo shed_init --name spyboat +- planemo shed_create --shed_target testtoolshed +- planemo shed_update --shed_target toolshed + + +### Hosting repo + +- https://github.com/galaxyproject/tools-iuc + +#### Guidelines + +- https://galaxy-iuc-standards.readthedocs.io/en/latest/best_practices/tool_xml.html \ No newline at end of file diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 output_report.py --- a/output_report.py Tue Nov 24 13:06:26 2020 +0000 +++ b/output_report.py Thu Nov 26 16:40:47 2020 +0000 @@ -48,7 +48,7 @@ ppl.close(fig) spyplot.period_snapshot(results['period'][frame], - Wkwargs, + Wkwargs['Tmin'],Wkwargs['Tmax'], time_unit = 'a.u.') fig = ppl.gcf() @@ -130,6 +130,7 @@ html_string =f''' + SpyBOAT Output Report diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_distr.png Binary file period_distr.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame0.png Binary file period_frame0.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame16.png Binary file period_frame16.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame18.png Binary file period_frame18.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame2.png Binary file period_frame2.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame20.png Binary file period_frame20.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame32.png Binary file period_frame32.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame34.png Binary file period_frame34.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame40.png Binary file period_frame40.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame48.png Binary file period_frame48.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame50.png Binary file period_frame50.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame60.png Binary file period_frame60.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame64.png Binary file period_frame64.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame66.png Binary file period_frame66.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame80.png Binary file period_frame80.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame82.png Binary file period_frame82.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_frame96.png Binary file period_frame96.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 period_twosines_out.tif Binary file period_twosines_out.tif has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_distr.png Binary file phase_distr.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame0.png Binary file phase_frame0.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame16.png Binary file phase_frame16.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame18.png Binary file phase_frame18.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame2.png Binary file phase_frame2.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame20.png Binary file phase_frame20.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame32.png Binary file phase_frame32.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame34.png Binary file phase_frame34.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame40.png Binary file phase_frame40.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame48.png Binary file phase_frame48.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame50.png Binary file phase_frame50.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame60.png Binary file phase_frame60.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame64.png Binary file phase_frame64.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame66.png Binary file phase_frame66.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame80.png Binary file phase_frame80.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame82.png Binary file phase_frame82.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_frame96.png Binary file phase_frame96.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 phase_twosines_out.tif Binary file phase_twosines_out.tif has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 power_distr.png Binary file power_distr.png has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 power_twosines_out.tif Binary file power_twosines_out.tif has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 preproc_two_sines.tif Binary file preproc_two_sines.tif has changed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 run_tests.sh --- a/run_tests.sh Tue Nov 24 13:06:26 2020 +0000 +++ b/run_tests.sh Thu Nov 26 16:40:47 2020 +0000 @@ -4,9 +4,8 @@ INPUT_PATH='./test-data/test-movie.tif' SCRIPT_PATH='.' -python3 $SCRIPT_PATH/spyboat_cli.py --input_path $INPUT_PATH --phase_out phase_twosines_out.tif --period_out period_twosines_out.tif --power_out power_twosines_out.tif --amplitude_out amplitude_twosines_out.tif --dt 1 --Tmin 2 --Tmax 30 --nT 200 --ncpu 6 --masking dynamic --preprocessed_out preproc_two_sines.tif --gauss_sigma 3 --rescale 80 --Tcutoff 40 --masking static --mask_frame 10 --mask_thresh 8 +python3 $SCRIPT_PATH/spyboat_cli.py --input_path $INPUT_PATH --phase_out phase_test-movie.tif --period_out period_test-movie.tif --power_out power_test-movie.tif --amplitude_out amplitude_test-movie.tif --dt 1 --Tmin 20 --Tmax 30 --nT 200 --ncpu 6 --masking dynamic --preprocessed_out preproc_two_sines.tif --gauss_sigma 2 --rescale 80 --Tcutoff 40 --masking static --mask_frame 10 --mask_thresh 300 printf "\n" # printf "\nError examples:\n" -# python3 $SCRIPT_PATH/cl_wrapper.py --input_path $INPUT_PATH --phase_out phase_twosines_out.tif --period_out period_twosines_out.tif --power_out power_twosines_out.tif --amplitude_out amplitude_twosines_out.tif --dt 2. --Tmin 20 --Tmax 30 --nT 200 --ncpu 6 --save_input True --masking fixed diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 spyboat_cli.py --- a/spyboat_cli.py Tue Nov 24 13:06:26 2020 +0000 +++ b/spyboat_cli.py Thu Nov 26 16:40:47 2020 +0000 @@ -12,7 +12,7 @@ import output_report logging.basicConfig(level=logging.INFO, stream=sys.stdout, force=True) -logger = logging.getLogger('wrapper') +logger = logging.getLogger('spyboat-cli') # ----------command line parameters --------------- @@ -79,9 +79,10 @@ movie = spyboat.open_tif(arguments.input_path) except FileNotFoundError: logger.critical(f"Couldn't open {arguments.input_path}, check movie storage directory!") - sys.exit(1) - +# problems get logged in 'open_tif' +if movie is None: + sys.exit(1) # -------- Do (optional) spatial downsampling --------------------------- scale_factor = arguments.rescale @@ -162,8 +163,8 @@ logger.info(f'Creating report directory {arguments.report_img_path}') os.mkdir(arguments.report_img_path) - # make 6 times 4 snapshots each - Nsnap = 6 + # 4 snapshots each + Nsnap = 7 NFrames = movie.shape[0] # show only frames at least one Tmin # away from the edge (-effects) diff -r 4d7f30a7e2f6 -r a4c6fcf2c456 test-data/test-movie.tif Binary file test-data/test-movie.tif has changed