bin/convert_visit.rb in metamri-0.2.22 vs bin/convert_visit.rb in metamri-0.2.24
- old
+ new
@@ -40,10 +40,12 @@
v = VisitRawDataDirectory.new(raw_directory, scan_procedure_codename)
puts "+++ Converting #{v.visit_directory} as part of #{v.scan_procedure_name} +++"
output_directory = output_directory ||= v.default_preprocess_directory
begin
- default_options = {:ignore_patterns => [/vipr/,/ge_physios/,/raw$/,/pfiles/,/Processed-Images/,/900$/,/901$/,/999$/,/\/01300\./,/\/01301\./,/\/01001\./,/\/01002\./,/\/01000\./,/\/00600\./]} # does not like "raw" because in dir path
+ ## default_options = {:ignore_patterns => [/vipr/,/ge_physios/,/raw$/,/pfiles/,/Processed-Images/,/900$/,/901$/,/999$/,/\/01300\./,/\/01301\./,/\/01001\./,/\/01002\./,/\/01000\./,/\/00600\./]} # does not like "raw" because in dir path
+ ## new flair has numbers in name and should not be skipped - removing
+ default_options = {:ignore_patterns => [/vipr/,/ge_physios/,/raw$/,/pfiles/,/Processed-Images/]} # does not like "raw" because in dir path
#options = default_options.merge(options)
v.scan(default_options)
v.to_nifti!(output_directory)
rescue Exception => e
puts "There was a problem scanning a dataset in #{v.visit_directory}... skipping."