-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
analysis: Complete VariantStatsAnalysis implementation. #18
- Loading branch information
Showing
3 changed files
with
173 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
...s/src/main/java/org/opencb/oskar/analysis/variant/stats/VariantStatsAnalysisExecutor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
package org.opencb.oskar.analysis.variant.stats; | ||
|
||
import org.opencb.commons.datastore.core.ObjectMap; | ||
import org.opencb.commons.datastore.core.Query; | ||
import org.opencb.oskar.analysis.OskarAnalysisExecutor; | ||
|
||
import java.nio.file.Path; | ||
import java.util.List; | ||
|
||
public abstract class VariantStatsAnalysisExecutor extends OskarAnalysisExecutor { | ||
|
||
private Path outputFile; | ||
private String study; | ||
private String cohort; | ||
private List<String> samples; | ||
private Query variantsQuery; | ||
|
||
public VariantStatsAnalysisExecutor() { | ||
} | ||
|
||
public VariantStatsAnalysisExecutor(ObjectMap executorParams, Path outDir) { | ||
this(null, executorParams, outDir); | ||
} | ||
|
||
public VariantStatsAnalysisExecutor(String cohort, ObjectMap executorParams, Path outDir) { | ||
setUp(executorParams, outDir); | ||
this.cohort = cohort; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
final StringBuilder sb = new StringBuilder("VariantStatsAnalysisExecutor{"); | ||
sb.append("cohort='").append(cohort).append('\''); | ||
sb.append(", executorParams=").append(executorParams); | ||
sb.append(", outDir=").append(outDir); | ||
sb.append('}'); | ||
return sb.toString(); | ||
} | ||
|
||
public String getStudy() { | ||
return study; | ||
} | ||
|
||
public VariantStatsAnalysisExecutor setStudy(String study) { | ||
this.study = study; | ||
return this; | ||
} | ||
|
||
public String getCohort() { | ||
return cohort; | ||
} | ||
|
||
public VariantStatsAnalysisExecutor setCohort(String cohort) { | ||
this.cohort = cohort; | ||
return this; | ||
} | ||
|
||
public List<String> getSamples() { | ||
return samples; | ||
} | ||
|
||
public VariantStatsAnalysisExecutor setSamples(List<String> samples) { | ||
this.samples = samples; | ||
return this; | ||
} | ||
|
||
public Path getOutputFile() { | ||
return outputFile; | ||
} | ||
|
||
public VariantStatsAnalysisExecutor setOutputFile(Path outputFile) { | ||
this.outputFile = outputFile; | ||
return this; | ||
} | ||
|
||
public VariantStatsAnalysisExecutor setVariantsQuery(Query variantsQuery) { | ||
this.variantsQuery = variantsQuery; | ||
return this; | ||
} | ||
|
||
public Query getVariantsQuery() { | ||
return variantsQuery; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters