forked from vhernandez/jwsProcessor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
197 lines (134 loc) · 6.99 KB
/
README
File metadata and controls
197 lines (134 loc) · 6.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
jwsProcessor
A program to convert and process Jasco SpectraManager (JWS) files.
Copyright (C) 2007-2013 Víctor M. Hernández-Rocamora
Introduction
------------
jwsProcessor is a graphical tool that allows the conversion and processing of
JWS files from Jasco SpectraManager(R) software included with Jasco scientific
machines, like spectropolarimeters, FTIR machines, etc.
This software can convert JWS files to simple text files that can be imported
into any data analysis software. JWS files can be batch-processed subtracting
blank and applying smoothing.
Moreover this tool is specifically geared to the conversion and processing of
raw circular dichroism protein spectra. You can batch-process several spectra
subtracting blank, converting to molar ellipticity units and applying dilution
factors to the source files.
Results can be then saved into separated text files or into a single file, with
or without column headers.
Requirements
------------
- Python 2.x (2.6+ required): http://www.python.org
- numpy: http://numpy.scipy.org/
- scipy: http://www.scipy.org/
- matplotlib: http://matplotlib.sourceforge.net/
- glib/gobject/gtk : http://www.gtk.org
- pygtk/pygobject/pycairo : http://www.pygtk.org
- scons (for installation from source): http://www.scons.org
Installation of dependencies
----------------------------
** In Debian/Ubuntu you should install this packages:
$ apt-get install python-numpy python-scipy python-matplotlib scons
Python, pygtk and pygobject along with their dependencies are usually already
installed in a typical desktop installation of Debian and Ubuntu, if it is not
the case, consult your distribution documentation for which packages you should
install, though theoretically simply installing python-gtk2 should also install
all the other dependencies:
$ apt-get install python-gtk2
For other distribution consult your distribution documentation for which
packages you should install.
** In Windows you will need to download each of the indicated packages and
install in the appropriate order:
NOTE: the following links are built for 32-bit Windows versions. For 64-bit
Windows you'll have to check whether 64-bit packages are available).
NOTE: the following links are for Python 2.7, packages for older python versions
may also be available.
1. Download and install the latest GTK Runtime Environment (2.24 at the time of
writing) from:
http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.24/gtk+-bundle_2.24.10-20120208_win32.zip
2. Download and install Python 2.7 from:
http://www.python.org/ftp/python/2.7.5/python-2.7.5.msi
3. Download and install Numpy from:
http://sourceforge.net/projects/numpy/files/NumPy/1.7.1/numpy-1.7.1-win32-superpack-python2.7.exe/download
4. Download and install Scipy from:
http://sourceforge.net/projects/scipy/files/scipy/0.12.0/scipy-0.12.0-win32-superpack-python2.7.exe/download
5. Download and install pygtk/pygobject/pycairo from:
http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.24/pygtk-all-in-one-2.24.2.win32-py2.7.msi
6. Download and install matplotlib from:
https://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.3.0/matplotlib-1.3.0.win32-py2.7.exe
Installation
------------
First, make sure you have installed all the dependencies as indicated in
Installation of the dependencies.
** POSIX OSs (Linux FreeBSD, MacOS X)
1. From as source package:
Unpack the source package in a directory, Then go to the command line, and,
in the root directory of the uncompressed source files, type these commands:
$ scons build
$ sudo scons install
This will install to /usr/local, to install with a different prefix
$ scons install PREFIX=/path/to
If you install to /usr or /usr/local and are using GNOME, KDE or Xfce an
entry in the application menu should appear, but you can also run jwsprocessor
by typing:
$ jwsprocessor
Optionally you can run jwsprocessor directly from the uncompressed source
package.
First, from the root of the uncompressed source package run:
$ python setup.py build_mo
This step build the localised message catalog in the source directory,
so the program is properly translated. If you don't do this, the program
will be in English.
Then, run the jwsprocessor.py file in the bin/ directory.
** WINDOWS
Uncompress the files in any folder of your choice, for example in
'C:\Program files\jwsprocessor'. Look for the 'jwsprocessor.py' file in the
'bin' folder of the uncompressed files. Open it.
Usage
-----
jwsProcessor is a graphical tool, it will assist you into processing JWS files
in four steps.
First you add the files to be processed into a list, with the ability to preview
each file. In this list, you can also introduce dilution factors that will be
applied to each file.
Next, you choose the processing options (blank, smoothing, conversion to
molar ellipticity units, etc.).
Next, the files are processed according to your preferences.
Finally, you can save the results either in a single file or in separate files.
Information for developers and packagers
----------------------------------------
Two build systems are used in jwsprocessor. The python distutils script setup.py
and scons. The distutils script is used to create source and ready-to-run
packages. Ready-to-run packages are similar to the source package but it
contains the compiled gettext message catalog for localization, so it can be
readily deployed in any system by simply unpacking the package and runnint the
jwsprocessor.py file in 'bin/':
To create a source distribution package use:
$ python setup.py sdist
To create a ready-to-run package use:
$ python setup.py bdist_dumb
These two commands will create in dist/ two files:
- jwsProcessor.<version>.tar.gz
- jwsProcessor.<version>.ready_to_run.zip
Scons is used to install the software in any POSIX OS (Linux, BSDs, MacOS,
Solaris...). I used scons instead of python distutils because distutils is
not really prepared for the installation of files outside the python
module installation path, though it is really easier than scons.
That said, you should use scons if you plan to build rpm/deb packages from
the sources.
License Information
-------------------
This program is distributed under the terms of the GNU General PublicLicense
(see below) except for the buildtools/msgfmt.py file that is from the Python 2.5
source distribution which is released under the open source PSF license
(see http://www.python.org/download/releases/2.5.4/license/).
This program 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.
This program 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 this program (see LICENSE); if not consult
<http://www.gnu.org/licenses/gpl.html>.