# HG changeset patch # User cpt # Date 1723436614 0 # Node ID 10000414e916ddf31a0aebf069727ce194bdb29c # Parent 0dbc7fbad0ab5a8381ad59c71c6443d95d623f96 planemo upload commit 28919dd79f328dd09dae92661dc19ffa5757a765 diff -r 0dbc7fbad0ab -r 10000414e916 intersect_and_adjacent.py --- a/intersect_and_adjacent.py Mon Aug 12 03:04:00 2024 +0000 +++ b/intersect_and_adjacent.py Mon Aug 12 04:23:34 2024 +0000 @@ -268,14 +268,16 @@ help="Allows features this far away to still be considered 'adjacent'", ) parser.add_argument( - "-stranding", - action="store_true", - help="Only allow adjacency for same-strand features", + "stranding", + nargs="?", + default="", + help="Only allow adjacency for same-strand features if set to '-stranding'", ) parser.add_argument("--oa", type=str, default="a_hits_near_b.gff") parser.add_argument("--ob", type=str, default="b_hits_near_a.gff") args = parser.parse_args() + stranding = args.stranding == "-stranding" b, a = intersect(args.a, args.b, args.window, args.stranding) with open(args.oa, "w") as handle: diff -r 0dbc7fbad0ab -r 10000414e916 intersect_and_adjacent.xml --- a/intersect_and_adjacent.xml Mon Aug 12 03:04:00 2024 +0000 +++ b/intersect_and_adjacent.xml Mon Aug 12 04:23:34 2024 +0000 @@ -10,8 +10,8 @@ python '$__tool_directory__/intersect_and_adjacent.py' '$gff3_data_a' '$gff3_data_b' - '$window' - '$stranding' + $window + $stranding --oa '$oa' --ob '$ob' ]]>