edits.seer.internal.contexts.seqComparator.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-edits-seer Show documentation
Show all versions of validation-edits-seer Show documentation
Java implemenation of the SEER edits.
<entry id="seqComparator" type="groovy"><![CDATA[// compares lines (tumors) by sequence number (missing sequences go to the end of the list) return [compare : { line1, line2 -> Integer seq1 = Functions.asInt(line1.sequenceNumberCentral) Integer seq2 = Functions.asInt(line2.sequenceNumberCentral) if (seq1 == null) return 1 else if (seq2 == null) return -1 else return seq1 - seq2 }] as Comparator]]></entry>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy