Resolving merge conflicts
This commit is contained in:
commit
3d56bbf087
|
|
@ -66,17 +66,18 @@ public class FastaAlternateReferenceWalker extends FastaReferenceWalker {
|
||||||
String refBase = String.valueOf((char)ref.getBase());
|
String refBase = String.valueOf((char)ref.getBase());
|
||||||
|
|
||||||
// Check to see if we have a called snp
|
// Check to see if we have a called snp
|
||||||
for ( VariantContext vc : tracker.getValues(VariantContext.class) ) {
|
for ( VariantContext vc : tracker.getValues(variants) ) {
|
||||||
if ( ! vc.getSource().equals(snpmask.getName())) {
|
if ( vc.isFiltered() )
|
||||||
if ( vc.isDeletion()) {
|
continue;
|
||||||
deletionBasesRemaining = vc.getReference().length();
|
|
||||||
// delete the next n bases, not this one
|
if ( vc.isDeletion()) {
|
||||||
return new Pair<GenomeLoc, String>(context.getLocation(), refBase);
|
deletionBasesRemaining = vc.getReference().length();
|
||||||
} else if ( vc.isInsertion()) {
|
// delete the next n bases, not this one
|
||||||
return new Pair<GenomeLoc, String>(context.getLocation(), refBase.concat(vc.getAlternateAllele(0).toString()));
|
return new Pair<GenomeLoc, String>(context.getLocation(), refBase);
|
||||||
} else if (vc.isSNP()) {
|
} else if ( vc.isInsertion()) {
|
||||||
return new Pair<GenomeLoc, String>(context.getLocation(), vc.getAlternateAllele(0).toString());
|
return new Pair<GenomeLoc, String>(context.getLocation(), refBase.concat(vc.getAlternateAllele(0).toString()));
|
||||||
}
|
} else if (vc.isSNP()) {
|
||||||
|
return new Pair<GenomeLoc, String>(context.getLocation(), vc.getAlternateAllele(0).toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue