Mercurial > repos > fgiacomoni > hr2
annotate hr2_manager.pl @ 3:78afd7f439f3 draft default tip
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
author | fgiacomoni |
---|---|
date | Wed, 15 Feb 2023 15:57:49 +0000 |
parents | 23970530a518 |
children |
rev | line source |
---|---|
0 | 1 #!perl |
2 | |
3 ## script : hr2_manager.pl | |
4 ## VERSIONS : | |
5 # - 01/03/2019 : Fix P issue, permit more flexible atom settings and add requirements for conda auto managing. | |
1
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
6 # - 09/12/2022 : Fix "Additional atomes not taken into account" - Ticket issue #7 |
3
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
7 # - 15/02/2023 : New feature - optionnal managing max atom value |
0 | 8 |
9 #============================================================================= | |
10 # Included modules and versions | |
11 #============================================================================= | |
12 ## Perl modules | |
13 use strict ; | |
14 use warnings ; | |
15 use Carp qw (cluck croak carp) ; | |
16 | |
17 use Data::Dumper ; | |
18 use Getopt::Long ; | |
19 use POSIX ; | |
20 use FindBin ; ## Allows you to locate the directory of original perl script | |
21 | |
22 ## Dedicate Perl Modules (Home made...) | |
23 use lib $FindBin::Bin ; | |
24 my $binPath = $FindBin::Bin ; | |
25 use lib::hr qw( :ALL ) ; | |
26 ## PFEM Perl Modules | |
27 use lib::conf qw( :ALL ) ; | |
28 use lib::csv qw( :ALL ) ; | |
29 | |
30 ## Initialized values | |
31 use vars qw(%parametre); | |
32 my $help = undef ; | |
33 my ( $input_file, $line_header, $col_id, $col_mass ) = ( undef, undef, undef, undef ) ; # manage input option file of masses | |
34 my ( $mass ) = ( undef ) ; # manage input option masses list | |
35 my ( $tolerance, $mode, $charge, $has_golden_rules, $atomes, $atomes_basic ) = ( undef, undef, undef, undef, undef, undef ) ; # manage params | |
3
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
36 my ( $C13_max_value, $C12_max_value, $H_max_value, $N_max_value, $O_max_value, $P_max_value, $S_max_value, $F_max_value, $Cl_max_value, $K_max_value, $Br_max_value, $Na_max_value) = (undef, undef,undef,undef,undef,undef,undef,undef,undef,undef,undef,undef) ; |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
37 my ($customAtomValues) = (undef) ; |
0 | 38 my ( $output_csv, $output_html ) = ( undef, undef) ; # manage ouputs |
39 my $verbose = 2 ; | |
40 | |
41 #============================================================================= | |
42 # Manage EXCEPTIONS | |
43 #============================================================================= | |
44 &GetOptions ( "h" => \$help, # HELP | |
45 "input:s" => \$input_file, | |
46 "colId:i" => \$col_id, | |
47 "nbHeader:i" => \$line_header, | |
48 "colmass:i" => \$col_mass, | |
49 "masse:s" => \$mass, | |
50 "tolerance:f" => \$tolerance, | |
51 "mode:s" => \$mode, | |
52 "charge:i" => \$charge, | |
53 "regleOr:s" => \$has_golden_rules, | |
1
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
54 "atomes_basic:s"=> \$atomes_basic, # [basic atoms like CNOHP] |
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
55 "atomes_sup:s" => \$atomes, |
3
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
56 #"customAtomValues:s"=> \$customAtomValues, |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
57 |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
58 "C12_max_value:i" => \$C12_max_value, # OPTIONNAL |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
59 "C13_max_value:i" => \$C13_max_value, |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
60 "H_max_value:i" => \$H_max_value, |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
61 "N_max_value:i" => \$N_max_value, |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
62 "O_max_value:i" => \$O_max_value, |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
63 "P_max_value:i" => \$P_max_value, |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
64 "S_max_value:i" => \$S_max_value, |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
65 "F_max_value:i" => \$F_max_value, |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
66 "Cl_max_value:i" => \$Cl_max_value, |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
67 "K_max_value:i" => \$K_max_value, |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
68 "Br_max_value:i" => \$Br_max_value, |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
69 "Na_max_value:i" => \$Na_max_value, |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
70 |
0 | 71 "output1:s" => \$output_csv, |
72 "outputView:s" => \$output_html, | |
73 "verbose:i" => \$verbose, | |
74 ) ; | |
75 | |
76 #============================================================================= | |
77 # EXCEPTIONS | |
78 #============================================================================= | |
79 $help and &help ; | |
80 | |
81 #============================================================================= | |
82 # MAIN SCRIPT | |
83 #============================================================================= | |
3
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
84 |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
85 #print "CUSTOM C12: $C12_max_value\n" if (defined $C12_max_value) ; |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
86 #print "CUSTOM H: $H_max_value if (defined $H_max_value) ; |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
87 #print "CUSTOM N: $N_max_value if (defined $N_max_value) ; |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
88 #print "CUSTOM O: $O_max_value if (defined $O_max_value) ; |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
89 #print "CUSTOM P: $P_max_value if (defined $P_max_value) ; |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
90 #print "CUSTOM S: $S_max_value if (defined $S_max_value) ; |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
91 #print "CUSTOM F: $F_max_value if (defined $F_max_value) ; |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
92 #print "CUSTOM Cl: $Cl_max_value if (defined $Cl_max_value) ; |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
93 #print "CUSTOM K: $K_max_value if (defined $K_max_value) ; |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
94 #print "CUSTOM Br: $Br_max_value if (defined $Br_max_value) ; |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
95 #print "CUSTOM Na: $Na_max_value if (defined $Na_max_value) ; |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
96 #print "CUSTOM C13: $C13_max_value if (defined $C13_max_value) ; |
0 | 97 |
98 ## -------------- Conf file and verbose ------------------------ : | |
99 my ( $CONF ) = ( undef ) ; ## verbose level is 3 for debugg | |
100 my $time_start = time ; | |
101 | |
102 foreach my $conf ( <$binPath/*.cfg> ) { | |
103 my $oConf = lib::conf::new() ; | |
104 $CONF = $oConf->as_conf($conf) ; | |
105 } | |
106 ## --------------- Global parameters ---------------- : | |
107 my ( $ids, $masses, $hr_cmds, $results, $parsed_results ) = ( undef, undef, undef, undef, undef ) ; | |
108 my $complete_rows = undef ; | |
109 my ($hr_atoms_list, $hr_atoms_and_ranges, $set_tol, ) = (undef, undef, undef, ) ; | |
110 | |
111 ## Check and manage params | |
112 my $ohr = lib::hr->new() ; | |
113 | |
114 ## set tolerance | |
115 $set_tol = $ohr->manage_tolerance( \$tolerance, \$CONF->{'tolerance'} ) ; | |
116 | |
117 ## check HR exe envt : | |
118 my $hr_check = $ohr->check_hr_exe(\$CONF->{'HR2_EXE'}, \$CONF->{'HR2_VERSION'}) ; | |
119 if (!defined $hr_check ) { croak "No hr exe available (wrong path) or wrong version will be used -- end of script\n" ; } | |
120 | |
121 ## manage atoms and their ranges | |
122 #$hr_atoms_list = $ohr->manage_atoms(\$atomes, \$CONF->{'DEFAULT_ATOMS'}) ; ## DEPRECATED | |
123 | |
124 # manage atoms and their ranges with a hash structure | |
125 | |
3
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
126 my $AtomsFullConf = $ohr->manageAtomsConf($CONF, $C12_max_value, $C13_max_value, $H_max_value, $N_max_value, $O_max_value, $P_max_value, $S_max_value, $F_max_value, $Cl_max_value, $K_max_value, $Br_max_value, $Na_max_value ) ; |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
127 |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
128 my $atomsCurrentConf = $ohr->manage_atoms_and_ranges($AtomsFullConf, $atomes_basic, $atomes) ; |
0 | 129 |
130 ## Parsing input file with masses/ids or unik mass : | |
131 ## manage only one mass | |
132 if ( ( defined $mass ) and ( $mass ne "" ) and ( $mass > 0 ) ) { | |
133 $ids = ['mass_01'] ; | |
134 $masses = [$mass] ; | |
135 | |
136 } ## END IF | |
137 ## manage csv file containing list of masses | |
138 elsif ( ( defined $input_file ) and ( $input_file ne "" ) and ( -e $input_file ) ) { | |
139 | |
140 ## parse all csv for later : output csv build | |
141 my $ocsv_input = lib::csv->new() ; | |
142 my $complete_csv = $ocsv_input->get_csv_object( "\t" ) ; | |
143 $complete_rows = $ocsv_input->parse_csv_object($complete_csv, \$input_file) ; | |
144 | |
145 ## parse csv ids and masses | |
146 my $is_header = undef ; | |
147 my $ocsv = lib::csv->new() ; | |
148 my $csv = $ocsv->get_csv_object( "\t" ) ; | |
149 if ( ( defined $line_header ) and ( $line_header > 0 ) ) { $is_header = 'yes' ; } else{ $is_header = 'no' ; } | |
150 $masses = $ocsv->get_value_from_csv_multi_header( $csv, $input_file, $col_mass, $is_header, $line_header ) ; ## retrieve mz values on csv | |
151 $ids = $ocsv->get_value_from_csv_multi_header( $csv, $input_file, $col_id, $is_header, $line_header ) ; ## retrieve ids values on csv | |
152 | |
153 } | |
154 else { | |
155 croak "Can't work with HR2 : missing input file or mass (list of masses, ids)\n" ; | |
156 } ## end ELSE | |
157 | |
158 ## check using golden rules | |
159 if ( $has_golden_rules eq 'NO') { $has_golden_rules = undef ; } | |
160 | |
161 ## ---------------- launch queries -------------------- : | |
162 | |
163 ## prepare cmd | |
164 foreach my $mz (@{ $masses }) { | |
165 ## computes mass | |
166 my $ohr_mode = lib::hr->new() ; | |
167 my ( $exact_mass ) = $ohr_mode->manage_mode( \$mode, \$charge, \$CONF->{'electron'}, \$CONF->{'proton'}, \$mz ) ; | |
3
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
168 print "Current MZ $$exact_mass send to HR\n" if $verbose == 3 ; |
0 | 169 ## build exe line |
170 my $ohr_exe = lib::hr->new() ; | |
171 my $hr_cmd = $ohr_exe->config_hr_exe( \$CONF->{'HR2_EXE'}, \$tolerance, $exact_mass, \$has_golden_rules, \$atomsCurrentConf ) ; | |
3
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
172 print "\t$$hr_cmd\n" if $verbose == 3 ; |
0 | 173 push(@{$hr_cmds}, $$hr_cmd) ; |
174 } | |
175 | |
176 ## MultiThreading execution of Hr : | |
177 my $threads = lib::hr->new() ; | |
178 my $hr_object = lib::hr->new() ; | |
179 if ( $hr_object->can('hr_exe') ) { | |
180 my $method = $hr_object->can('hr_exe') ; | |
181 $results = $threads->threading_hr_exe( $method, $hr_cmds) ; | |
182 | |
183 } | |
184 | |
185 ## MultiThreading parsing of Hr outputs : | |
186 my $hrres_object = lib::hr->new() ; | |
187 if ( $hrres_object->can('hr_out_parser') ) { | |
188 my $method = $hr_object->can('hr_out_parser') ; | |
189 if ( defined $results ) { $parsed_results = $threads->threading_hr_exe( $method, $results ) ; } | |
190 } | |
191 | |
192 ## -------------- Produce HTML/CSV output ------------------ : | |
193 my $search_condition = 'Mode used: '.$mode.' / Charge: +'.$charge.' / Mass tolerance: '.$$set_tol.' / Composition: '.$atomsCurrentConf ; | |
194 ## Uses N mz and theirs entries per page (see config file). | |
195 # how many pages you need with your input mz list? | |
196 my $nb_pages_for_html_out = ceil( scalar(@{$masses} ) / $CONF->{HTML_ENTRIES_PER_PAGE} ) ; | |
197 | |
198 if ( ( defined $output_html ) and ( defined $parsed_results ) ) { | |
199 my $oHtml = lib::hr::new() ; | |
200 my ($tbody_object) = $oHtml->set_html_tbody_object( $nb_pages_for_html_out, $CONF->{HTML_ENTRIES_PER_PAGE} ) ; | |
201 ($tbody_object) = $oHtml->add_mz_to_tbody_object($tbody_object, $CONF->{HTML_ENTRIES_PER_PAGE}, $masses, $ids, $parsed_results ) ; | |
202 ($tbody_object) = $oHtml->add_entries_to_tbody_object($tbody_object, $parsed_results) ; | |
1
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
203 |
2
23970530a518
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
1
diff
changeset
|
204 #print Dumper $tbody_object ; |
1
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
205 |
0 | 206 my $html_file = $binPath.'/'.$CONF->{'HTML_TEMPLATE'} ; |
207 my $output = $oHtml->write_html_skel(\$output_html, $tbody_object, $nb_pages_for_html_out, $search_condition, $html_file, $CONF->{'JS_GALAXY_PATH'}, $CONF->{'CSS_GALAXY_PATH'}) ; | |
208 | |
209 } ## END IF | |
210 else { | |
211 croak "Can't create a HTML output for HMDB : no result found or your output file is not defined\n" ; | |
212 } | |
213 | |
214 if ( ( defined $output_csv ) and ( defined $parsed_results ) ) { | |
215 # produce a csv based on METLIN format | |
216 my $ocsv = lib::hr::new() ; | |
217 if (defined $input_file) { | |
2
23970530a518
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
1
diff
changeset
|
218 my $hr_matrix = undef ; |
23970530a518
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
1
diff
changeset
|
219 if ( ( defined $line_header ) and ( $line_header == 1 ) ) { $hr_matrix = $ocsv->set_hr_matrix_object('hr2', $masses, $parsed_results ) ; } |
23970530a518
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
1
diff
changeset
|
220 elsif ( ( defined $line_header ) and ( $line_header == 0 ) ) { $hr_matrix = $ocsv->set_hr_matrix_object(undef, $masses, $parsed_results ) ; } |
23970530a518
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
1
diff
changeset
|
221 |
23970530a518
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
1
diff
changeset
|
222 $hr_matrix = $ocsv->add_hr_matrix_to_input_matrix($complete_rows, $hr_matrix) ; |
23970530a518
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
1
diff
changeset
|
223 $ocsv->write_csv_skel(\$output_csv, $hr_matrix) ; |
0 | 224 } |
225 elsif (defined $mass) { | |
226 $ocsv->write_csv_one_mass($masses, $ids, $parsed_results, $output_csv) ; | |
227 } | |
228 } ## END IF | |
229 else { | |
230 # croak "Can't create a tabular output for HR2 : no result found or your output file is not defined\n" ; | |
231 } | |
232 | |
233 | |
234 | |
235 ### VERBOSE OUTPUTs | |
236 if ( $verbose == 3 ) { | |
3
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
237 print "\n\n-- Conf file contains :\n" ; |
0 | 238 print Dumper $CONF ; |
239 print "-- Atoms input list :\n" ; | |
240 print Dumper $atomes_basic ; | |
241 print "-- Suppl. atoms input list :\n" ; | |
242 print Dumper $atomes ; | |
243 print "-- HR envt ready :\n" ; | |
244 print Dumper $hr_check ; | |
245 print "-- Atoms and ranges :\n" ; | |
246 print Dumper $atomsCurrentConf ; | |
247 print "-- Tolerance :\n" ; | |
248 print Dumper $set_tol ; | |
249 print "-- Complete input file :\n" ; | |
250 print Dumper $complete_rows ; | |
251 print "-- Inputs initiales masses :\n" ; | |
252 print Dumper $masses ; | |
253 print "-- Inputs initiales ids :\n" ; | |
254 print Dumper $ids ; | |
255 print "-- Hr_Cmds :\n" ; | |
256 print Dumper $hr_cmds ; | |
2
23970530a518
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
1
diff
changeset
|
257 # print "-- Hr_Results :\n" ; |
0 | 258 # print Dumper $results ; |
2
23970530a518
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
1
diff
changeset
|
259 # print "-- Hr_parsed Results :\n" ; |
23970530a518
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
1
diff
changeset
|
260 # print Dumper $parsed_results ; |
0 | 261 |
262 my $nb_results = scalar (@{$results}) ; | |
263 print "-- Hr_Results return : $nb_results\n" ; | |
264 } | |
265 | |
266 my $time_end = time ; | |
267 my $seconds = $time_end-$time_start ; | |
268 print "\n------ Time used in threaded mode by 6 : $seconds seconds --------\n\n" ; | |
269 | |
270 | |
271 | |
272 | |
273 | |
274 | |
275 #==================================================================================== | |
276 # Help subroutine called with -h option | |
277 # number of arguments : 0 | |
278 # Argument(s) : | |
279 # Return : 1 | |
280 #==================================================================================== | |
281 sub help { | |
282 print STDERR " | |
283 hr2_manager.pl | |
284 | |
285 # hr2_manager is a script to elucide chemical formula by their accurate masses. The HiRes program is integrate in this package | |
286 # Input : a accurate mass or a file of masses | |
1
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
287 # Authors : Lain Pavot, Marion Landi and Franck Giacomoni |
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
288 # Email : franck.giacomoni\@inrae.fr |
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
289 # Version : 1.1.2 |
0 | 290 # Created : 01/12/2011 |
1
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
291 # Last Update : 06/12/2022 |
0 | 292 USAGE : |
293 hr2_manager.pl -h or | |
294 hr2_manager.pl -input [cvs file of masses] -colId [int] -colmass [int] -nbHeader [int] -tolerance [float] -mode [positive, neutral or negative] -charge [int] -regleOr [yes or no] -atome [P, S, F, Cl, K, B, A, 1 ] -output1 [csv file] -outputView [html file] | |
1
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
295 hr2_manager.pl -masse [double] -tolerance [float] -mode [positive, neutral or negative] -charge [int] -regleOr [yes or no] -atomes_basic [C, N, O, P, H ] -atomes_sup [S, F, Cl, K, B, A, 1 ] -output1 [csv file] -outputView [html file] |
0 | 296 " ; |
297 exit(1); | |
298 } | |
299 | |
300 ## END of script - F Giacomoni | |
301 | |
302 __END__ | |
303 | |
304 =head1 NAME | |
305 | |
306 hr2_manager.pl -- script for launch / manage hr2 binary | |
307 | |
308 =head1 USAGE | |
309 | |
310 hr2_manager.pl -h or | |
1
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
311 hr2_manager.pl -input [cvs file of masses] -colId [int] -colmass [int] -nbHeader [int] -tolerance [float] -mode [positive, neutral or negative] -charge [int] -regleOr [yes or no] -atomes_basic [C, N, O, P, H ] -atomes_sup [S, F, Cl, K, B, A, 1 ] -output1 [csv file] -outputView [html file] |
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
312 hr2_manager.pl -masse [double] -tolerance [float] -mode [positive, neutral or negative] -charge [int] -regleOr [yes or no] -atomes_basic [C, N, O, P, H ] -atomes_sup [S, F, Cl, K, B, A, 1 ] -output1 [csv file] -outputView [html file] |
0 | 313 |
314 =head1 SYNOPSIS | |
315 | |
316 This script manages hr2 binary which elucids raw formula with exact masses. | |
317 | |
318 =head1 DESCRIPTION | |
319 | |
320 This main program is a module to elucidate chemical formula with HiRes program. Source is available on Fiehn lab web. | |
321 | |
322 =over 4 | |
323 | |
324 =item B<function01> | |
325 | |
326 =item B<function02> | |
327 | |
328 =back | |
329 | |
330 =head1 AUTHOR | |
331 | |
1
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
332 Franck Giacomoni E<lt>franck.giacomoni@inrae.frE<gt> |
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
333 Marion Landi E<lt>marion.landi@inrae.frE<gt> |
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
334 Lain Pavot E<lt>lain.pavot@inrae.frE<gt> |
0 | 335 |
336 =head1 LICENSE | |
337 | |
338 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. | |
339 | |
340 =head1 VERSION | |
341 | |
342 version 1 : 18/07/2012 | |
343 | |
344 version 2 : 02/10/2013 | |
345 | |
346 version 3 : 20/02/2014 | |
347 | |
348 version 4 : 01/03/2019 | |
349 | |
1
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
350 version 5 : 09/12/2022 |
e2cbcf6fa22e
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
0
diff
changeset
|
351 |
3
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
352 version 6 : 15/02/2023 |
78afd7f439f3
master branch Updating with tag :CI_COMMIT_TAG - - Fxx
fgiacomoni
parents:
2
diff
changeset
|
353 |
0 | 354 =cut |