# HG changeset patch # User sanbi-uwc # Date 1536996001 14400 # Node ID f0c7cab2f5476ed042aaabba8cce018c6f846c1d # Parent 094bd011487614e3043bb0e3ad245cceccf8b945 planemo upload for repository https://github.com/pvanheus/data_manager_shapeit_reference commit 1e78071ffc35990e3ea5846a6cc07e194f886cf0 diff -r 094bd0114876 -r f0c7cab2f547 data_manager/shapeit_ref.py --- a/data_manager/shapeit_ref.py Thu Sep 13 14:35:09 2018 -0400 +++ b/data_manager/shapeit_ref.py Sat Sep 15 03:20:01 2018 -0400 @@ -37,6 +37,7 @@ parser.add_argument('path', help='Filesystem path to directory containing this reference set') parser.add_argument('reference_prefix', help='Filename prefix for the reference (.hap / .legend / .sample) files') parser.add_argument('map_prefix', help='Filename prefix for map files in this reference set') + parser.add_argument('sample_prefix', help='Filename prefix for sample file in this reference set') parser.add_argument('output_file', type=argparse.FileType('w'), help='JSON file used to write data manager values to') args = parser.parse_args() @@ -45,15 +46,17 @@ assert_prefix_exists(args.reference_prefix, args.path, 'reference') assert_prefix_exists(args.map_prefix, args.path, 'map') + assert_prefix_exists(args.sample_prefix, args.path, 'sample') - for column in ('key', 'name', 'path', 'reference_prefix', 'map_prefix'): + for column in ('key', 'name', 'path', 'reference_prefix', 'map_prefix', 'sample_prefix'): value = getattr(args, column) if '\t' in value: exit("TAB character found in {} argument".format(column)) data_manager_dict = {} data_table_entry = dict(value=args.key, name=args.name, path=args.path, - reference_prefix=args.reference_prefix, map_prefix=args.map_prefix) + reference_prefix=args.reference_prefix, map_prefix=args.map_prefix, + sample_prefix=args.sample_prefix) _add_data_table_entry(data_manager_dict, 'shapeit_ref', data_table_entry) args.output_file.write(json.dumps(data_manager_dict, sort_keys=True) + '\n') diff -r 094bd0114876 -r f0c7cab2f547 data_manager/shapeit_ref.xml --- a/data_manager/shapeit_ref.xml Thu Sep 13 14:35:09 2018 -0400 +++ b/data_manager/shapeit_ref.xml Sat Sep 15 03:20:01 2018 -0400 @@ -1,11 +1,12 @@ - - + > @@ -14,6 +15,7 @@ + diff -r 094bd0114876 -r f0c7cab2f547 data_manager_conf.xml --- a/data_manager_conf.xml Thu Sep 13 14:35:09 2018 -0400 +++ b/data_manager_conf.xml Sat Sep 15 03:20:01 2018 -0400 @@ -8,6 +8,7 @@ + diff -r 094bd0114876 -r f0c7cab2f547 tool-data/shapeit_ref.loc.sample --- a/tool-data/shapeit_ref.loc.sample Thu Sep 13 14:35:09 2018 -0400 +++ b/tool-data/shapeit_ref.loc.sample Sat Sep 15 03:20:01 2018 -0400 @@ -1,7 +1,7 @@ #This file lists the locations of SHAPEIT reference data connections # -# +# # #For example # -#1000G_Phase3 1000 Genomes project haplotypes /path/to/shapeit_ref/1000G 1000GP_Phase3_ genetic_map_ +#1000G_Phase3 1000 Genomes project haplotypes /path/to/shapeit_ref/1000G 1000GP_Phase3_chr genetic_map_chr 1000GP_Phase3 diff -r 094bd0114876 -r f0c7cab2f547 tool_data_table_conf.xml.sample --- a/tool_data_table_conf.xml.sample Thu Sep 13 14:35:09 2018 -0400 +++ b/tool_data_table_conf.xml.sample Sat Sep 15 03:20:01 2018 -0400 @@ -1,6 +1,6 @@ - value, name, path, reference_prefix, map_prefix + value, name, path, reference_prefix, map_prefix, sample_prefix
\ No newline at end of file