Previous changeset 2:0dbc7fbad0ab (2024-08-12) Next changeset 4:3e3b5ba626b9 (2024-08-12) |
Commit message:
planemo upload commit 28919dd79f328dd09dae92661dc19ffa5757a765 |
modified:
intersect_and_adjacent.py intersect_and_adjacent.xml |
b |
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 |
b |
@@ -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: |
b |
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 |
b |
@@ -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' ]]> |