Search in sources :

Example 6 with GridssConfiguration

use of au.edu.wehi.idsv.configuration.GridssConfiguration in project gridss by PapenfussLab.

the class MultipleSamFileCommandLineProgram method getContext.

public ProcessingContext getContext() {
    if (processContext == null) {
        GridssConfiguration config;
        try {
            config = new GridssConfiguration(CONFIGURATION_FILE, WORKING_DIR);
        } catch (ConfigurationException e) {
            throw new RuntimeException(e);
        }
        processContext = new ProcessingContext(getFileSystemContext(), REFERENCE_SEQUENCE, null, getDefaultHeaders(), config);
        processContext.setCommandLineProgram(this);
        processContext.setFilterDuplicates(IGNORE_DUPLICATES);
        processContext.setWorkerThreadCount(WORKER_THREADS);
        if (BLACKLIST != null) {
            try {
                processContext.setBlacklist(BLACKLIST);
            } catch (IOException e) {
                log.error(e, "Error loading BED blacklist. ", BLACKLIST);
                throw new RuntimeException(e);
            }
        }
    }
    return processContext;
}
Also used : ProcessingContext(au.edu.wehi.idsv.ProcessingContext) GridssConfiguration(au.edu.wehi.idsv.configuration.GridssConfiguration) ConfigurationException(org.apache.commons.configuration.ConfigurationException) IOException(java.io.IOException)

Aggregations

GridssConfiguration (au.edu.wehi.idsv.configuration.GridssConfiguration)6 SAMRecord (htsjdk.samtools.SAMRecord)2 Header (htsjdk.samtools.metrics.Header)2 File (java.io.File)2 ConfigurationException (org.apache.commons.configuration.ConfigurationException)2 ProcessingContext (au.edu.wehi.idsv.ProcessingContext)1 SoftClipConfiguration (au.edu.wehi.idsv.configuration.SoftClipConfiguration)1 IndexedFastaSequenceFile (htsjdk.samtools.reference.IndexedFastaSequenceFile)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 Test (org.junit.Test)1 Category (org.junit.experimental.categories.Category)1