public class CosmicFuncotationFactory extends DataSourceFuncotationFactory
Funcotation
s by handling a SQLite database containing information from COSMIC.
The raw datasource (http://cancer.sanger.ac.uk/cosmic/download - CosmicCompleteTargetedScreensMutantExport.tsv.gz)
must be unzipped and preprocessed with the script `createSqliteCosmicDb.sh`.
This is a high-level object that interfaces with the internals of Funcotator
.
Created by jonn on 12/16/17.Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
logger
Standard Logger.
|
annotationOverrideMap, DEFAULT_VERSION_STRING, version
Constructor and Description |
---|
CosmicFuncotationFactory(java.nio.file.Path pathToCosmicDb) |
CosmicFuncotationFactory(java.nio.file.Path pathToCosmicDb,
java.util.LinkedHashMap<java.lang.String,java.lang.String> annotationOverridesMap,
java.lang.String version) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Perform cleanup tasks for this
DataSourceFuncotationFactory . |
protected java.util.List<Funcotation> |
createDefaultFuncotationsOnVariant(htsjdk.variant.variantcontext.VariantContext variant,
ReferenceContext referenceContext)
|
protected java.util.List<Funcotation> |
createFuncotationsOnVariant(htsjdk.variant.variantcontext.VariantContext variant,
ReferenceContext referenceContext,
java.util.List<htsjdk.tribble.Feature> featureList)
|
protected java.util.List<Funcotation> |
createFuncotationsOnVariant(htsjdk.variant.variantcontext.VariantContext variant,
ReferenceContext referenceContext,
java.util.List<htsjdk.tribble.Feature> featureList,
java.util.List<GencodeFuncotation> gencodeFuncotations)
Creates a
List of Funcotation for the given variant , referenceContext , featureContext , and gencodeFuncotations . |
protected java.lang.Class<? extends htsjdk.tribble.Feature> |
getAnnotationFeatureClass() |
java.lang.String |
getName() |
java.util.LinkedHashSet<java.lang.String> |
getSupportedFuncotationFields() |
FuncotatorArgumentDefinitions.DataSourceType |
getType() |
createFuncotations, createFuncotations, getInfoString, getVersion, initializeAnnotationOverrides, setOverrideValuesInFuncotations
public CosmicFuncotationFactory(java.nio.file.Path pathToCosmicDb)
public CosmicFuncotationFactory(java.nio.file.Path pathToCosmicDb, java.util.LinkedHashMap<java.lang.String,java.lang.String> annotationOverridesMap, java.lang.String version)
protected java.lang.Class<? extends htsjdk.tribble.Feature> getAnnotationFeatureClass()
getAnnotationFeatureClass
in class DataSourceFuncotationFactory
Class
of the feature type that can be used to create annotations by this DataSourceFuncotationFactory
.public void close()
DataSourceFuncotationFactory
DataSourceFuncotationFactory
.close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class DataSourceFuncotationFactory
public java.lang.String getName()
getName
in class DataSourceFuncotationFactory
DataSourceFuncotationFactory
.public java.util.LinkedHashSet<java.lang.String> getSupportedFuncotationFields()
getSupportedFuncotationFields
in class DataSourceFuncotationFactory
LinkedHashSet
of the names of annotations that this Data Source supports.protected java.util.List<Funcotation> createDefaultFuncotationsOnVariant(htsjdk.variant.variantcontext.VariantContext variant, ReferenceContext referenceContext)
DataSourceFuncotationFactory
List
of Funcotation
for the given variant
and referenceContext
.
These will be default funcotations that essentially have empty values.createDefaultFuncotationsOnVariant
in class DataSourceFuncotationFactory
variant
- VariantContext
to annotate.referenceContext
- ReferenceContext
corresponding to the given variant
.List
of Funcotation
given the variant
, referenceContext
, and featureContext
. This should never be empty.protected java.util.List<Funcotation> createFuncotationsOnVariant(htsjdk.variant.variantcontext.VariantContext variant, ReferenceContext referenceContext, java.util.List<htsjdk.tribble.Feature> featureList)
DataSourceFuncotationFactory
createFuncotationsOnVariant
in class DataSourceFuncotationFactory
variant
- VariantContext
to annotate.referenceContext
- ReferenceContext
corresponding to the given variant
.featureList
- List
of Feature
corresponding to the given variant
.List
of Funcotation
given the variant
, referenceContext
, and featureContext
. This should never be empty.protected java.util.List<Funcotation> createFuncotationsOnVariant(htsjdk.variant.variantcontext.VariantContext variant, ReferenceContext referenceContext, java.util.List<htsjdk.tribble.Feature> featureList, java.util.List<GencodeFuncotation> gencodeFuncotations)
DataSourceFuncotationFactory
List
of Funcotation
for the given variant
, referenceContext
, featureContext
, and gencodeFuncotations
.
For some Data Sources knowledge of Gene Name or Transcript ID is required for annotation.createFuncotationsOnVariant
in class DataSourceFuncotationFactory
variant
- VariantContext
to annotate.referenceContext
- ReferenceContext
corresponding to the given variant
.featureList
- List
of Feature
corresponding to the given variant
.gencodeFuncotations
- List
of GencodeFuncotation
that have already been created for the given variant
/referenceContext
/featureContext
.List
of Funcotation
given the variant
, referenceContext
, and featureContext
. This should never be empty.public FuncotatorArgumentDefinitions.DataSourceType getType()
getType
in class DataSourceFuncotationFactory
FuncotatorArgumentDefinitions.DataSourceType
of this DataSourceFuncotationFactory
.