Better error message for --assume_single_sample_reads screw up
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2916 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
104f4f7383
commit
317fac8dff
|
|
@ -205,7 +205,11 @@ public class UnifiedGenotyper extends LocusWalker<VariantCallContext, UnifiedGen
|
||||||
|
|
||||||
// use multi-sample mode if we have multiple samples or the output type allows it
|
// use multi-sample mode if we have multiple samples or the output type allows it
|
||||||
else {
|
else {
|
||||||
writer.addMultiSampleCall(value.genotypes, value.variation);
|
try {
|
||||||
|
writer.addMultiSampleCall(value.genotypes, value.variation);
|
||||||
|
} catch (IllegalArgumentException e) {
|
||||||
|
throw new IllegalArgumentException(e.getMessage() + "; this is often caused by using the --assume_single_sample_reads argument with the wrong sample name");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return sum;
|
return sum;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue