All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edits.seer.internal.contexts.seqComparator.xml Maven / Gradle / Ivy

There is a newer version: 024-13
Show newest version
        <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