mailRe: r10920 - /branches/bieri_gui/gui_bieri/relax_gui.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Michael Bieri on February 26, 2010 - 00:17:
Yes, this is just a fix for the current version. Once we redesign the whole concept to single windows, we will get a variable amount of noe, r1, r2 and model free windows. This information could then be stored into your new singleton (which is brilliant!!) and used for final analysis and comparisons.

I just adapted your hardcoded indexes.

Cheers

Edward d'Auvergne schrieb:
Hi,

I'm guessing that 'structure_file_pdb' should be called something else
for the sequence file?  I think this change is good for the first
version of the GUI.  In the future though, it would be useful to be
able to have this as a per analysis feature.  Then you could compare 2
model-free analyses of the same system at different temperatures, or
of 2 homologous proteins inside the GUI.

Cheers,

Edward


On 25 February 2010 05:21,  <michael.bieri@xxxxxx> wrote:
Author: michaelbieri
Date: Thu Feb 25 05:21:26 2010
New Revision: 10920

URL: http://svn.gna.org/viewcvs/relax?rev=10920&view=rev
Log:
A sequence file can be loaded in the menu and will be assigned to all the 
analysis tabs.

After importing a sequence file, each structure file text control field will 
be loaded with this file. The sequence file will also be stored in the relax 
data storage.

Modified:
   branches/bieri_gui/gui_bieri/relax_gui.py

Modified: branches/bieri_gui/gui_bieri/relax_gui.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/gui_bieri/relax_gui.py?rev=10920&r1=10919&r2=10920&view=diff
==============================================================================
--- branches/bieri_gui/gui_bieri/relax_gui.py (original)
+++ branches/bieri_gui/gui_bieri/relax_gui.py Thu Feb 25 05:21:26 2010
@@ -462,13 +462,29 @@
        global sequencefile  #load global variable
        temp = load_sequence(self)
        if not temp == None:
-            sequencefile = temp #set sequence file
-
-            # set entries in pdb text box
+            sequencefile = str(temp) #set sequence file
+
+            # Set entries in pdb text box.
            structure_file_pdb = '!!! Sequence file selected !!!'
-            self.structure_noe1.SetValue(structure_file_pdb)
-            self.structure_noe1_copy.SetValue(structure_file_pdb)
-            self.structure_noe1_copy_1.SetValue(structure_file_pdb)
+            # Add file to NOE tabs.
+            
self.analysis_frames[self.hardcoded_index_noe_1].field_structure.SetValue(structure_file_pdb)
+            
self.analysis_frames[self.hardcoded_index_noe_2].field_structure.SetValue(structure_file_pdb)
+            
self.analysis_frames[self.hardcoded_index_noe_3].field_structure.SetValue(structure_file_pdb)
+
+            # Add file to R1 tabs.
+            
self.analysis_frames[self.hardcoded_index_r1_1].field_structure.SetValue(structure_file_pdb)
+            
self.analysis_frames[self.hardcoded_index_r1_2].field_structure.SetValue(structure_file_pdb)
+            
self.analysis_frames[self.hardcoded_index_r1_3].field_structure.SetValue(structure_file_pdb)
+
+            # Add file to R2 tabs.
+            
self.analysis_frames[self.hardcoded_index_r2_1].field_structure.SetValue(structure_file_pdb)
+            
self.analysis_frames[self.hardcoded_index_r2_2].field_structure.SetValue(structure_file_pdb)
+            
self.analysis_frames[self.hardcoded_index_r2_3].field_structure.SetValue(structure_file_pdb)
+
+            # Load sequencefile in relax data storage.
+            for i in range(10):
+             ds.relax_gui.analyses[i].sequence_file = sequencefile
+
        event.Skip()




_______________________________________________
relax (http://nmr-relax.com)

This is the relax-commits mailing list
relax-commits@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits


_______________________________________________
relax (http://nmr-relax.com)

This is the relax-devel mailing list
relax-devel@xxxxxxx

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel




Related Messages


Powered by MHonArc, Updated Fri Feb 26 00:20:56 2010