Skip to content

Commit 2d979ff

Browse files
committed
app: add defualt format to VCF exporter when they are not provided
1 parent 03c06d6 commit 2d979ff

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

opencga-app/src/main/java/org/opencb/opencga/app/cli/main/executors/analysis/VariantCommandExecutor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ private void printVcf(VariantQueryResult<Variant> variantQueryResult, String stu
404404
logger.debug("No formats found for: {}, setting default format: {}", study, VcfUtils.DEFAULT_SAMPLE_FORMAT);
405405
formats = VcfUtils.DEFAULT_SAMPLE_FORMAT;
406406
}
407+
} else {
408+
logger.debug("No formats found for: {}, setting default format: {}", study, VcfUtils.DEFAULT_SAMPLE_FORMAT);
409+
formats = VcfUtils.DEFAULT_SAMPLE_FORMAT;
407410
}
408411

409412
// TODO: modify VcfUtils in biodata project to take into account the formatArities

opencga-client/src/main/resources/client-configuration.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ sessionDuration: 12000 # number of seconds that session remains open
88
defaultStudy: ""
99

1010
# Alias to different studies, these can be fully qualified: user@project:study
11-
alias:
12-
1kg_grch37: hgvauser@reference_grch37:1kG_phase3
13-
RD370616: researchcga@grch37_germline:RD370616
11+
#alias:
12+
# 1kg_grch37: hgvauser@reference_grch37:1kG_phase3
1413
# 1kg_grch38: reference_grch38:1kG_phase3
1514

1615
# The default organism values can be defined here.
@@ -36,8 +35,7 @@ grpc:
3635
variant:
3736
unknownGenotype: "0/0"
3837
# each study can have a different format
39-
includeFormats:
40-
1kg_grch37: "GT,AD,DP,GQ"
41-
RD370616: "GT,AD,DP,GQ,DPF:Integer::none,PF:String::none"
38+
# includeFormats:
39+
# 1kg_grch37: "GT,AD,DP,GQ"
4240
# vcf:
4341
# header: true

0 commit comments

Comments
 (0)