toString method
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2512 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
1c90e6a954
commit
5ce11c3dad
|
|
@ -150,7 +150,7 @@ public class VCFGenotypeRecord implements Genotype, SampleBacked {
|
||||||
if ( encoding.getType() == VCFGenotypeEncoding.TYPE.UNCALLED )
|
if ( encoding.getType() == VCFGenotypeEncoding.TYPE.UNCALLED )
|
||||||
continue;
|
continue;
|
||||||
if ( encoding.getType() != VCFGenotypeEncoding.TYPE.SINGLE_BASE ||
|
if ( encoding.getType() != VCFGenotypeEncoding.TYPE.SINGLE_BASE ||
|
||||||
encoding.getBases().charAt(0) != ref )
|
encoding.getBases().charAt(0) != ref )
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
@ -217,6 +217,10 @@ public class VCFGenotypeRecord implements Genotype, SampleBacked {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override public String toString() {
|
||||||
|
return String.format("[VCFGenotype %s %s %s %s]", getLocation(), mSampleName, this.mGenotypeAlleles, mFields);
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isEmptyGenotype() {
|
public boolean isEmptyGenotype() {
|
||||||
for ( VCFGenotypeEncoding encoding : mGenotypeAlleles ) {
|
for ( VCFGenotypeEncoding encoding : mGenotypeAlleles ) {
|
||||||
if ( encoding.getType() != VCFGenotypeEncoding.TYPE.UNCALLED )
|
if ( encoding.getType() != VCFGenotypeEncoding.TYPE.UNCALLED )
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue