# HG changeset patch # User sanbi-uwc # Date 1536365010 14400 # Node ID d878e492546ce0955a9df95ce5203ae1ba8d5f33 # Parent 7cfce83a7f62b6fe85d0e12aa8cdfedd00b46448 planemo upload for repository https://github.com/pvanheus/refseq_fasta_data_manager commit b682adad2c3c74567d23e1a5cf2bfcc3df1c96ae-dirty diff -r 7cfce83a7f62 -r d878e492546c data_manager/fetch_refseq.py --- a/data_manager/fetch_refseq.py Fri Sep 07 19:57:47 2018 -0400 +++ b/data_manager/fetch_refseq.py Fri Sep 07 20:03:30 2018 -0400 @@ -131,18 +131,21 @@ parser.add_argument('--mol_types', nargs='+', help='Molecule types (genomic, rna, protein) to fetch') parser.add_argument('--pin_date', help='Force download date to this version string') args = parser.parse_args() + + division_names = args.division_names.split(',') + mol_types = args.mol_types.split(',') if args.galaxy_datamanager_filename is not None: dm_opts = json.loads(open(args.galaxy_datamanager_filename).read()) output_directory = dm_opts['output_data'][0]['extra_files_path'] # take the extra_files_path of the first output parameter data_manager_dict = {} else: output_directory = args.output_directory - for division_name in args.division_names: + for division_name in division_names: if args.pin_date is not None: today_str = args.pin_date else: today_str = date.today().strftime('%Y-%m-%d') # ISO 8601 date format - [release_num, fasta_files] = get_refseq_division(division_name, args.mol_types, output_directory, args.debug, args.compress) + [release_num, fasta_files] = get_refseq_division(division_name, mol_types, output_directory, args.debug, args.compress) if args.galaxy_datamanager_filename is not None: for i, mol_type in enumerate(args.mol_types): assert mol_type in fasta_files[i], "Filename does not contain expected mol_type ({}, {})".format(mol_type, fasta_files[i]) diff -r 7cfce83a7f62 -r d878e492546c data_manager/fetch_refseq.xml --- a/data_manager/fetch_refseq.xml Fri Sep 07 19:57:47 2018 -0400 +++ b/data_manager/fetch_refseq.xml Fri Sep 07 20:03:30 2018 -0400 @@ -1,4 +1,4 @@ - + Fetch FASTA data from NCBI RefSeq and update all_fasta data table python