-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add differential feature analysis LMM (#55)
- Loading branch information
1 parent
a3536fd
commit b83dcf5
Showing
9 changed files
with
163 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
"""Screenshots for quick guide R-lme4""" | ||
import pathlib | ||
import sys | ||
|
||
from PyQt5 import QtCore | ||
from PyQt5.QtWidgets import QApplication | ||
from shapeout2.gui.main import ShapeOut2 | ||
from shapeout2.gui import compute | ||
|
||
test_data = pathlib.Path(__file__).parent / ".." / ".." / "tests" / "data" | ||
|
||
|
||
app = QApplication(sys.argv) | ||
|
||
QtCore.QLocale.setDefault(QtCore.QLocale(QtCore.QLocale.C)) | ||
|
||
mw = ShapeOut2() | ||
mw.settings.setValue("check for updates", 0) | ||
mw.settings.setValue("advanced/check pyqtgraph version", 0) | ||
|
||
# build up a session | ||
mw.on_action_open(test_data / "version_2_5_0_dcor_lme4_diff.so2") | ||
|
||
# create dialog manually | ||
dlg = compute.ComputeSignificance(mw, pipeline=mw.pipeline) | ||
|
||
# set the variables | ||
# set the variables | ||
# treatment rep 1 | ||
dlg.datasets[0].comboBox_group.setCurrentIndex(1) | ||
# treatment rep 2 | ||
dlg.datasets[1].comboBox_group.setCurrentIndex(1) | ||
dlg.datasets[1].spinBox_repeat.setValue(2) | ||
# res treatment rep 1 | ||
dlg.datasets[2].comboBox_group.setCurrentIndex(1) | ||
# res treatment rep 2 | ||
dlg.datasets[3].comboBox_group.setCurrentIndex(1) | ||
dlg.datasets[3].spinBox_repeat.setValue(2) | ||
# control rep 1 | ||
pass | ||
# control rep 2 | ||
dlg.datasets[5].spinBox_repeat.setValue(2) | ||
# control rep 3 | ||
dlg.datasets[6].spinBox_repeat.setValue(3) | ||
# res control rep 1 | ||
pass | ||
# res control rep 2 | ||
dlg.datasets[8].spinBox_repeat.setValue(2) | ||
# res control rep 3 | ||
dlg.datasets[9].spinBox_repeat.setValue(3) | ||
|
||
# set the feature | ||
feat_id = dlg.comboBox_feat.findData("deform") | ||
dlg.comboBox_feat.setCurrentIndex(feat_id) | ||
|
||
dlg.show() | ||
QApplication.processEvents() | ||
dlg.grab().save("_qg_lme4_diff_init.png") | ||
|
||
dlgr = dlg.on_lme4(ret_dlg=True) | ||
dlgr.show() | ||
QApplication.processEvents() | ||
dlgr.grab().save("_qg_lme4_diff_results.png") | ||
|
||
mw.close() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters