comparison wsdl_hmdb.pl @ 22:453fbe98925a draft

" master branch Updating with tag :CI_COMMIT_TAG - - Fxx"
author fgiacomoni
date Fri, 20 Nov 2020 17:29:18 +0000
parents 63ba1cb240b7
children 2d8a310e86ce
comparison
equal deleted inserted replaced
21:63ba1cb240b7 22:453fbe98925a
142 142
143 my $cluster = 1 ; 143 my $cluster = 1 ;
144 foreach my $mzs ( @{$submasses} ) { 144 foreach my $mzs ( @{$submasses} ) {
145 # print Dumper $mzs ; 145 # print Dumper $mzs ;
146 my $result = undef ; 146 my $result = undef ;
147 my $cleanedResult = undef ;
147 148
148 my ( $hmdb_masses, $nb_masses_to_submit ) = $oHmdb->prepare_multi_masses_query($mzs) ; 149 my ( $hmdb_masses, $nb_masses_to_submit ) = $oHmdb->prepare_multi_masses_query($mzs) ;
149 my ($hmdb_adducts, $nb_selected_adducts) = $oHmdb->prepareAdductListFormat($adductType) ; 150 my ($hmdb_adducts, $nb_selected_adducts) = $oHmdb->prepareAdductListFormat($adductType) ;
150 151
151 print "\n\tSubmission of m/z cluster ".sprintf '%04s',$cluster."" if ($VERBOSE>1) ; 152 print "\n\tSubmission of m/z cluster ".sprintf '%04s',$cluster."" if ($VERBOSE>1) ;
155 156
156 # print Dumper $hmdb_pages ; 157 # print Dumper $hmdb_pages ;
157 158
158 sleep(1) ; 159 sleep(1) ;
159 160
160 ($result) = $oHmdb->parse_hmdb_csv_results($hmdb_pages, $mzs, $max_query) ; ## hash format result 161 ## hard modification with $max_query fixed at 1000 !!! Need to be refactoring
161 ## This previous step return results with cutoff on the number of entries returned ! 162 ## Cutof will be done in next method after URI check
162 $results = [ @$results, @$result ] ; 163 ($result) = $oHmdb->parse_hmdb_csv_results($hmdb_pages, $mzs, 1000) ; ## hash format result
164
165 ## This previous step return results with cutoff on the number of entries returned !
166
167 ## clean/max result by testing each HMDB_ID page in HMDB
168 ($cleanedResult) = $oHmdb->checkHmdbUrlEntries($CONF->{'HMDB_METABOCARD_URL'}, $result, $max_query ) ;
169
170 $results = [ @$results, @$cleanedResult ] ;
163 171
164 # sleep(1) ; 172 # sleep(1) ;
165 $cluster ++ ; 173 $cluster ++ ;
166 } 174 }
167 175