private PatternScanMatch buildMatch(Signature signature, ProSitePatternRawMatch rawMatch) { PatternScanMatch.PatternScanLocation location = new PatternScanMatch.PatternScanLocation( rawMatch.getLocationStart(), rawMatch.getLocationEnd(), rawMatch.getPatternLevel(), rawMatch.getCigarAlignment()); return new PatternScanMatch(signature, rawMatch.getModelId(), Collections.singleton(location)); } }
public Object clone() throws CloneNotSupportedException { return new PatternScanLocation(this.getStart(), this.getEnd(), this.getLevel(), this.getCigarAlignment()); }