|
@@ -1,188 +0,0 @@
|
|
|
-function startImport(LABKEY,analysis,console,row){
|
|
|
- console.log('startInsert');
|
|
|
- let jobRow=new Object();
|
|
|
-
|
|
|
-//get the script by name
|
|
|
- let selectRows=new Object();
|
|
|
- selectRows.containerPath='Analysis/Run';
|
|
|
- selectRows.schemaName='lists';
|
|
|
- selectRows.queryName='scripts';
|
|
|
- selectRows.filterArray=[LABKEY.Filter.create('name','importXML.py')];
|
|
|
- let data=LABKEY.Query.selectRows(selectRows);
|
|
|
- console.log('Scripts['+data.rows.length+']: '+data.rows[0].Key);
|
|
|
- jobRow.script=data.rows[0].Key;
|
|
|
-
|
|
|
-//get the parameterFile by name
|
|
|
- let sr1=new Object();
|
|
|
- sr1.containerPath='Analysis/Run';
|
|
|
- sr1.schemaName='lists';
|
|
|
- sr1.queryName='parameterFiles';
|
|
|
- sr1.filterArray=[LABKEY.Filter.create('parameterFile','importXML.json')];
|
|
|
- let dataP=LABKEY.Query.selectRows(sr1);
|
|
|
- console.log('Parameter file['+dataP.rows.length+']: '+dataP.rows[0].Key);
|
|
|
- jobRow.parameterFile=dataP.rows[0].Key;
|
|
|
-
|
|
|
- jobRow.runType='python';
|
|
|
- jobRow.server='vangogh.fmf.uni-lj.si';
|
|
|
- //jobRow.cpuList=undefined;
|
|
|
- jobRow.parameterOverload="importXML.json:key="+row.Key+";importXML.json:seqNumOffset="+row.seqNumOffset;
|
|
|
- analysis.startRun(LABKEY,console,jobRow);
|
|
|
-
|
|
|
-}
|
|
|
-
|
|
|
-exports.startImport=startImport;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
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