Re: Relaxation curve fitting
Dear Edward and Troels, Thank you very much for your suggestions. Now the intensities.agr file can be opened and displayed by qtgrace on my computer. Regards, Mengjun Citat af Edward d'Auvergne : Hi, The qtgrace program seems a bit buggy. I have tested it on a Windows 7 VM, and see the same problem. Opening the file by clicking on the 'File->Open' menu results in a white screen. But double clicking on the file and opening it in qtgrace shows the file. You can make the graphs appear again in the blank screen as they are just hidden! - Click on the 'Edit->Explorer' menu item. - The 'Graph G0, type=XY' item is grey because it is hidden. Right click it. - In the popup menu click on 'Show'. You will now see the graphs. For this bug there is nothing I can do as it is in qtgrace and not relax. I am now trying to replicate the relax grace.view user function failure. Regards, Edward On 4 March 2014 20:59, wrote: Hi Edward, Thank you for your suggestions. I have tried to open qtgrace first and then open the intensities file, but I can not seen any curve in qtgrace. I have submitted the bug report. Regards, Mengjun Citat af Edward d'Auvergne : Hi Mengjun, This looks like a bug in relax on Windows with spaces in the directory name! I thought I fixed this many, many years ago - maybe it has resurfaced in a new place. Could you please submit a bug report with this issue? Actually, before you do that, can you open qtgrace and then open this file? If the error is in qtgrace, then the bug report is not needed as there is nothing relax can do to fix it. You can submit a bug using the link https://gna.org/bugs/?func=additem&group=relax. You can also attach the file there. Note that you should not have your data files in the same directory as relax. You should always keep your data files separate from the software files. Mixing the files together is quite dangerous and might result in program files or directories being overwritten by data and results files. If you place your files into a directory on the C:\ drive without any spaces, this problem will not appear. Regards, Edward On 4 March 2014 18:38, wrote: Hi Edward, Thank you very much for your suggestion. As you suggested, I have started grace.view user function under Relax Gui, and select qtgrace.exe file and intensities.agr file, but a error occurs: [Error] Can't stat file C:\\Program [Error] Can't stat file Files\\relax-3.1.5\\grace\\intensities.agr Please find the intensities.agr file (which include 3 residues for test) in the attachment. Thank you. With best regards, Mengjun Xue Citat af Edward d'Auvergne : Hi Mengjun, If you are using the GUI, you don't need to change the qtgrace.exe file. The grace.view user function window allows you to choose the Grace executable file. Just click on the "Select the file" button and select the qtgrace.exe file. Regards, Edward On 3 March 2014 17:51, wrote: Hi Troels and Martin, Thank you so much for your responses. According to your suggestions, the raw intensities data can be extracted from results.bz file or rx.save.bz2 file now. For the xmgrace installation, I have downloaded qtgrace at http://sourceforge.net/projects/qtgrace/, and uppack it to C:\Python27\qtgrace_windows_binary, in the C:\Python27\qtgrace_windows_binary\bin folder, I found qtgrace.exe,but I did not find xmgrace.exe, how to put both qtgrace.exe and xmgrace.exe in the same bin folder? xmgrace.exe should be downloaded from internet and then put it in the same bin file? Thank you so much. Best regards, Mengjun Quoting Troels Emtekær Linnet : Dear Mengjun. For xmgrace installation, follow this: http://wiki.nmr-relax.com/Installation_windows_Python_x86-32_Visual_Studio_Express_for_Windows_Desktop#xmgrace_-_for_the_plotting_results_of_NMR-relax In short. 1 ) Download and install 2) Copy qtgrace.exe to xmgrace.exe in same folder 3) Add to your windows path, the path to where xmgrace.exe resides. 4) Test it with opening "cmd" and write "xmgrace". (You may need to restart computer to update PATH) Or if you have matplob lib, try this tutorial: http://wiki.nmr-relax.com/Matplotlib_example 2014-03-03 16:11 GMT+01:00 : Hi Edward, I have tried to use relax_fit.py to extract R1 data, I have got 3 files: rx.out file (R1 values), rx.save.bz2 file, and results.bz2 file, as Xmgrace is not available on my computer, I want to display the intensity decay curves in others software, so how to extract the raw data from the output (results.bz2) of relax_fit.py? It seems rx.save.bz2 file is same to results.bz2 file. Thank you very much. With best regards, Mengjun Xue ___ relax (http://www.nmr-relax.com) This is the relax-users mailing list relax-users@gna.org 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-us
Re: Relaxation curve fitting
Hi, The qtgrace program seems a bit buggy. I have tested it on a Windows 7 VM, and see the same problem. Opening the file by clicking on the 'File->Open' menu results in a white screen. But double clicking on the file and opening it in qtgrace shows the file. You can make the graphs appear again in the blank screen as they are just hidden! - Click on the 'Edit->Explorer' menu item. - The 'Graph G0, type=XY' item is grey because it is hidden. Right click it. - In the popup menu click on 'Show'. You will now see the graphs. For this bug there is nothing I can do as it is in qtgrace and not relax. I am now trying to replicate the relax grace.view user function failure. Regards, Edward On 4 March 2014 20:59, wrote: > Hi Edward, > > Thank you for your suggestions. I have tried to open qtgrace first and then > open the intensities file, but I can not seen any curve in qtgrace. I have > submitted the bug report. > > Regards, > > Mengjun > > > > > > > Citat af Edward d'Auvergne : > >> Hi Mengjun, >> >> This looks like a bug in relax on Windows with spaces in the directory >> name! I thought I fixed this many, many years ago - maybe it has >> resurfaced in a new place. Could you please submit a bug report with >> this issue? Actually, before you do that, can you open qtgrace and >> then open this file? If the error is in qtgrace, then the bug report >> is not needed as there is nothing relax can do to fix it. You can >> submit a bug using the link >> https://gna.org/bugs/?func=additem&group=relax. You can also attach >> the file there. >> >> Note that you should not have your data files in the same directory as >> relax. You should always keep your data files separate from the >> software files. Mixing the files together is quite dangerous and >> might result in program files or directories being overwritten by data >> and results files. If you place your files into a directory on the >> C:\ drive without any spaces, this problem will not appear. >> >> Regards, >> >> Edward >> >> >> >> >> On 4 March 2014 18:38, wrote: >>> >>> Hi Edward, >>> >>> Thank you very much for your suggestion. As you suggested, I have started >>> grace.view user function under Relax Gui, and select qtgrace.exe file and >>> intensities.agr file, but a error occurs: >>> >>> [Error] Can't stat file C:\\Program >>> [Error] Can't stat file Files\\relax-3.1.5\\grace\\intensities.agr >>> >>> Please find the intensities.agr file (which include 3 residues for test) >>> in >>> the attachment. Thank you. >>> >>> >>> With best regards, >>> >>> Mengjun Xue >>> >>> >>> >>> >>> >>> >>> >>> Citat af Edward d'Auvergne : >>> >>> Hi Mengjun, If you are using the GUI, you don't need to change the qtgrace.exe file. The grace.view user function window allows you to choose the Grace executable file. Just click on the "Select the file" button and select the qtgrace.exe file. Regards, Edward On 3 March 2014 17:51, wrote: > > > Hi Troels and Martin, > > Thank you so much for your responses. According to your suggestions, > the > raw > intensities data can be extracted from results.bz file or rx.save.bz2 > file > now. > > For the xmgrace installation, I have downloaded qtgrace at > http://sourceforge.net/projects/qtgrace/, and uppack it to > C:\Python27\qtgrace_windows_binary, in the > C:\Python27\qtgrace_windows_binary\bin folder, I found qtgrace.exe,but > I > did > not find xmgrace.exe, how to put both qtgrace.exe and xmgrace.exe in > the > same bin folder? xmgrace.exe should be downloaded from internet and > then > put > it in the same bin file? Thank you so much. > > Best regards, > > Mengjun > > > > > > Quoting Troels Emtekær Linnet : > >> Dear Mengjun. >> >> For xmgrace installation, follow this: >> >> >> >> http://wiki.nmr-relax.com/Installation_windows_Python_x86-32_Visual_Studio_Express_for_Windows_Desktop#xmgrace_-_for_the_plotting_results_of_NMR-relax >> >> In short. >> 1 ) Download and install >> 2) Copy qtgrace.exe to xmgrace.exe in same folder >> 3) Add to your windows path, the path to where xmgrace.exe resides. >> 4) Test it with opening "cmd" and write "xmgrace". (You may need to >> restart computer to update PATH) >> >> Or if you have matplob lib, try this tutorial: >> http://wiki.nmr-relax.com/Matplotlib_example >> >> >> >> 2014-03-03 16:11 GMT+01:00 : >>> >>> >>> >>> Hi Edward, >>> >>> I have tried to use relax_fit.py to extract R1 data, I have got 3 >>> files: >>> rx.out file (R1 values), rx.save.bz2 file, and results.bz2 file, as >>> Xmgrace >>> is not available on my computer, I want to display the intensity >>> decay >>> curves in others software, so how to extract the raw data
Re: Relaxation curve fitting
Hi Edward, Thank you for your suggestions. I have tried to open qtgrace first and then open the intensities file, but I can not seen any curve in qtgrace. I have submitted the bug report. Regards, Mengjun Citat af Edward d'Auvergne : Hi Mengjun, This looks like a bug in relax on Windows with spaces in the directory name! I thought I fixed this many, many years ago - maybe it has resurfaced in a new place. Could you please submit a bug report with this issue? Actually, before you do that, can you open qtgrace and then open this file? If the error is in qtgrace, then the bug report is not needed as there is nothing relax can do to fix it. You can submit a bug using the link https://gna.org/bugs/?func=additem&group=relax. You can also attach the file there. Note that you should not have your data files in the same directory as relax. You should always keep your data files separate from the software files. Mixing the files together is quite dangerous and might result in program files or directories being overwritten by data and results files. If you place your files into a directory on the C:\ drive without any spaces, this problem will not appear. Regards, Edward On 4 March 2014 18:38, wrote: Hi Edward, Thank you very much for your suggestion. As you suggested, I have started grace.view user function under Relax Gui, and select qtgrace.exe file and intensities.agr file, but a error occurs: [Error] Can't stat file C:\\Program [Error] Can't stat file Files\\relax-3.1.5\\grace\\intensities.agr Please find the intensities.agr file (which include 3 residues for test) in the attachment. Thank you. With best regards, Mengjun Xue Citat af Edward d'Auvergne : Hi Mengjun, If you are using the GUI, you don't need to change the qtgrace.exe file. The grace.view user function window allows you to choose the Grace executable file. Just click on the "Select the file" button and select the qtgrace.exe file. Regards, Edward On 3 March 2014 17:51, wrote: Hi Troels and Martin, Thank you so much for your responses. According to your suggestions, the raw intensities data can be extracted from results.bz file or rx.save.bz2 file now. For the xmgrace installation, I have downloaded qtgrace at http://sourceforge.net/projects/qtgrace/, and uppack it to C:\Python27\qtgrace_windows_binary, in the C:\Python27\qtgrace_windows_binary\bin folder, I found qtgrace.exe,but I did not find xmgrace.exe, how to put both qtgrace.exe and xmgrace.exe in the same bin folder? xmgrace.exe should be downloaded from internet and then put it in the same bin file? Thank you so much. Best regards, Mengjun Quoting Troels Emtekær Linnet : Dear Mengjun. For xmgrace installation, follow this: http://wiki.nmr-relax.com/Installation_windows_Python_x86-32_Visual_Studio_Express_for_Windows_Desktop#xmgrace_-_for_the_plotting_results_of_NMR-relax In short. 1 ) Download and install 2) Copy qtgrace.exe to xmgrace.exe in same folder 3) Add to your windows path, the path to where xmgrace.exe resides. 4) Test it with opening "cmd" and write "xmgrace". (You may need to restart computer to update PATH) Or if you have matplob lib, try this tutorial: http://wiki.nmr-relax.com/Matplotlib_example 2014-03-03 16:11 GMT+01:00 : Hi Edward, I have tried to use relax_fit.py to extract R1 data, I have got 3 files: rx.out file (R1 values), rx.save.bz2 file, and results.bz2 file, as Xmgrace is not available on my computer, I want to display the intensity decay curves in others software, so how to extract the raw data from the output (results.bz2) of relax_fit.py? It seems rx.save.bz2 file is same to results.bz2 file. Thank you very much. With best regards, Mengjun Xue ___ relax (http://www.nmr-relax.com) This is the relax-users mailing list relax-users@gna.org 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-users ___ relax (http://www.nmr-relax.com) This is the relax-users mailing list relax-users@gna.org 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-users
Re: Relaxation curve fitting
Hi Mengjun, This looks like a bug in relax on Windows with spaces in the directory name! I thought I fixed this many, many years ago - maybe it has resurfaced in a new place. Could you please submit a bug report with this issue? Actually, before you do that, can you open qtgrace and then open this file? If the error is in qtgrace, then the bug report is not needed as there is nothing relax can do to fix it. You can submit a bug using the link https://gna.org/bugs/?func=additem&group=relax. You can also attach the file there. Note that you should not have your data files in the same directory as relax. You should always keep your data files separate from the software files. Mixing the files together is quite dangerous and might result in program files or directories being overwritten by data and results files. If you place your files into a directory on the C:\ drive without any spaces, this problem will not appear. Regards, Edward On 4 March 2014 18:38, wrote: > Hi Edward, > > Thank you very much for your suggestion. As you suggested, I have started > grace.view user function under Relax Gui, and select qtgrace.exe file and > intensities.agr file, but a error occurs: > > [Error] Can't stat file C:\\Program > [Error] Can't stat file Files\\relax-3.1.5\\grace\\intensities.agr > > Please find the intensities.agr file (which include 3 residues for test) in > the attachment. Thank you. > > > With best regards, > > Mengjun Xue > > > > > > > > Citat af Edward d'Auvergne : > > >> Hi Mengjun, >> >> If you are using the GUI, you don't need to change the qtgrace.exe >> file. The grace.view user function window allows you to choose the >> Grace executable file. Just click on the "Select the file" button and >> select the qtgrace.exe file. >> >> Regards, >> >> Edward >> >> >> >> On 3 March 2014 17:51, wrote: >>> >>> Hi Troels and Martin, >>> >>> Thank you so much for your responses. According to your suggestions, the >>> raw >>> intensities data can be extracted from results.bz file or rx.save.bz2 >>> file >>> now. >>> >>> For the xmgrace installation, I have downloaded qtgrace at >>> http://sourceforge.net/projects/qtgrace/, and uppack it to >>> C:\Python27\qtgrace_windows_binary, in the >>> C:\Python27\qtgrace_windows_binary\bin folder, I found qtgrace.exe,but I >>> did >>> not find xmgrace.exe, how to put both qtgrace.exe and xmgrace.exe in the >>> same bin folder? xmgrace.exe should be downloaded from internet and then >>> put >>> it in the same bin file? Thank you so much. >>> >>> Best regards, >>> >>> Mengjun >>> >>> >>> >>> >>> >>> Quoting Troels Emtekær Linnet : >>> Dear Mengjun. For xmgrace installation, follow this: http://wiki.nmr-relax.com/Installation_windows_Python_x86-32_Visual_Studio_Express_for_Windows_Desktop#xmgrace_-_for_the_plotting_results_of_NMR-relax In short. 1 ) Download and install 2) Copy qtgrace.exe to xmgrace.exe in same folder 3) Add to your windows path, the path to where xmgrace.exe resides. 4) Test it with opening "cmd" and write "xmgrace". (You may need to restart computer to update PATH) Or if you have matplob lib, try this tutorial: http://wiki.nmr-relax.com/Matplotlib_example 2014-03-03 16:11 GMT+01:00 : > > > Hi Edward, > > I have tried to use relax_fit.py to extract R1 data, I have got 3 > files: > rx.out file (R1 values), rx.save.bz2 file, and results.bz2 file, as > Xmgrace > is not available on my computer, I want to display the intensity decay > curves in others software, so how to extract the raw data from the > output > (results.bz2) of relax_fit.py? It seems rx.save.bz2 file is same to > results.bz2 file. Thank you very much. > > With best regards, > > Mengjun Xue > > > ___ > relax (http://www.nmr-relax.com) > > This is the relax-users mailing list > relax-users@gna.org > > 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-users >>> >>> >>> >> >> > ___ relax (http://www.nmr-relax.com) This is the relax-users mailing list relax-users@gna.org 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-users
Re: Relaxation curve fitting
Hi Edward, Thank you very much for your suggestion. As you suggested, I have started grace.view user function under Relax Gui, and select qtgrace.exe file and intensities.agr file, but a error occurs: [Error] Can't stat file C:\\Program [Error] Can't stat file Files\\relax-3.1.5\\grace\\intensities.agr Please find the intensities.agr file (which include 3 residues for test) in the attachment. Thank you. With best regards, Mengjun Xue Citat af Edward d'Auvergne : Hi Mengjun, If you are using the GUI, you don't need to change the qtgrace.exe file. The grace.view user function window allows you to choose the Grace executable file. Just click on the "Select the file" button and select the qtgrace.exe file. Regards, Edward On 3 March 2014 17:51, wrote: Hi Troels and Martin, Thank you so much for your responses. According to your suggestions, the raw intensities data can be extracted from results.bz file or rx.save.bz2 file now. For the xmgrace installation, I have downloaded qtgrace at http://sourceforge.net/projects/qtgrace/, and uppack it to C:\Python27\qtgrace_windows_binary, in the C:\Python27\qtgrace_windows_binary\bin folder, I found qtgrace.exe,but I did not find xmgrace.exe, how to put both qtgrace.exe and xmgrace.exe in the same bin folder? xmgrace.exe should be downloaded from internet and then put it in the same bin file? Thank you so much. Best regards, Mengjun Quoting Troels Emtekær Linnet : Dear Mengjun. For xmgrace installation, follow this: http://wiki.nmr-relax.com/Installation_windows_Python_x86-32_Visual_Studio_Express_for_Windows_Desktop#xmgrace_-_for_the_plotting_results_of_NMR-relax In short. 1 ) Download and install 2) Copy qtgrace.exe to xmgrace.exe in same folder 3) Add to your windows path, the path to where xmgrace.exe resides. 4) Test it with opening "cmd" and write "xmgrace". (You may need to restart computer to update PATH) Or if you have matplob lib, try this tutorial: http://wiki.nmr-relax.com/Matplotlib_example 2014-03-03 16:11 GMT+01:00 : Hi Edward, I have tried to use relax_fit.py to extract R1 data, I have got 3 files: rx.out file (R1 values), rx.save.bz2 file, and results.bz2 file, as Xmgrace is not available on my computer, I want to display the intensity decay curves in others software, so how to extract the raw data from the output (results.bz2) of relax_fit.py? It seems rx.save.bz2 file is same to results.bz2 file. Thank you very much. With best regards, Mengjun Xue ___ relax (http://www.nmr-relax.com) This is the relax-users mailing list relax-users@gna.org 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-users intensities.agr Description: Binary data ___ relax (http://www.nmr-relax.com) This is the relax-users mailing list relax-users@gna.org 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-users
Re: Relaxation curve fitting
Hi Mengjun, If you are using the GUI, you don't need to change the qtgrace.exe file. The grace.view user function window allows you to choose the Grace executable file. Just click on the "Select the file" button and select the qtgrace.exe file. Regards, Edward On 3 March 2014 17:51, wrote: > Hi Troels and Martin, > > Thank you so much for your responses. According to your suggestions, the raw > intensities data can be extracted from results.bz file or rx.save.bz2 file > now. > > For the xmgrace installation, I have downloaded qtgrace at > http://sourceforge.net/projects/qtgrace/, and uppack it to > C:\Python27\qtgrace_windows_binary, in the > C:\Python27\qtgrace_windows_binary\bin folder, I found qtgrace.exe,but I did > not find xmgrace.exe, how to put both qtgrace.exe and xmgrace.exe in the > same bin folder? xmgrace.exe should be downloaded from internet and then put > it in the same bin file? Thank you so much. > > Best regards, > > Mengjun > > > > > > Quoting Troels Emtekær Linnet : > >> Dear Mengjun. >> >> For xmgrace installation, follow this: >> >> http://wiki.nmr-relax.com/Installation_windows_Python_x86-32_Visual_Studio_Express_for_Windows_Desktop#xmgrace_-_for_the_plotting_results_of_NMR-relax >> >> In short. >> 1 ) Download and install >> 2) Copy qtgrace.exe to xmgrace.exe in same folder >> 3) Add to your windows path, the path to where xmgrace.exe resides. >> 4) Test it with opening "cmd" and write "xmgrace". (You may need to >> restart computer to update PATH) >> >> Or if you have matplob lib, try this tutorial: >> http://wiki.nmr-relax.com/Matplotlib_example >> >> >> >> 2014-03-03 16:11 GMT+01:00 : >>> >>> Hi Edward, >>> >>> I have tried to use relax_fit.py to extract R1 data, I have got 3 files: >>> rx.out file (R1 values), rx.save.bz2 file, and results.bz2 file, as >>> Xmgrace >>> is not available on my computer, I want to display the intensity decay >>> curves in others software, so how to extract the raw data from the output >>> (results.bz2) of relax_fit.py? It seems rx.save.bz2 file is same to >>> results.bz2 file. Thank you very much. >>> >>> With best regards, >>> >>> Mengjun Xue >>> >>> >>> ___ >>> relax (http://www.nmr-relax.com) >>> >>> This is the relax-users mailing list >>> relax-users@gna.org >>> >>> 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-users >> >> >> > > > ___ relax (http://www.nmr-relax.com) This is the relax-users mailing list relax-users@gna.org 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-users
Re: Relaxation curve fitting
Hi Troels and Martin, Thank you so much for your responses. According to your suggestions, the raw intensities data can be extracted from results.bz file or rx.save.bz2 file now. For the xmgrace installation, I have downloaded qtgrace at http://sourceforge.net/projects/qtgrace/, and uppack it to C:\Python27\qtgrace_windows_binary, in the C:\Python27\qtgrace_windows_binary\bin folder, I found qtgrace.exe,but I did not find xmgrace.exe, how to put both qtgrace.exe and xmgrace.exe in the same bin folder? xmgrace.exe should be downloaded from internet and then put it in the same bin file? Thank you so much. Best regards, Mengjun Quoting Troels Emtekær Linnet : Dear Mengjun. For xmgrace installation, follow this: http://wiki.nmr-relax.com/Installation_windows_Python_x86-32_Visual_Studio_Express_for_Windows_Desktop#xmgrace_-_for_the_plotting_results_of_NMR-relax In short. 1 ) Download and install 2) Copy qtgrace.exe to xmgrace.exe in same folder 3) Add to your windows path, the path to where xmgrace.exe resides. 4) Test it with opening "cmd" and write "xmgrace". (You may need to restart computer to update PATH) Or if you have matplob lib, try this tutorial: http://wiki.nmr-relax.com/Matplotlib_example 2014-03-03 16:11 GMT+01:00 : Hi Edward, I have tried to use relax_fit.py to extract R1 data, I have got 3 files: rx.out file (R1 values), rx.save.bz2 file, and results.bz2 file, as Xmgrace is not available on my computer, I want to display the intensity decay curves in others software, so how to extract the raw data from the output (results.bz2) of relax_fit.py? It seems rx.save.bz2 file is same to results.bz2 file. Thank you very much. With best regards, Mengjun Xue ___ relax (http://www.nmr-relax.com) This is the relax-users mailing list relax-users@gna.org 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-users ___ relax (http://www.nmr-relax.com) This is the relax-users mailing list relax-users@gna.org 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-users
Re: Relaxation curve fitting
Hi Mengjun, the rx.out file contains the fit parameters of all the spins. The results and save files can be loaded into relax again to manipulate the stuff further and e.g. write the values again into another file. To display the intensity you either use the provided grace files, or you do it like me and read the out files and your original intensitiy files with your "other" program for plotting. I do this in R, mainly because I used R for fitting before I learned about the existence of relax. For this to work, you'll also have to write out the initial intensity I(0), e.g. by typing: > value.write(param='i0', file='i0.out', force=True) If you want, and know how to write R, I can provide you with my scripts. Cheers Martin On 03.03.2014, at 16:11, mengjun@mailbox.tu-berlin.de wrote: > Hi Edward, > > I have tried to use relax_fit.py to extract R1 data, I have got 3 files: > rx.out file (R1 values), rx.save.bz2 file, and results.bz2 file, as Xmgrace > is not available on my computer, I want to display the intensity decay curves > in others software, so how to extract the raw data from the output > (results.bz2) of relax_fit.py? It seems rx.save.bz2 file is same to > results.bz2 file. Thank you very much. > > With best regards, > > Mengjun Xue > > > ___ > relax (http://www.nmr-relax.com) > > This is the relax-users mailing list > relax-users@gna.org > > 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-users smime.p7s Description: S/MIME cryptographic signature ___ relax (http://www.nmr-relax.com) This is the relax-users mailing list relax-users@gna.org 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-users
Re: Relaxation curve fitting
Dear Mengjun. Let me extend the previous explanation. Use the GUI to load results.bz2 file. Then use the User function: Value write, to write a text file with the desired results. These are just flat text files as: rx.out and can include intensities instead, of normalized intensities. Use these files to plot in any program. Or use the User function: Grace write, to make grace files. Best Troels 2014-03-03 16:33 GMT+01:00 Troels Emtekær Linnet : > Dear Mengjun. > > For xmgrace installation, follow this: > http://wiki.nmr-relax.com/Installation_windows_Python_x86-32_Visual_Studio_Express_for_Windows_Desktop#xmgrace_-_for_the_plotting_results_of_NMR-relax > > In short. > 1 ) Download and install > 2) Copy qtgrace.exe to xmgrace.exe in same folder > 3) Add to your windows path, the path to where xmgrace.exe resides. > 4) Test it with opening "cmd" and write "xmgrace". (You may need to > restart computer to update PATH) > > Or if you have matplob lib, try this tutorial: > http://wiki.nmr-relax.com/Matplotlib_example > > > > 2014-03-03 16:11 GMT+01:00 : >> Hi Edward, >> >> I have tried to use relax_fit.py to extract R1 data, I have got 3 files: >> rx.out file (R1 values), rx.save.bz2 file, and results.bz2 file, as Xmgrace >> is not available on my computer, I want to display the intensity decay >> curves in others software, so how to extract the raw data from the output >> (results.bz2) of relax_fit.py? It seems rx.save.bz2 file is same to >> results.bz2 file. Thank you very much. >> >> With best regards, >> >> Mengjun Xue >> >> >> ___ >> relax (http://www.nmr-relax.com) >> >> This is the relax-users mailing list >> relax-users@gna.org >> >> 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-users ___ relax (http://www.nmr-relax.com) This is the relax-users mailing list relax-users@gna.org 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-users
Re: Relaxation curve fitting
Dear Mengjun. For xmgrace installation, follow this: http://wiki.nmr-relax.com/Installation_windows_Python_x86-32_Visual_Studio_Express_for_Windows_Desktop#xmgrace_-_for_the_plotting_results_of_NMR-relax In short. 1 ) Download and install 2) Copy qtgrace.exe to xmgrace.exe in same folder 3) Add to your windows path, the path to where xmgrace.exe resides. 4) Test it with opening "cmd" and write "xmgrace". (You may need to restart computer to update PATH) Or if you have matplob lib, try this tutorial: http://wiki.nmr-relax.com/Matplotlib_example 2014-03-03 16:11 GMT+01:00 : > Hi Edward, > > I have tried to use relax_fit.py to extract R1 data, I have got 3 files: > rx.out file (R1 values), rx.save.bz2 file, and results.bz2 file, as Xmgrace > is not available on my computer, I want to display the intensity decay > curves in others software, so how to extract the raw data from the output > (results.bz2) of relax_fit.py? It seems rx.save.bz2 file is same to > results.bz2 file. Thank you very much. > > With best regards, > > Mengjun Xue > > > ___ > relax (http://www.nmr-relax.com) > > This is the relax-users mailing list > relax-users@gna.org > > 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-users ___ relax (http://www.nmr-relax.com) This is the relax-users mailing list relax-users@gna.org 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-users
Re: relaxation curve fitting
Hi Romel, I hope you don't mind, but I have taken your test data and script and created a relax system test with it. I have only included the data for residues 24, 28, and 29, and have not used the PDB file. The data will be located in the directory test_suite/shared_data/peak_lists/bug_19887, and the script is called test_suite/system_tests/scripts/curve_fitting/bug_19887_curvefit_fail.py. If you'd like to keep it secret, I can randomise the peak heights a little if you like. I can now reproduce the problem by running this specific test with: $ relax -s Relax_fit.test_bug_19887_curvefit_fail To perform this test yourself, you'd need the subversion program installed. If you have this, you can get the most up-to-date copy of relax (and the minfx and bmrblib libraries) by typing: $ svn co http://svn.gna.org/svn/relax/trunk relax-trunk $ cd relax-trunk $ svn co http://svn.gna.org/svn/minfx/trunk/minfx $ svn co http://svn.gna.org/svn/bmrblib/trunk/bmrblib This might be needed later to obtain the fixes. Regards, Edward On 2 July 2012 10:38, Edward d'Auvergne wrote: > Cheers! Hopefully I'll be able to reproduce the problem and come up > with a fix soon. > > Regards, > > Edward > > > > On 2 July 2012 10:32, Romel Bobby wrote: >> Hi Edward, >> >> I've submitted the bug under #19887 and included the output of 'relax >> --info' in relax_info.txt. I also included tar.gz file containing all the >> input files (ie lists for relaxation delays, pdb, log file, etc.). >> Thanks >> >> Kind regards, >> >> Romel >> >> >> On 2 July 2012 19:29, Edward d'Auvergne wrote: >>> >>> Hi, >>> >>> This appears to be a unique bug! I would guess that it has something >>> to do with the software versions in use - on most systems this code >>> path works flawlessly. But I should be able to modify relax to handle >>> this. Would you be able to please make a bug report? The link is >>> https://gna.org/bugs/?func=additem&group=relax. If you could include >>> a short description, the error message, and the output of 'relax >>> --info', this would be of significant help. If possible, I would like >>> to try to catch this in the relax test suite. The more information >>> you provide the better - because if I can reproduce the problem on my >>> computer, I can then fix the problem within minutes. Otherwise it >>> takes much, much longer. >>> >>> Cheers, >>> >>> Edward >>> >>> >>> >>> On 30 June 2012 21:16, Romel Bobby wrote: >>> > Hi Edward, >>> > >>> > I tried the 'exp' model and it gave me the very same error message (see >>> > below). >>> > >>> > File "/usr/local/relax/multi/processor.py", line 480, in run >>> > self.callback.init_master(self) >>> > File "/usr/local/relax/multi/__init__.py", line 319, in >>> > default_init_master >>> > self.master.run() >>> > File "/usr/local/relax/relax.py", line 183, in run >>> > self.interpreter.run(self.script_file) >>> > File "/usr/local/relax/prompt/interpreter.py", line 280, in run >>> > return run_script(intro=self.__intro_string, local=locals(), >>> > script_file=script_file, quit=self.__quit_flag, >>> > show_script=self.__show_script, >>> > raise_relax_error=self.__raise_relax_error) >>> > File "/usr/local/relax/prompt/interpreter.py", line 570, in run_script >>> > return console.interact(intro, local, script_file, quit, >>> > show_script=show_script, raise_relax_error=raise_relax_error) >>> > File "/usr/local/relax/prompt/interpreter.py", line 455, in >>> > interact_script >>> > exec_script(script_file, local) >>> > File "/usr/local/relax/prompt/interpreter.py", line 329, in >>> > exec_script >>> > runpy.run_module(module, globals) >>> > File >>> > >>> > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", >>> > line 180, in run_module >>> > fname, loader, pkg_name) >>> > File >>> > >>> > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", >>> > line 72, in _run_code >>> > exec code in run_globals >>> > File "/Users/b_romel/temp_relax/backup/relax_fit.py", line 87, in >>> > >>> > grid_search(inc=11) >>> > File "/usr/local/relax/prompt/uf_objects.py", line 220, in __call__ >>> > self._backend(*new_args, **uf_kargs) >>> > File "/usr/local/relax/generic_fns/minimise.py", line 141, in >>> > grid_search >>> > grid_search(lower=lower, upper=upper, inc=inc, >>> > constraints=constraints, >>> > verbosity=verbosity) >>> > File "/usr/local/relax/specific_fns/relax_fit.py", line 609, in >>> > grid_search >>> > self.minimise(min_algor='grid', lower=lower, upper=upper, inc=inc, >>> > constraints=constraints, verbosity=verbosity, sim_index=sim_index) >>> > File "/usr/local/relax/specific_fns/relax_fit.py", line 716, in >>> > minimise >>> > if constraints and not match('^[Gg]rid', min_algor): >>> > File >>> > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", >>> > line 137, in match >>> > return _compile(pattern, flags).match(str
Re: relaxation curve fitting
Cheers! Hopefully I'll be able to reproduce the problem and come up with a fix soon. Regards, Edward On 2 July 2012 10:32, Romel Bobby wrote: > Hi Edward, > > I've submitted the bug under #19887 and included the output of 'relax > --info' in relax_info.txt. I also included tar.gz file containing all the > input files (ie lists for relaxation delays, pdb, log file, etc.). > Thanks > > Kind regards, > > Romel > > > On 2 July 2012 19:29, Edward d'Auvergne wrote: >> >> Hi, >> >> This appears to be a unique bug! I would guess that it has something >> to do with the software versions in use - on most systems this code >> path works flawlessly. But I should be able to modify relax to handle >> this. Would you be able to please make a bug report? The link is >> https://gna.org/bugs/?func=additem&group=relax. If you could include >> a short description, the error message, and the output of 'relax >> --info', this would be of significant help. If possible, I would like >> to try to catch this in the relax test suite. The more information >> you provide the better - because if I can reproduce the problem on my >> computer, I can then fix the problem within minutes. Otherwise it >> takes much, much longer. >> >> Cheers, >> >> Edward >> >> >> >> On 30 June 2012 21:16, Romel Bobby wrote: >> > Hi Edward, >> > >> > I tried the 'exp' model and it gave me the very same error message (see >> > below). >> > >> > File "/usr/local/relax/multi/processor.py", line 480, in run >> > self.callback.init_master(self) >> > File "/usr/local/relax/multi/__init__.py", line 319, in >> > default_init_master >> > self.master.run() >> > File "/usr/local/relax/relax.py", line 183, in run >> > self.interpreter.run(self.script_file) >> > File "/usr/local/relax/prompt/interpreter.py", line 280, in run >> > return run_script(intro=self.__intro_string, local=locals(), >> > script_file=script_file, quit=self.__quit_flag, >> > show_script=self.__show_script, >> > raise_relax_error=self.__raise_relax_error) >> > File "/usr/local/relax/prompt/interpreter.py", line 570, in run_script >> > return console.interact(intro, local, script_file, quit, >> > show_script=show_script, raise_relax_error=raise_relax_error) >> > File "/usr/local/relax/prompt/interpreter.py", line 455, in >> > interact_script >> > exec_script(script_file, local) >> > File "/usr/local/relax/prompt/interpreter.py", line 329, in >> > exec_script >> > runpy.run_module(module, globals) >> > File >> > >> > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", >> > line 180, in run_module >> > fname, loader, pkg_name) >> > File >> > >> > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", >> > line 72, in _run_code >> > exec code in run_globals >> > File "/Users/b_romel/temp_relax/backup/relax_fit.py", line 87, in >> > >> > grid_search(inc=11) >> > File "/usr/local/relax/prompt/uf_objects.py", line 220, in __call__ >> > self._backend(*new_args, **uf_kargs) >> > File "/usr/local/relax/generic_fns/minimise.py", line 141, in >> > grid_search >> > grid_search(lower=lower, upper=upper, inc=inc, >> > constraints=constraints, >> > verbosity=verbosity) >> > File "/usr/local/relax/specific_fns/relax_fit.py", line 609, in >> > grid_search >> > self.minimise(min_algor='grid', lower=lower, upper=upper, inc=inc, >> > constraints=constraints, verbosity=verbosity, sim_index=sim_index) >> > File "/usr/local/relax/specific_fns/relax_fit.py", line 716, in >> > minimise >> > if constraints and not match('^[Gg]rid', min_algor): >> > File >> > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", >> > line 137, in match >> > return _compile(pattern, flags).match(string) >> > TypeError: bad argument type for built-in operation >> > >> > Regards, >> > >> > Romel >> > >> > On 1 July 2012 06:42, Edward d'Auvergne wrote: >> >> >> >> Hi Romel, >> >> >> >> The problem is that unfortunately the 'inv' model is simply not >> >> implemented yet. This is the model for the very old-school inversion >> >> recovery type R1 experiments whereby the magnetisation returns to the >> >> Boltzmann equilibrium. I'm guessing you should be using the 'exp' >> >> model instead. This is the standard 2 parameter exponential fit >> >> whereby the magnetisation goes to zero. This is the standard nowadays >> >> as it is considered far more accurate for the extraction of the rates >> >> (simply by having one less parameter to fit). >> >> >> >> If you have collected the old-school data, there is a relax branch >> >> created by Sébastien Morin for handling this experiment type. This is >> >> the 'inversion-recovery' branch located at >> >> http://svn.gna.org/viewcvs/relax/branches/inversion-recovery/. >> >> However this branch is not complete and will require someone willing >> >> to dive into C code to complete it (see >> >> http://www.mail-archive.com/relax-devel@gna.o
Re: relaxation curve fitting
Hi, This appears to be a unique bug! I would guess that it has something to do with the software versions in use - on most systems this code path works flawlessly. But I should be able to modify relax to handle this. Would you be able to please make a bug report? The link is https://gna.org/bugs/?func=additem&group=relax. If you could include a short description, the error message, and the output of 'relax --info', this would be of significant help. If possible, I would like to try to catch this in the relax test suite. The more information you provide the better - because if I can reproduce the problem on my computer, I can then fix the problem within minutes. Otherwise it takes much, much longer. Cheers, Edward On 30 June 2012 21:16, Romel Bobby wrote: > Hi Edward, > > I tried the 'exp' model and it gave me the very same error message (see > below). > > File "/usr/local/relax/multi/processor.py", line 480, in run > self.callback.init_master(self) > File "/usr/local/relax/multi/__init__.py", line 319, in > default_init_master > self.master.run() > File "/usr/local/relax/relax.py", line 183, in run > self.interpreter.run(self.script_file) > File "/usr/local/relax/prompt/interpreter.py", line 280, in run > return run_script(intro=self.__intro_string, local=locals(), > script_file=script_file, quit=self.__quit_flag, > show_script=self.__show_script, raise_relax_error=self.__raise_relax_error) > File "/usr/local/relax/prompt/interpreter.py", line 570, in run_script > return console.interact(intro, local, script_file, quit, > show_script=show_script, raise_relax_error=raise_relax_error) > File "/usr/local/relax/prompt/interpreter.py", line 455, in > interact_script > exec_script(script_file, local) > File "/usr/local/relax/prompt/interpreter.py", line 329, in exec_script > runpy.run_module(module, globals) > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", > line 180, in run_module > fname, loader, pkg_name) > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", > line 72, in _run_code > exec code in run_globals > File "/Users/b_romel/temp_relax/backup/relax_fit.py", line 87, in > grid_search(inc=11) > File "/usr/local/relax/prompt/uf_objects.py", line 220, in __call__ > self._backend(*new_args, **uf_kargs) > File "/usr/local/relax/generic_fns/minimise.py", line 141, in grid_search > grid_search(lower=lower, upper=upper, inc=inc, constraints=constraints, > verbosity=verbosity) > File "/usr/local/relax/specific_fns/relax_fit.py", line 609, in > grid_search > self.minimise(min_algor='grid', lower=lower, upper=upper, inc=inc, > constraints=constraints, verbosity=verbosity, sim_index=sim_index) > File "/usr/local/relax/specific_fns/relax_fit.py", line 716, in minimise > if constraints and not match('^[Gg]rid', min_algor): > File > "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/re.py", > line 137, in match > return _compile(pattern, flags).match(string) > TypeError: bad argument type for built-in operation > > Regards, > > Romel > > On 1 July 2012 06:42, Edward d'Auvergne wrote: >> >> Hi Romel, >> >> The problem is that unfortunately the 'inv' model is simply not >> implemented yet. This is the model for the very old-school inversion >> recovery type R1 experiments whereby the magnetisation returns to the >> Boltzmann equilibrium. I'm guessing you should be using the 'exp' >> model instead. This is the standard 2 parameter exponential fit >> whereby the magnetisation goes to zero. This is the standard nowadays >> as it is considered far more accurate for the extraction of the rates >> (simply by having one less parameter to fit). >> >> If you have collected the old-school data, there is a relax branch >> created by Sébastien Morin for handling this experiment type. This is >> the 'inversion-recovery' branch located at >> http://svn.gna.org/viewcvs/relax/branches/inversion-recovery/. >> However this branch is not complete and will require someone willing >> to dive into C code to complete it (see >> http://www.mail-archive.com/relax-devel@gna.org/msg03353.html). Note >> that if someone does know C, completing this will require about 50 >> lines of code changed in the maths_fns/relax_fit.c and >> maths_fns/exponential.c files (my rough guess anyway). It should be >> incredibly trivial for someone with C knowledge. Anyway, I hope some >> of this info helps. >> >> Regards, >> >> Edward >> >> >> >> On 30 June 2012 18:01, Romel Bobby wrote: >> > Dear all, >> > >> > I've been trying to use the curve fitting routine for R1 and R2 in relax >> > using the sample script relax_fit.py. I managed to read in the spectra >> > and >> > obtain a value for the uncertainty. However, once it gets to the point >> > of >> > performing a grid_search that's where it fails (see below). Has anyone >> > had a >> > similar problem? >> > >> > [?1034h
Re: relaxation curve fitting
Hi Romel, The problem is that unfortunately the 'inv' model is simply not implemented yet. This is the model for the very old-school inversion recovery type R1 experiments whereby the magnetisation returns to the Boltzmann equilibrium. I'm guessing you should be using the 'exp' model instead. This is the standard 2 parameter exponential fit whereby the magnetisation goes to zero. This is the standard nowadays as it is considered far more accurate for the extraction of the rates (simply by having one less parameter to fit). If you have collected the old-school data, there is a relax branch created by Sébastien Morin for handling this experiment type. This is the 'inversion-recovery' branch located at http://svn.gna.org/viewcvs/relax/branches/inversion-recovery/. However this branch is not complete and will require someone willing to dive into C code to complete it (see http://www.mail-archive.com/relax-devel@gna.org/msg03353.html). Note that if someone does know C, completing this will require about 50 lines of code changed in the maths_fns/relax_fit.c and maths_fns/exponential.c files (my rough guess anyway). It should be incredibly trivial for someone with C knowledge. Anyway, I hope some of this info helps. Regards, Edward On 30 June 2012 18:01, Romel Bobby wrote: > Dear all, > > I've been trying to use the curve fitting routine for R1 and R2 in relax > using the sample script relax_fit.py. I managed to read in the spectra and > obtain a value for the uncertainty. However, once it gets to the point of > performing a grid_search that's where it fails (see below). Has anyone had a > similar problem? > > [?1034h > > > relax 2.0.0 > > Molecular dynamics by NMR data analysis > > Copyright (C) 2001-2006 Edward d'Auvergne > Copyright (C) 2006-2012 the relax development team > > This is free software which you are welcome to modify and redistribute under > the conditions of the > GNU General Public License (GPL). This program, including all modules, is > licensed under the GPL > and comes with absolutely no warranty. For details type 'GPL' within the > relax prompt. > > Assistance in using the relax prompt and scripting interface can be accessed > by typing 'help' within > the prompt. > > Processor fabric: Uni-processor. > > script = 'relax_fit.py' > > ### > # > # > # Copyright (C) 2004-2012 Edward d'Auvergne > # > # > # > # This file is part of the program relax. > # > # > # > # relax is free software; you can redistribute it and/or modify > # > # it under the terms of the GNU General Public License as published by > # > # the Free Software Foundation; either version 2 of the License, or > # > # (at your option) any later version. > # > # > # > # relax is distributed in the hope that it will be useful, > # > # but WITHOUT ANY WARRANTY; without even the implied warranty of > # > # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the > # > # GNU General Public License for more details. > # > # > # > # You should have received a copy of the GNU General Public License > # > # along with relax; if not, write to the Free Software > # > # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > # > # > # > ### > > """Script for relaxation curve fitting.""" > > > # Create the 'rx' data pipe. > pipe.create('rx', 'relax_fit') > > # Load the backbone amide 15N spins from a PDB file. > structure.read_pdb('IL6_mf.pdb') > structure.load_spins(spin_id='@N') > > # Spectrum names. > names = [ > 'T1_1204.04', > 'T1_1504.04', > 'T1_1804.04', > 'T1_2104.04', > 'T1_2404.04', > 'T1_2754.04', > 'T1_304.04', > 'T1_304.040', > 'T1_54.04', > 'T1_604.04', > 'T1_604.040', > 'T1_904.04', > ] > > # Relaxation times (in seconds). > times = [ > 1.204, > 1.504, > 1.804, > 2.104, > 2.404, > 2.754, > 0.304, > 0.304, > 0.054, > 0.604, > 0.604, > 0.904 > ] > > # Loop over the spectra. > for i in xrange(len(names)): > # Load the peak intensities. > spectrum.read_intensities(file=names[i]+'.list', dir='', > spectrum_id=names[i], int_method='height') > > # Set the relaxation times. > relax_fit.relax_time(time=times[i], spectrum_id=names[i]) > > # Specify the duplicated spectra. > spectrum.replicated(spectrum_ids=['T1_304.04', 'T1_304.040']) > spectrum.replicated(spectrum_ids=['T1_604.04', 'T1_604.040']) > > # Peak intensity error analysis. > spectrum.error_analysis() > > # Deselect unresolved spins. > # deselect.read(file='unresolved', mol_name_col=1, res_num_col=2, > res_name_col=3, spin