Skip to content

Commit e6bb8f3

Browse files
authored
Update KingInferenceStep.java
1 parent 221ce87 commit e6bb8f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/variant/KingInferenceStep.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ public Output processVariants(File inputVCF, File outputDirectory, ReferenceGeno
7676
plinkArgs.add(inputVCF.getPath());
7777

7878
plinkArgs.add("--make-bed");
79+
80+
// Added since KING is designed for plink1.9. This avoids the "Too many first alleles as the major allele" error.
81+
plinkArgs.add("--maj-ref");
7982

8083
boolean limitToChromosomes = getProvider().getParameterByName("limitToChromosomes").extractValue(getPipelineCtx().getJob(), getProvider(), getStepIdx(), Boolean.class, true);
8184
if (limitToChromosomes)

0 commit comments

Comments
 (0)