# HG changeset patch # User iuc # Date 1594276750 14400 # Node ID ca9e70c0fef81f80a49274ce31ef7bf1eeeace35 # Parent 2af5541124184c1f0ee8f1d17aef0f89c19ac656 "planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/nanocompore commit c2985b5c91a932e175cbfaf9b54a76e23beff9e9" diff -r 2af554112418 -r ca9e70c0fef8 NanocomporeDB_process.py --- a/NanocomporeDB_process.py Wed Jun 17 13:28:53 2020 -0400 +++ b/NanocomporeDB_process.py Thu Jul 09 02:39:10 2020 -0400 @@ -40,7 +40,7 @@ help='path to the annotations') parser.add_argument('--bedgraph', action="store_true", help='write output in BEDGRAPH format instead of BED') - parser.add_argument('--pvalue-threshold', default=1.0, + parser.add_argument('--pvalue-threshold', type=float, default=1.0, help='Maximum reported p-value.') parser.add_argument('--out-dir', default="./", type=is_valid_directory, help='path the plotting output directory.') @@ -52,9 +52,15 @@ print(db) print("DB read ids:", db.ref_id_list) + if args.bedgraph: + file_ext = 'bedgraph' + else: + file_ext = 'bed' + if args.annotation_bed: for pt in args.pvalue_types.split(','): - print("bedgraph output for p-value type:", pt) - db.save_to_bed(output_fn='{}/{}.bedgraph'.format(args.out_dir, pt), + out_path = '{}/{}.{}'.format(args.out_dir, pt, file_ext) + print("%s output for p-value type:" % out_path, pt) + db.save_to_bed(output_fn=out_path, pvalue_field=pt, pvalue_thr=args.pvalue_threshold, bedgraph=args.bedgraph) diff -r 2af554112418 -r ca9e70c0fef8 nanocompore_db.xml --- a/nanocompore_db.xml Wed Jun 17 13:28:53 2020 -0400 +++ b/nanocompore_db.xml Thu Jul 09 02:39:10 2020 -0400 @@ -1,61 +1,59 @@ - + Process SampComp results database macros.xml - + + ^(\w+(,\w+)*)?$ + + + - - - - - - - - - - - - - - - - - + + + - - - - + + + + + + - - - - - - + + + + + + + +