prepare_parser=subparsers.add_parser('prepare',help='Databank download from the Website, extraction and transformation for another Programm')
prepare_parser.add_argument('database',help='Database which have to be prepared',type=str)
prepare_parser.add_argument('tool',help='Programm/Tool for the post analysis',type=str,)
prepare_parser.add_argument('-d','--directory',dest='dir',help='target directory for the output.Default will be a created("output") folder in the working directory',type=str)
prepare_parser.add_argument('tool',help='Programm/Tool for the post analysis',type=str,)
prepare_parser.add_argument('-d','--directory',dest='dir',help='set the local directory to save/to get the data.',type=str)
prepare_parser.set_defaults(func=prepare)
upload_parser=subparsers.add_parser('upload',help='Databank copy from the local directory to the web storage')
upload_parser.add_argument('database',help='database to be transfered from the local directory',type=str)
upload_parser.add_argument('tool',type=str,help='database type which have to be transfered')
upload_parser.add_argument('-d','--directory',dest='dir',help='Target directory for the file transfer into "S3". Default will be "s3://db_storage"',type=str)
upload_parser.add_argument('tool',type=str,help='database type which have to be transfered')
upload_parser.add_argument('-s','--s3store',dest='store',help='set the "S3" storage of the data ')
upload_parser.add_argument('-d','--directory',dest='dir',help='set the local directory to save/to get the data.',type=str)
upload_parser.add_argument('-r','--raw',help='Raw data need to be upload',action='store_true')
upload_parser.set_defaults(func=upload)
download_parser=subparsers.add_parser('download',help='Datenbank copy from the web storage to the working computer')
download_parser.add_argument('file',help='File to be transfered from "S3"',type=str)
download_parser.add_argument('-d','--directory',dest='dir',help='Target directory for the file transfer. Default will be a created folder("output) in the current working directory',type=str)
download_parser.add_argument('database',help='database to be transfered from "S3"',type=str)
download_parser.add_argument('tool',type=str,help='database type which have to be transfered')
download_parser.add_argument('-s','--s3store',dest='store',help='set the "S3" storage of the data ')
download_parser.add_argument('-d','--directory',dest='dir',help='set the local directory to save/to get the data.',type=str)
download_parser.add_argument('-r','--raw',help='Raw data need to be download',action='store_true')
download_parser.set_defaults(func=download)
delete_parser=subparsers.add_parser('delete',help='delete existing files from local directory or from "S3"')
delete_parser.add_argument('database',help='database which have to be delete')
delete_parser.add_argument('place',choices=['local','S3'],help='defined the place where the database have to be delete')
delete_parser.add_argument('-d','--directory',dest='dir',help='directory where the database have to be delete')
delete_parser.add_argument('database',help='database which have to be delete')
delete_parser.add_argument('tool',type=str,help='database type which have to be deleted')
delete_parser.add_argument('place',choices=['local','S3'],help='defined the place where the database have to be delete')
delete_parser.add_argument('-d','--directory',dest='dir',help='set the local directory to save/to get the data.',type=str)
delete_parser.add_argument('-s','--s3store',dest='store',help='set the "S3" storage of the data ')
delete_parser.add_argument('-r','--raw',help='Raw data need to be deleted',action='store_true')
delete_parser.set_defaults(func=delete)
list_recipes_parser=subparsers.add_parser('list_recipes',help='print databases with the possible Tool')