Skip to content

Commit 300219e

Browse files
Update README.md
1 parent 92e055f commit 300219e

1 file changed

Lines changed: 90 additions & 8 deletions

File tree

README.md

Lines changed: 90 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,26 @@
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+
These features are still under development, remarks or suggestions are more than welcome.
12+
813
RawFileReader reading tool. Copyright © 2016 by Thermo Fisher Scientific, Inc. All rights reserved
914

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

18+
## Download
19+
20+
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).
21+
22+
You can find the ThermoRawFileParserGUI [here](https://github.com/compomics/ThermoRawFileParserGUI).
23+
1324
## Usage
1425
```
1526
mono ThermoRawFileParser.exe -i=/home/user/data_input/raw_file.raw -o=/home/user/data_input/output/ -f=0 -g -m=0
@@ -26,9 +37,8 @@ For running on Windows, omit `mono`. The optional parameters only work in the -o
2637

2738
```
2839
ThermoRawFileParser.exe --help
29-
usage is ThermoRawFileParser [subcommand] [option]
30-
subcommand is xic|query
31-
(use -option=value for the optional arguments):
40+
usage is ThermoRawFileParser.exe [subcommand] [options]
41+
optional subcommands are xic|query (use [subcommand] -h for more info]):
3242
-h, --help Prints out the options.
3343
--version Prints out the library version.
3444
-i, --input=VALUE The raw file input (Required). Specify this or an
@@ -74,11 +84,83 @@ ThermoRawFileParser.exe --help
7484

7585
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.
7686

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

83165
## Galaxy integration
84166

0 commit comments

Comments
 (0)