Search in sources :

Example 1 with CosmicGeneModel

use of com.hartwig.hmftools.common.cosmic.genes.CosmicGeneModel in project hmftools by hartwigmedical.

the class HmfReporterDataLoader method buildFromFiles.

@NotNull
static HmfReporterData buildFromFiles(@NotNull final String cosmicGeneFile, @NotNull final String cosmicFusionFile, @NotNull final String drupFilterFile, @NotNull final String fastaFileLocation) throws IOException {
    final GeneModel panelGeneModel = new GeneModel(HmfGenePanelSupplier.hmfPanelGeneMap());
    final CosmicGeneModel cosmicGeneModel = CosmicGenes.readFromCSV(cosmicGeneFile);
    final CosmicFusionModel cosmicFusionModel = CosmicFusions.readFromCSV(cosmicFusionFile);
    final DrupFilter drupFilter = new DrupFilter(drupFilterFile);
    final MicrosatelliteAnalyzer microsatelliteAnalyzer = ImmutableMicrosatelliteAnalyzer.of(fastaFileLocation);
    return ImmutableHmfReporterData.of(panelGeneModel, cosmicGeneModel, cosmicFusionModel, drupFilter, microsatelliteAnalyzer);
}
Also used : CosmicGeneModel(com.hartwig.hmftools.common.cosmic.genes.CosmicGeneModel) CosmicFusionModel(com.hartwig.hmftools.common.cosmic.fusions.CosmicFusionModel) ImmutableMicrosatelliteAnalyzer(com.hartwig.hmftools.patientreporter.variants.ImmutableMicrosatelliteAnalyzer) MicrosatelliteAnalyzer(com.hartwig.hmftools.patientreporter.variants.MicrosatelliteAnalyzer) CosmicGeneModel(com.hartwig.hmftools.common.cosmic.genes.CosmicGeneModel) GeneModel(com.hartwig.hmftools.common.gene.GeneModel) DrupFilter(com.hartwig.hmftools.patientreporter.filters.DrupFilter) NotNull(org.jetbrains.annotations.NotNull)

Example 2 with CosmicGeneModel

use of com.hartwig.hmftools.common.cosmic.genes.CosmicGeneModel in project hmftools by hartwigmedical.

the class PatientReporterTestUtil method testHmfReporterData.

@NotNull
public static HmfReporterData testHmfReporterData() throws IOException {
    final String drupFilterPath = Resources.getResource("csv").getPath() + File.separator + "drup_genes.csv";
    final String cosmicPath = Resources.getResource("csv").getPath() + File.separator + "cosmic_slice.csv";
    final String fusionPath = Resources.getResource("csv").getPath() + File.separator + "cosmic_gene_fusions.csv";
    final GeneModel geneModel = new GeneModel(HmfGenePanelSupplier.hmfPanelGeneMap());
    final CosmicGeneModel cosmicGeneModel = CosmicGenes.readFromCSV(cosmicPath);
    final CosmicFusionModel cosmicFusionModel = CosmicFusions.readFromCSV(fusionPath);
    final DrupFilter drupFilter = new DrupFilter(drupFilterPath);
    final MicrosatelliteAnalyzer microsatelliteAnalyzer = testMicrosatelliteAnalyzer();
    return ImmutableHmfReporterData.of(geneModel, cosmicGeneModel, cosmicFusionModel, drupFilter, microsatelliteAnalyzer);
}
Also used : CosmicGeneModel(com.hartwig.hmftools.common.cosmic.genes.CosmicGeneModel) CosmicFusionModel(com.hartwig.hmftools.common.cosmic.fusions.CosmicFusionModel) MicrosatelliteAnalyzer(com.hartwig.hmftools.patientreporter.variants.MicrosatelliteAnalyzer) GeneModel(com.hartwig.hmftools.common.gene.GeneModel) CosmicGeneModel(com.hartwig.hmftools.common.cosmic.genes.CosmicGeneModel) DrupFilter(com.hartwig.hmftools.patientreporter.filters.DrupFilter) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

CosmicFusionModel (com.hartwig.hmftools.common.cosmic.fusions.CosmicFusionModel)2 CosmicGeneModel (com.hartwig.hmftools.common.cosmic.genes.CosmicGeneModel)2 GeneModel (com.hartwig.hmftools.common.gene.GeneModel)2 DrupFilter (com.hartwig.hmftools.patientreporter.filters.DrupFilter)2 MicrosatelliteAnalyzer (com.hartwig.hmftools.patientreporter.variants.MicrosatelliteAnalyzer)2 NotNull (org.jetbrains.annotations.NotNull)2 ImmutableMicrosatelliteAnalyzer (com.hartwig.hmftools.patientreporter.variants.ImmutableMicrosatelliteAnalyzer)1