Skip to content

Commit

Permalink
Set name to coverage estimation
Browse files Browse the repository at this point in the history
  • Loading branch information
seppinho committed Mar 4, 2024
1 parent 65949a9 commit 5e52031
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ WORKDIR "/opt"
COPY ./bin/VariantMerger.java ./
RUN jbang export portable -O=VariantMerger.jar VariantMerger.java

COPY ./bin/CoverageCorrection.java ./
RUN jbang export portable -O=CoverageCorrection.jar CoverageCorrection.java
COPY ./bin/CoverageEstimation.java ./
RUN jbang export portable -O=CoverageEstimation.jar CoverageEstimation.java


4 changes: 2 additions & 2 deletions bin/CoverageCorrection.java → bin/CoverageEstimation.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import picocli.CommandLine;
import picocli.CommandLine.Option;

public class CoverageCorrection implements Callable<Integer> {
public class CoverageEstimation implements Callable<Integer> {

@Option(names = "--input", description = "Input Variants File", required = true)
private String input;
Expand Down Expand Up @@ -68,7 +68,7 @@ public Integer call() throws Exception {
}

public static void main(String... args) {
int exitCode = new CommandLine(new CoverageCorrection()).execute(args);
int exitCode = new CommandLine(new CoverageEstimation()).execute(args);
System.exit(exitCode);
}

Expand Down
7 changes: 5 additions & 2 deletions cloudgene.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ workflow:
- process: "MTDNA_SERVER_2:ANNOTATE"
label: "Annotation"
view: progressbar
- process: "MTDNA_SERVER_2:COVERAGE_ESTIMATION"
label: "Calculating VAF Coverage"
view: progressbar
- process: "MTDNA_SERVER_2:HAPLOGROUPS_CONTAMINATION"
label: "Haplogroup % Contamination Detection"
view: progressbar
Expand Down Expand Up @@ -82,8 +85,8 @@ workflow:
0.05: 0.05
0.1: 0.1

- id: coverage_correction
description: Coverage Correction for Diagnostic NGS
- id: coverage_estimation
description: Coverage Estimation for Diagnostic NGS
type: list
value: off
values:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
process COVERAGE_CORRECTION {
process COVERAGE_ESTIMATION {

input:
path variants_txt
Expand All @@ -7,7 +7,7 @@ process COVERAGE_CORRECTION {
path("variants.txt"), emit: variants_verified_ch

"""
java -jar /opt/CoverageCorrection.jar \
java -jar /opt/CoverageEstimation.jar \
--input ${variants_txt} \
--output variants.verified.txt
mv variants.verified.txt variants.txt
Expand Down
3 changes: 1 addition & 2 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ params {
mapQ = 20
baseQ = 20
alignQ = 30
high_accuracy = true
coverage_correction = "on"
coverage_estimation = "on"
max_samples = 0


Expand Down
8 changes: 4 additions & 4 deletions workflows/mtdna_server_2.nf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ include { MERGING_VARIANTS } from '../modules/local/merging_variants'
include { VCF_MERGE } from '../modules/local/vcf_merge'
include { ANNOTATE } from '../modules/local/annotate'
include { HAPLOGROUPS_CONTAMINATION } from '../modules/local/haplogroups_contamination'
include { COVERAGE_CORRECTION } from '../modules/local/coverage_correction'
include { COVERAGE_ESTIMATION } from '../modules/local/coverage_estimation'
include { REPORT } from '../modules/local/report'
include { SAMPLE_REPORT } from '../modules/local/sample_report'

Expand Down Expand Up @@ -164,11 +164,11 @@ workflow MTDNA_SERVER_2 {
contamination_ch = HAPLOGROUPS_CONTAMINATION.out.contamination_txt_ch
}

if (params.coverage_correction.equals("on") && params.mode != 'mutect2') {
COVERAGE_CORRECTION(
if (params.coverage_estimation.equals("on") && params.mode != 'mutect2') {
COVERAGE_ESTIMATION(
variants_txt_ch
)
variants_txt_ch = COVERAGE_CORRECTION.out.variants_verified_ch
variants_txt_ch = COVERAGE_ESTIMATION.out.variants_verified_ch
}

ANNOTATE(
Expand Down

0 comments on commit 5e52031

Please sign in to comment.