Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Galaxy Tool Development: Reading user id before the execution of the tool

    I have posted this twice on Galaxy Dev list, however, I did not receive any response, therefore, I am posting this here in a hope that here might be the guy who could stop me pulling my few left hairs.

    My tool meant to load up (in a dropdown) some custom data from a non-galaxy database for the user to select and submit a job. I am using dynamic_options for loading such dynamic values, however to restrict data for a logged-in user I need to know the user id.

    So far I have tried many things including setting dynamic_options="load_dynamic_values($__user_id__) in the xml wrapper but it did not work. I know $__user_id__ can be passed to the tool as a command line arguments, however, my issue is to read user id even before the execution of main tool.


    I have also tried following code in a hope to grab the webapp session.

    ini_file = '/galaxy-dist/universe_wsgi.ini'

    conf_parser = ConfigParser.ConfigParser( {'here's.getcwd()} )

    conf_parser.read( ini_file )

    configuration = {}

    for key, value in conf_parser.items( "app:main" ):

    configuration[key] = value

    global_conf = { '__file__' : ini_file }

    app = galaxy.app.UniverseApplication(**configuration )



    But this generates following error.

    UnboundExecutionError: Parent instance <History at 0x581cdd0> is not bound to a Session; lazy load operation of attribute 'active_datasets' cannot proceed.

    Thanks for your help guys.

  • #2
    Originally posted by chipseq View Post
    I have posted this twice on Galaxy Dev list, however, I did not receive any response, therefore, I am posting this here in a hope that here might be the guy who could stop me pulling my few left hairs.
    I think the Galaxy dev list is the best place to ask, even if some folk do read both that and SEQanswers.

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Essential Discoveries and Tools in Epitranscriptomics
      by seqadmin


      The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
      Yesterday, 07:01 AM
    • seqadmin
      Current Approaches to Protein Sequencing
      by seqadmin


      Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
      04-04-2024, 04:25 PM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 04-11-2024, 12:08 PM
    0 responses
    39 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 10:19 PM
    0 responses
    41 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-10-2024, 09:21 AM
    0 responses
    35 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-04-2024, 09:00 AM
    0 responses
    55 views
    0 likes
    Last Post seqadmin  
    Working...
    X