From 0dd087fb28066071316cb29f297d4a5bb25b0458 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20M=C3=BCller?= Date: Mon, 5 Aug 2019 17:01:28 +0200 Subject: [PATCH] docs: add citation request for Herbig2018 --- docs/sec_interface.rst | 2 ++ shapeout/gui/controls_analyze.py | 14 ++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/docs/sec_interface.rst b/docs/sec_interface.rst index 7b3be08..0f7662e 100644 --- a/docs/sec_interface.rst +++ b/docs/sec_interface.rst @@ -336,6 +336,8 @@ Regression analysis: Perform a regression analysis according to (general) linear mixed effects models. For more information, please see :ref:`sec_qg_mixed_effects` as well as the references :cite:`Herbig2017` and :cite:`Herbig2018`. + If you are using this feature in a scientific publication, please + consider citing :cite:`Herbig2018`. Plotting tabs diff --git a/shapeout/gui/controls_analyze.py b/shapeout/gui/controls_analyze.py index 7e93bae..82ff233 100644 --- a/shapeout/gui/controls_analyze.py +++ b/shapeout/gui/controls_analyze.py @@ -231,7 +231,21 @@ def OnApply(self, e=None): # write to temporary file and display with webbrowser outf = tempfile.mktemp(prefix="regression_analysis_{}_".format(axname), suffix=".txt") + # add citation request + citreq = [ + "# If you are using these results in a scientific publication,", + "# please consider citing the following manuscript:", + "#", + "# Herbig M, Mietke A, Müller P, Otto O (2018)", + "# Statistics for real-time deformability cytometry: Clustering,", + "# dimensionality reduction, and significance testing.", + "# Biomicrofluidics 12:042214. doi: 10.1063/1.5027197", + "#", + "", + ] + with io.open(outf, "w") as fd: + fd.writelines(citreq) fd.writelines(result["Full Summary"].replace("\n", "\r\n")) webbrowser.open(fd.name)