# HG changeset patch # User guerler # Date 1606226528 0 # Node ID b0e195a47df7ffe3c0f39d7bc20c77c9fb5c4191 # Parent 41353488926c0737acbf0d6aaaeba272f23f0610 "planemo upload commit b306c715d8284c097220bc5c8461399fdc05eac7" diff -r 41353488926c -r b0e195a47df7 out.png Binary file out.png has changed diff -r 41353488926c -r b0e195a47df7 spring_minz.xml --- a/spring_minz.xml Sun Nov 22 14:15:24 2020 +0000 +++ b/spring_minz.xml Tue Nov 24 14:02:08 2020 +0000 @@ -1,4 +1,4 @@ - + filter operation 0: + filterAList = sorted(list(filterA)) + filterBList = sorted(list(filterB)) + negativeRequired = positiveCount + random.seed(0) + totalAttempts = int(len(filterAList) * len(filterBList) / 2) + while totalAttempts > 0: + totalAttempts = totalAttempts - 1 nameA = random.choice(filterAList) nameB = random.choice(filterBList) + if locations: + if nameA not in locations or nameB not in locations: + continue + if locations[nameA] == locations[nameB]: + continue key = getKey(nameA, nameB) if key not in putative and key not in negative: negative.add(key) negativeRequired = negativeRequired - 1 + if negativeRequired == 0: + break # create plot print("Producing plot data...") @@ -241,16 +266,12 @@ if __name__ == "__main__": parser = argparse.ArgumentParser(description='Create ROC plot.') - parser.add_argument('-i', '--input', help='Input prediction file.', - required=True) - parser.add_argument('-b', '--biogrid', help='BioGRID interaction ' + - 'database file', required=True) - parser.add_argument('-e', '--experiment', help='Type (physical/genetic)', - default="", required=False) - parser.add_argument('-t', '--throughput', help='Throughput (low/high)', - default="", required=False) - parser.add_argument('-m', '--method', help='Method e.g. Two-hybrid', - default="", required=False) + parser.add_argument('-i', '--input', help='Input prediction file.', required=True) + parser.add_argument('-b', '--biogrid', help='BioGRID interaction database file', required=True) + parser.add_argument('-l', '--locations', help='UniProt export table with subcellular locations', required=False) + parser.add_argument('-e', '--experiment', help='Type (physical/genetic)', default="", required=False) + parser.add_argument('-t', '--throughput', help='Throughput (low/high)', default="", required=False) + parser.add_argument('-m', '--method', help='Method e.g. Two-hybrid', default="", required=False) parser.add_argument('-o', '--output', help='Output (png)', required=True) args = parser.parse_args() main(args) diff -r 41353488926c -r b0e195a47df7 spring_roc.xml --- a/spring_roc.xml Sun Nov 22 14:15:24 2020 +0000 +++ b/spring_roc.xml Tue Nov 24 14:02:08 2020 +0000 @@ -1,14 +1,15 @@ - + plot generator matplotlib + @@ -58,10 +59,6 @@ - - - - diff -r 41353488926c -r b0e195a47df7 test-data/roc/human_hv1h2.png Binary file test-data/roc/human_hv1h2.png has changed