1 / 29

GUI Development with R-wxPython and BoaConstructor

GUI Development with R-wxPython and BoaConstructor. James Wettenhall Division of Genetics and Bioinformatics Walter and Eliza Hall Institute of Medical Research. WEHI Bioinformatics. Terry Speed Head. Melanie Bahlo Statistical Genetics. Gordon Smyth Microarrays. James Wettenhall

Download Presentation

GUI Development with R-wxPython and BoaConstructor

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. GUI Development with R-wxPython and BoaConstructor James Wettenhall Division of Genetics and Bioinformatics Walter and Eliza Hall Institute of Medical Research

  2. WEHI Bioinformatics Terry Speed Head Melanie Bahlo Statistical Genetics Gordon Smyth Microarrays James Wettenhall Software Engineer

  3. limma, limmaGUI and affylmGUI • limma : linear models for microarrays • by Gordon Smyth • Also contains many useful functions specifically for cDNA microarrays • limmaGUI : A Graphical User Interface for cDNA analysis with limma. • affylmGUI :A Graphical User Interface for Affymetrix analysis with limma.

  4. wxWidgets (formerly wxWindows) • A free C++ library for cross-platform GUI development. • There are bindings for Perl and Python. • You can create native applications for different operating systems from the same source code. • There are actually several libraries, one uses the GTK API internally, another the Windows API etc.

  5. wx* Google Hits

  6. wxPython Screenshots

  7. wxPython Screenshots

  8. wxPython Screenshots

  9. wxPython Screenshots

  10. wxPython Screenshots

  11. BoaConstructor

  12. BoaConstructor

  13. BoaConstructor

  14. BoaConstructor

  15. R-wxPython > library(wxPython) > wxMessageBox(“Hello, world!”)

  16. R-wxPython > library(wxPython) > wxMessageBox(“Hello, world!”, style = wxFlags(“wxOK|wxICON_INFORMATION”))

  17. R-wxPython

  18. A Check Box in R-wxPython • dlg <- wxDlg(title="A CheckBox", size=wxSize(200,160)) • dlg <- wxAdd(dlg,cb=wxCheckBox(label="Use wxPython",pos=wxPoint(40,50))) • dlg <- wxBind(dlg,"cb", function(checked) cbVal<<-checked, event="EVT_CHECKBOX", eventMethod="Checked") • dlg <- wxShow(dlg) • cbVal [1] 1

  19. A Radio Box in R-wxPython • dlg <- wxDlg(title="A RadioBox", size=wxSize(170,150)) • dlg <- wxAdd(dlg, rb=wxRadioBox(label="Choose a fruit", choices=wxList("apple","orange"), pos=wxPoint(32,20))) • dlg <- wxBind(dlg, "rb", function(eventString) fruit<<-eventString, "EVT_RADIOBOX", "GetString") • dlg <- wxShow(dlg)

  20. A Text Control in R-wxPython • frm <- wxFrm("Text Editor") • frm <- wxAdd(frm, txt=wxTextCtrl()) • frm <- wxShow(frm)

  21. More R-wxPython An Entry Box A Frame

  22. R-wxPython Built-in Dialogs

  23. An R-wxPython Data-Frame Editor > ?wxEditDataFrame > dataFrame <- data.frame(n=1:10,"n^2"=(1:10)^2,"n^3"=(1:10)^3,check.names=F) > #BEFORE EDITING: > dataFrame n n^2 n^3 1 1 1 1 2 2 4 8 3 3 9 27 4 4 16 64 5 5 25 125 6 6 36 216 7 7 49 343 8 8 64 512 9 9 81 729 10 10 100 1000 > wxEditDataFrame(“dataFrame”)

  24. An R-wxPython Data-Frame Editor > #AFTER EDITING: > dataFrame n n^2 n^3 1 1 1 1 2 2 4 8 3 3 9 27 4 4 16 64 5 5 25 125 6 6 36 216 7 7 49 343 8 8 64 512 9 9 81 729 10 10 100 5555555 >

  25. Menus in R-wxPython

  26. R-wxPython Website http://bioinf.wehi.edu.au/folders/james/wxPython

  27. Acknowledgements The OmegaHat Project The Walter and Eliza Hall Institute of Medical Research

More Related