2009-08-31 12:32:32 +08:00
|
|
|
package org.broadinstitute.sting.gatk.refdata;
|
|
|
|
|
|
|
|
|
|
import org.broadinstitute.sting.utils.GenomeLoc;
|
|
|
|
|
import org.broadinstitute.sting.utils.GenomeLocParser;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class CleanedOutSNPROD extends TabularROD {
|
|
|
|
|
|
|
|
|
|
private static final String REAL_SNP_STRING = "SAME_SNP";
|
|
|
|
|
private static final String FALSE_SNP_STRING = "NOT_SNP";
|
|
|
|
|
|
|
|
|
|
public CleanedOutSNPROD(String name) {
|
|
|
|
|
super(name);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public GenomeLoc getLocation() {
|
|
|
|
|
return GenomeLocParser.parseGenomeLoc(this.get("0"));
|
|
|
|
|
}
|
|
|
|
|
|
2009-09-01 20:43:18 +08:00
|
|
|
public boolean isRealSNP() {
|
|
|
|
|
String s = this.get("1");
|
|
|
|
|
return s != null && s.equals(REAL_SNP_STRING);
|
|
|
|
|
}
|
2009-08-31 12:32:32 +08:00
|
|
|
}
|