public QueryResult<Job> queue(String studyStr, String jobName, String description, String executable, Job.Type type, Map<String, String> params, List<File> input, List<File> output, File outDir, Map<String, Object> attributes, String token) throws CatalogException { Job job = new Job(jobName, null, executable, type, input, output, outDir, params, -1) .setDescription(description) .setToolId("variant_index") .setAttributes(attributes); return create(studyStr, job, QueryOptions.empty(), token); }
job.setParams(ParamUtils.defaultObject(job.getParams(), HashMap::new)); job.setResourceManagerAttributes(ParamUtils.defaultObject(job.getResourceManagerAttributes(), HashMap::new)); job.setAttributes(ParamUtils.defaultObject(job.getAttributes(), HashMap::new)); job.setUserId(userId); job.setRelease(catalogManager.getStudyManager().getCurrentRelease(study, userId));