Hi all.

I'm trying to import raw files using the RawDataImportModule. I do however have 
two problems:

1.
My files are being imported one at a time. If I do it through the raw data 
import menu item then MZmine processes 4 at a time. How can I make the import 
process multiple files at the same time?

2.
The raw files for import are not shown under "Tasks in progress...". How can I 
add them to the task list?

Thanks for any help,

Thomas


//Import raw data files
int counter = 0;
if (importrawfiles) {
final RawDataImportModule RDI = new RawDataImportModule();
          ParameterSet parameters = RDI.getParameterSetClass().newInstance();
          List<Task> tasksList = new ArrayList<Task>();

          SortedMap<Integer, MsRun> msrun = 
mzTabFile.getMetadata().getMsRunMap();
          File newFiles[] = new File[msrun.size()];

          for(Entry<Integer, MsRun> entry : msrun.entrySet()) {
                   File testFile = new 
File(entry.getValue().getLocation().getPath());
                   if(testFile.exists() && !testFile.isDirectory()) {
                   importedFiles++;
                   newFiles[counter] = new 
File(entry.getValue().getLocation().getPath());
                   }
                   counter++;
          }

          
parameters.getParameter(RawDataImportParameters.fileNames).setValue(newFiles);
          RDI.runModule(parameters, tasksList);

          for (Task t : tasksList) {
                   t.run();
          }

}
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Mzmine-devel mailing list
Mzmine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mzmine-devel

Reply via email to