Skip to content
Snippets Groups Projects
Commit 46978828 authored by tcarver's avatar tcarver
Browse files

add predicate to check partial settings

parent 20c57bf6
Branches
Tags
No related merge requests found
......@@ -133,6 +133,7 @@ public class ValidateFeature
showFeatureList(STRAND_PREDICATE, "Gene Strand Errors", grp, sel, gotoSrc, plotGrp);
showFeatureList(BOUNDARY_PREDICATE, "Gene Boundary Errors", grp, sel, gotoSrc, plotGrp);
showFeatureList(COMPLETE_GENE_MODEL_PREDICATE, "Incomplete Gene Model", grp, sel, gotoSrc, plotGrp);
showFeatureList(PARTIAL_PREDICATE, "Partial Settings", grp, sel, gotoSrc, plotGrp);
}
showFeatureList(INTERNAL_STOP, "Internal Stop Codons", grp, sel, gotoSrc, plotGrp);
......@@ -212,15 +213,11 @@ public class ValidateFeature
report.put("Gene features found on different strand", Level.FATAL);
}
if(!isPartialConsistent(gffFeature, "Start_range"))
if(!isPartialConsistent(gffFeature, "Start_range") ||
!isPartialConsistent(gffFeature, "End_range"))
{
pass = false;
report.put("Partial attribute 'Start_range' not consistent", Level.FATAL);
}
if(!isPartialConsistent(gffFeature, "End_range"))
{
pass = false;
report.put("Partial attribute 'End_range' not consistent", Level.FATAL);
report.put("Partial settings not consistent", Level.FATAL);
}
}
......@@ -547,6 +544,7 @@ public class ValidateFeature
return true;
}
/**
* The phase is REQUIRED for all CDS features.
* @param gffFeature
......@@ -903,6 +901,17 @@ public class ValidateFeature
}
};
private static FeaturePredicate PARTIAL_PREDICATE = new FeaturePredicate()
{
public boolean testPredicate(uk.ac.sanger.artemis.Feature feature)
{
if( isPartialConsistent((GFFStreamFeature) feature.getEmblFeature(), "Start_range") &&
isPartialConsistent((GFFStreamFeature) feature.getEmblFeature(), "End_range") )
return false;
return true;
}
};
private FeaturePredicate INTERNAL_STOP = new FeaturePredicate()
{
public boolean testPredicate(uk.ac.sanger.artemis.Feature feature)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment