-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TASK-6324 - Simplify QC analysis by launching a single job #2469
base: release-3.x.x
Are you sure you want to change the base?
Conversation
…b that executes sequentially samtools, plot-bamstats and fastqc, #TASK-6325, #TASK-6324 On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/alignment/qc/AlignmentFastQcMetricsAnalysis.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/alignment/qc/AlignmentQcAnalysis.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/tools/OpenCgaTool.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/wrappers/executors/DockerWrapperAnalysisExecutor.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/wrappers/samtools/SamtoolsWrapperAnalysisExecutor.java modified: opencga-analysis/src/test/java/org/opencb/opencga/analysis/alignment/AlignmentAnalysisTest.java modified: opencga-core/src/main/java/org/opencb/opencga/core/tools/OpenCgaToolExecutor.java modified: opencga-core/src/main/java/org/opencb/opencga/core/tools/result/ExecutionResultManager.java
…TASK-6324 On branch TASK-6324 Changes to be committed: new file: opencga-app/app/analysis/genome-plot/circos.R
…nused parameters, #TASK-6325, #TASK-6324 On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/wrappers/fastqc/FastqcWrapperAnalysis.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/wrappers/fastqc/FastqcWrapperAnalysisExecutor.java
… unused parameters, #TASK-6325, #TASK-6324 On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/wrappers/samtools/SamtoolsWrapperAnalysis.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/wrappers/samtools/SamtoolsWrapperAnalysisExecutor.java
…tools stats/flagstats, fastqc), #TASK-6325, #TASK-6324 On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/alignment/qc/AlignmentQcAnalysis.java
…r sonnar issues, #TASK-6325, #TASK-6324 On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/alignment/qc/AlignmentQcAnalysis.java
On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/test/java/org/opencb/opencga/analysis/alignment/AlignmentAnalysisTest.java
…pos and sonnar issues, #TASK-6326, #TASK-6324 On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/variant/mutationalSignature/MutationalSignatureAnalysis.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/variant/mutationalSignature/MutationalSignatureLocalAnalysisExecutor.java modified: opencga-core/src/main/java/org/opencb/opencga/core/tools/variant/MutationalSignatureAnalysisExecutor.java
On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/variant/stats/SampleVariantStatsAnalysis.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/variant/stats/SampleVariantStatsLocalAnalysisExecutor.java modified: opencga-core/src/main/java/org/opencb/opencga/core/tools/variant/SampleVariantStatsAnalysisExecutor.java
…lot analysis), fix some typos and sonnar issues, #TASK-6326, #TASK-6324 On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/variant/genomePlot/GenomePlotAnalysis.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/variant/genomePlot/GenomePlotLocalAnalysisExecutor.java modified: opencga-core/src/main/java/org/opencb/opencga/core/tools/variant/GenomePlotAnalysisExecutor.java
On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/tools/OpenCgaTool.java
…e QC step, #TASK-6326, #TASK-6324 On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/sample/qc/SampleQcAnalysis.java
…ASK-6324 On branch TASK-6324 Changes to be committed: deleted: opencga-analysis/src/main/R/genome-plot/circos.R deleted: opencga-analysis/src/main/R/mutational-signature/mutational-signature.r modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/alignment/qc/AlignmentQcAnalysis.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/tools/OpenCgaTool.java
…lysis folder, #TASK-6326, #TASK-6324 On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/variant/circos/CircosLocalAnalysisExecutor.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/variant/genomePlot/GenomePlotLocalAnalysisExecutor.java
On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/test/java/org/opencb/opencga/analysis/variant/OpenCGATestExternalResource.java modified: opencga-analysis/src/test/java/org/opencb/opencga/analysis/variant/VariantAnalysisTest.java deleted: opencga-storage/opencga-storage-core/src/test/resources/AR2.10039966-01T.copynumber.caveman.vcf.gz deleted: opencga-storage/opencga-storage-core/src/test/resources/AR2.10039966-01T_vs_AR2.10039966-01G.annot.brass.vcf.gz deleted: opencga-storage/opencga-storage-core/src/test/resources/AR2.10039966-01T_vs_AR2.10039966-01G.annot.pindel.vcf.gz new file: opencga-storage/opencga-storage-core/src/test/resources/cancer-cnvs.vcf.gz new file: opencga-storage/opencga-storage-core/src/test/resources/cancer-indels.vcf.gz new file: opencga-storage/opencga-storage-core/src/test/resources/cancer-rearrs.vcf.gz new file: opencga-storage/opencga-storage-core/src/test/resources/cancer-snvs.vcf.gz new file: opencga-storage/opencga-storage-core/src/test/resources/genome-plot-config.json
logger.info("Signagture fit max. rare sigs.: {}", signatureParams.getFitMaxRareSigs()); | ||
logger.info("Signagture fit signatures file: {}", signaturesFile); | ||
logger.info("Signagture fit rare signatures file: {}", rareSignaturesFile); | ||
logger.info("Signature id: {}", signatureParams.getId()); |
Check notice
Code scanning / SonarCloud
Logging should not be vulnerable to injection attacks Low
logger.info("Signagture fit signatures file: {}", signaturesFile); | ||
logger.info("Signagture fit rare signatures file: {}", rareSignaturesFile); | ||
logger.info("Signature id: {}", signatureParams.getId()); | ||
logger.info("Signature description: {}", signatureParams.getDescription()); |
Check notice
Code scanning / SonarCloud
Logging should not be vulnerable to injection attacks Low
...cga-analysis/src/main/java/org/opencb/opencga/analysis/alignment/qc/AlignmentQcAnalysis.java
Outdated
Show resolved
Hide resolved
} | ||
} else { | ||
throw new ToolException("Something wrong happened running Samtools flagstat analysis"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your future self will appreciate if you add some extra information here. Like the number of lines, and/or the actual first line
...cga-analysis/src/main/java/org/opencb/opencga/analysis/alignment/qc/AlignmentQcAnalysis.java
Outdated
Show resolved
Hide resolved
+ "' is already used"); | ||
} | ||
} | ||
} | ||
} | ||
} else { | ||
String msg = "Skipping sample variant stats analysis by user"; | ||
addWarning(msg); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this even a warning, or should it be just an info event?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hard to say!
opencga-analysis/src/main/java/org/opencb/opencga/analysis/tools/OpenCgaTool.java
Outdated
Show resolved
Hide resolved
@@ -495,6 +499,20 @@ protected final void addAttribute(String key, Object value) throws ToolException | |||
erm.addAttribute(key, value); | |||
} | |||
|
|||
protected final void addStepAttributes(ExecutionResult executionResult) throws ToolException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to include more information from the nested ExecutionResult, like events (maybe that's the only interesting thing)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean to add the "nested" ExecutionResult events into the list of "parent" Execution events?,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, something like that. Otherwise, they're lost (not technically, as you can always read the nested job result file, but they'd be quite hidden).
opencga-core/src/main/java/org/opencb/opencga/core/tools/result/ExecutionResultManager.java
Outdated
Show resolved
Hide resolved
… #TASK-6324 On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/alignment/qc/AlignmentQcAnalysis.java
…-6324 On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/sample/qc/SampleQcAnalysis.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/tools/OpenCgaTool.java modified: opencga-core/src/main/java/org/opencb/opencga/core/tools/result/ExecutionResultManager.java
…as wrong running dockers (samtools stats/flagstats and fastqc), #TASK-6325, #TASK-6324 On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/alignment/qc/AlignmentFastQcMetricsAnalysis.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/alignment/qc/AlignmentQcAnalysis.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/wrappers/executors/DockerWrapperAnalysisExecutor.java modified: opencga-analysis/src/test/java/org/opencb/opencga/analysis/alignment/AlignmentAnalysisTest.java
return steps; | ||
} | ||
|
||
@Override | ||
protected void run() throws ToolException { | ||
// Create the tool runner | ||
toolRunner = new ToolRunner(opencgaHome, catalogManager, StorageEngineFactory.get(variantStorageManager.getStorageConfiguration())); | ||
toolRunner = new ToolRunner(getOpencgaHome().toString(), catalogManager, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can better use the constructor
public ToolRunner(String opencgaHome, CatalogManager catalogManager, VariantStorageManager variantStorageManager)
instead of
ToolRunner(String opencgaHome, CatalogManager catalogManager, StorageEngineFactory storageEngineFactory)
… attributes, #TASK-6325, #TASK-6324 On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/alignment/qc/AlignmentQcAnalysis.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/sample/qc/SampleQcAnalysis.java modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/tools/OpenCgaTool.java
On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/alignment/qc/AlignmentQcAnalysis.java
On branch TASK-6324 Changes to be committed: modified: opencga-analysis/src/main/java/org/opencb/opencga/analysis/sample/qc/SampleQcAnalysis.java
TASK-6324 Simplify QC analysis by launching a single job:
Alignment QC analysis
Sample QC analysis