Skip to content

Commit 4b0b059

Browse files
2 parents 0323980 + 9db2030 commit 4b0b059

1 file changed

Lines changed: 91 additions & 8 deletions

File tree

README.md

Lines changed: 91 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
# ThermoRawFileParser
22

3-
Wrapper around the .net (C#) ThermoFisher ThermoRawFileReader library for running on Linux with mono (works on Windows too). It takes a thermo RAW file as input and outputs a metadata file and the spectra in 3 possible formats
3+
Wrapper around the .net (C#) ThermoFisher ThermoRawFileReader library for running on Linux with mono (works on Windows too). It takes a thermo RAW file as input and outputs a metadata file and the spectra in 3 possible formats:
44
* MGF: MS2 and MS3 spectra
55
* mzML and indexed mzML: both MS1, MS2 and MS3 spectra
66
* Apache Parquet: under development
77

8+
As of version 1.2.0, 2 subcommands are available (see usage for examples):
9+
* query: returns one or more spectra in JSON PROXI by scan number(s)
10+
* xic: returns chromatogram data based on JSON filter input
11+
12+
These features are still under development, remarks or suggestions are more than welcome.
13+
814
RawFileReader reading tool. Copyright © 2016 by Thermo Fisher Scientific, Inc. All rights reserved
915

1016
## (Linux) Requirements
1117
[Mono](https://www.mono-project.com/download/stable/#download-lin) (install mono-complete if you encounter "assembly not found" errors).
1218

19+
## Download
20+
21+
Click [here](https://github.com/compomics/ThermoRawFileParser/releases) to go to the release page (with [release notes](https://github.com/compomics/ThermoRawFileParser/wiki/ReleaseNotes) starting from v1.1.7).
22+
23+
You can find the ThermoRawFileParserGUI [here](https://github.com/compomics/ThermoRawFileParserGUI).
24+
1325
## Usage
1426
```
1527
mono ThermoRawFileParser.exe -i=/home/user/data_input/raw_file.raw -o=/home/user/data_input/output/ -f=0 -g -m=0
@@ -26,9 +38,8 @@ For running on Windows, omit `mono`. The optional parameters only work in the -o
2638

2739
```
2840
ThermoRawFileParser.exe --help
29-
usage is ThermoRawFileParser [subcommand] [option]
30-
subcommand is xic|query
31-
(use -option=value for the optional arguments):
41+
usage is ThermoRawFileParser.exe [subcommand] [options]
42+
optional subcommands are xic|query (use [subcommand] -h for more info]):
3243
-h, --help Prints out the options.
3344
--version Prints out the library version.
3445
-i, --input=VALUE The raw file input (Required). Specify this or an
@@ -74,11 +85,83 @@ ThermoRawFileParser.exe --help
7485

7586
A (java) graphical user interface is also available [here](https://github.com/compomics/ThermoRawFileParserGUI) that enables the selection of an input RAW directory or one ore more RAW files.
7687

77-
## Download
78-
79-
Click [here](https://github.com/compomics/ThermoRawFileParser/releases) to go to the release page (with [release notes](https://github.com/compomics/ThermoRawFileParser/wiki/ReleaseNotes) starting from v1.1.7).
88+
### query subcommand
89+
Enables the retrieval spectra by (a) scan number(s) in [PROXI format](https://github.com/HUPO-PSI/proxi-schemas).
90+
```
91+
mono ThermoRawFileParser.exe query -i=/home/user/data_input/raw_file.raw -o=/home/user/output.json n="1-5, 20, 25-30"
92+
```
93+
```
94+
ThermoRawFileParser.exe query --help
95+
usage is:
96+
-h, --help Prints out the options.
97+
-i, --input=VALUE The raw file input (Required).
98+
-n, --scans=VALUE The scan numbers. e.g. "1-5, 20, 25-30"
99+
-b, --output_file=VALUE The output file. Specifying none writes the output
100+
file to the input file parent directory.
101+
-p, --noPeakPicking Don't use the peak picking provided by the native
102+
Thermo library. By default peak picking is
103+
enabled.
104+
-s, --stdout Pipes the output into standard output. Logging is
105+
being turned off
106+
```
107+
### xic subcommand
108+
Return one or more chromatograms based on query JSON input.
109+
```
110+
mono ThermoRawFileParser.exe xic -i=/home/user/data_input/raw_file.raw -j=/home/user/xic_input.json
111+
```
112+
```
113+
ThermoRawFileParser.exe query --help
114+
usage is:
115+
-h, --help Prints out the options.
116+
-i, --input=VALUE The raw file input (Required). Specify this or an
117+
input directory -d
118+
-d, --input_directory=VALUE
119+
The directory containing the raw files (Required).
120+
Specify this or an input file -i.
121+
-j, --json=VALUE The json input file (Required).
122+
-p, --print_example Show a json input file example.
123+
-o, --output=VALUE The output directory. If not specified, the output
124+
is written to the input directory
125+
-b, --base64 Encodes the content of the xic vectors as base 64
126+
encoded string.
127+
-s, --stdout Pipes the output into standard output. Logging is
128+
being turned off.
129+
```
130+
Provide one of the following filters:
131+
* M/Z and tolerance (tolerance unit optional, default `ppm`)
132+
* M/Z start and end
133+
* sequence and tolerance (tolerance unit optional, default `ppm`)
134+
135+
with optional parameters start en end retention time and filter (thermo filter string, defaults to `ms`)
136+
137+
An example input JSON file:
138+
```
139+
[
140+
{
141+
"mz":488.5384,
142+
"tolerance":10,
143+
"tolerance_unit":"ppm"
144+
},
145+
{
146+
"mz":575.2413,
147+
"tolerance":10,
148+
"rt_start":630,
149+
"rt_end":660,
150+
"scan_filter":"ms2"
151+
},
152+
{
153+
"mz_start":749.7860,
154+
"mz_end" : 750.4,
155+
"rt_start":630,
156+
"rt_end":660
157+
},
158+
{
159+
"sequence":"TRANNEL",
160+
"tolerance":10
161+
}
162+
]
80163
81-
You can find the ThermoRawFileParserGUI [here](https://github.com/compomics/ThermoRawFileParserGUI).
164+
```
82165

83166
## Galaxy integration
84167

0 commit comments

Comments
 (0)