#490 closed (fixed)
Converter from mzData to MGF
Reported by: | Fredrik Levander | Owned by: | Fredrik Levander |
---|---|---|---|
Milestone: | Proteios SE 2.5 | Keywords: | |
Cc: |
Change History (3)
comment:1 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 15 years ago by
comment:3 Changed 14 years ago by
(In [3379]) Refs #591. Refs #471. Refs #490. First version of support for performing OMSSA search for input mzData files by using data converted to MGF (Mascot Generic Format):
- OMSSA search properties template file conf/omssa.properties.in
in client/servlet/ updated with new parameters
omssa.web.convert.mzdata_to_mgf
and omssa.local.convert.mzdata_to_mgf
,
indicating if mzData data converted to MGF should be used for
OMSSA search. Valid values are "true
" and "false
", although
the software may be lenient and accept other alternatives.
- Class/file action/omssa/SearchOMSSA.java in client/servlet/
updated:
- New private static constant
Job.ExecutionTime ESTIMATED_EXECUTION_TIME
added,
set to Job.ExecutionTime.SHORT
.
- Protected method
void runMe()
updated by obtaining the values
of new configuration parameters omssa.web.convert.mzdata_to_mgf
and omssa.local.convert.mzdata_to_mgf
from configuration file
omssa.properties
, and the relevant one is used as value for
new variable Boolean convertMzDataToMgfFlag
.
If input spectrum file should be converted before OMSSA search,
a conversion job is created, if the needed converted file does
not already exist. If a conversion job is created, it is set as
blocker for the created search job. The value of variable
Boolean convertMzDataToMgfFlag
is transferred to the created
search job via job parameters.
- New private method
boolean convertedMzDataToMgfFileExists(DbControl dc, File spectrumFile)
added. It calls new private method
File fetchConvertedMzDataToMgfFile(DbControl dc, File spectrumFile)
to check if a converted mzData to MGF file exists.
- New private method
File fetchConvertedMzDataToMgfFile(DbControl dc, File spectrumFile)
added. It fetches the converted mzData to MGF file.
- New private method
Job createMzDataToMgfConvertJob(DbControl dc, File spectrumFile)
added. It creates an mzData file to MGF file conversion job.
The conversion job is set to the same estimated execution time
ESTIMATED_EXECUTION_TIME
as the search job.
- Class/file plugins/SearchOMSSAPlugin.java in plugin/ updated:
- Private method
void execute(Request request, Response response, ProgressReporter progress)
updated by obtaining the value of variable
Boolean convertMzDataToMgfFlag
from job parameters.
The value is transferred to private methods
void omssaSearchViaWebInterface(Request request, ...)
and
void omssaSearchLocal(Request request, ...)
via new arguments.
- Private method
void omssaSearchViaWebInterface(Request request, ...)
updated
with new argument Boolean convertMzDataToMgfFlag
.
If mzData data converted to MGF should be used for search,
the spectrum file is obtained by calling new private method
File fetchConvertedMzDataToMgfFile(DbControl dc, File spectrumFile)
,
and a note reporting that converted data is used for search is
added to the job message string.
- Private method
void omssaSearchLocal(Request request, ...)
updated
with new argument Boolean convertMzDataToMgfFlag
. If mzData data
converted to MGF should be used for search, the spectrum file is
obtained by calling new private method
File fetchConvertedMzDataToMgfFile(DbControl dc, File spectrumFile)
,
and a note reporting that converted data is used for search is
added to the job message string. When spectrum file data is copied
to a temporary local file to be used for the OMSSA search, the file
is given the same name as the original input spectrum file, even
if converted data from another file is copied.
- New private method
File fetchConvertedMzDataToMgfFile(DbControl dc, File spectrumFile)
added. It fetches the converted mzData to MGF file.
(In [2937]) Fixes #490. Added converter from mzData to MGF. It will currently only work with MSMS files.