Don't skip tri-allelic alleles passed in - just choose the first one.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5293 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
a2301383bb
commit
9357bee921
|
|
@ -73,14 +73,14 @@ public class SNPGenotypeLikelihoodsCalculationModel extends GenotypeLikelihoodsC
|
|||
final VariantContext vcInput = tracker.getVariantContext(ref, "alleles", null, ref.getLocus(), true);
|
||||
if ( vcInput == null )
|
||||
return null;
|
||||
if ( !vcInput.isBiallelic() ) {
|
||||
logger.info("Record at position " + ref.getLocus() + " is not bi-allelic; skipping...");
|
||||
return null;
|
||||
}
|
||||
if ( !vcInput.isSNP() ) {
|
||||
logger.info("Record at position " + ref.getLocus() + " is not a SNP; skipping...");
|
||||
return null;
|
||||
}
|
||||
if ( !vcInput.isBiallelic() ) {
|
||||
logger.info("Record at position " + ref.getLocus() + " is not bi-allelic; choosing the first allele...");
|
||||
//return null;
|
||||
}
|
||||
bestAlternateAllele = vcInput.getAlternateAllele(0).getBases()[0];
|
||||
} else {
|
||||
initializeBestAlternateAllele(refBase, contexts);
|
||||
|
|
|
|||
Loading…
Reference in New Issue