mailr10920 - /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 25, 2010 - 05:21:
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()
 
 




Related Messages


Powered by MHonArc, Updated Thu Feb 25 05:40:02 2010