--email=$__user_email__
Add following lines to bowtie_wrapper.py/bwa_wrapper.py
parser.add_option( '', '--email', dest='email', help='email' )
Above line should add before the options, args) = parser.parse_args() line After the stdout = '' add following lines.
if options.ref in "[dataset paths]" :
if options.email in "[email addresses]":
sys.stdout.write( 'Permission granted! ' )
else:
stop_err( 'You dont have permissions!' )
else:
sys.stdout.write( 'Permission granted! ' )
Retart the Galaxy! Now you can restrcit tool datasets per user without having two Galaxy instances./Chanaka