Class LiricalBuilder
java.lang.Object
org.monarchinitiative.lirical.configuration.LiricalBuilder
Build
Lirical
from provided resources.
The builder needs path to LIRICAL data directory (see LiricalDataResolver
for more info)
and that is enough for building Lirical
with default settings.
Alternatively, a high-level LIRICAL's components can be provided via builder methods.
If shouldLoadOrpha2Gene(boolean)
is set, the builder will throw an exception
if the Orpha 2 gene mapping file is missing in the data directory.
-
Method Summary
Modifier and TypeMethodDescriptionbackgroundVariantFrequencyServiceFactory
(BackgroundVariantFrequencyServiceFactory backgroundVariantFrequencyServiceFactory) build()
static LiricalBuilder
clearExomiserVariantDatabaseForGenomeBuild
(GenomeBuild genomeBuild) exomiserResources
(GenomeBuild genomeBuild, ExomiserResources resources) Add paths for Exomiser resources required to support thegenomeBuild
.exomiserVariantDbPath
(GenomeBuild genomeBuild, Path exomiserVariantDatabase) Deprecated, for removal: This API element is subject to removal in a future version.parallelism
(int parallelism) Set the number threads/workers in the LIRICAL worker pool.phenotypeService
(PhenotypeService phenotypeService) shouldLoadOrpha2Gene
(boolean value) variantMetadataServiceFactory
(VariantMetadataServiceFactory variantMetadataServiceFactory)
-
Method Details
-
builder
- Throws:
LiricalDataException
-
exomiserVariantDbPath
@Deprecated(forRemoval=true, since="2.0.3") public LiricalBuilder exomiserVariantDbPath(GenomeBuild genomeBuild, Path exomiserVariantDatabase) Deprecated, for removal: This API element is subject to removal in a future version.Set path to exomiser variant database for givenGenomeBuild
.- Returns:
- the builder
-
clearExomiserVariantDatabaseForGenomeBuild
-
exomiserResources
Add paths for Exomiser resources required to support thegenomeBuild
. -
backgroundVariantFrequencyServiceFactory
public LiricalBuilder backgroundVariantFrequencyServiceFactory(BackgroundVariantFrequencyServiceFactory backgroundVariantFrequencyServiceFactory) -
phenotypeService
-
variantMetadataServiceFactory
public LiricalBuilder variantMetadataServiceFactory(VariantMetadataServiceFactory variantMetadataServiceFactory) -
shouldLoadOrpha2Gene
-
parallelism
Set the number threads/workers in the LIRICAL worker pool. -
build
- Throws:
LiricalDataException
-
exomiserResources(GenomeBuild, ExomiserResources)
instead