mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix get_chrom_info to take (and use) the tool in question.
This commit is contained in:
@@ -193,7 +193,7 @@ class DefaultToolAction( object ):
|
||||
|
||||
# Collect chromInfo dataset and add as parameters to incoming
|
||||
db_datasets = {}
|
||||
( chrom_info, db_dataset ) = trans.app.genome_builds.get_chrom_info( input_dbkey, trans=trans )
|
||||
( chrom_info, db_dataset ) = trans.app.genome_builds.get_chrom_info( input_dbkey, tool, trans=trans )
|
||||
if db_dataset:
|
||||
inp_data.update( { "chromInfo": db_dataset } )
|
||||
incoming[ "chromInfo" ] = chrom_info
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
Functionality for dealing with dbkeys.
|
||||
"""
|
||||
#dbkeys read from disk using builds.txt
|
||||
from galaxy.util import dbnames, galaxy_directory
|
||||
from galaxy.util import dbnames
|
||||
from galaxy.util.json import from_json_string
|
||||
from galaxy.util.odict import odict
|
||||
import os.path
|
||||
@@ -44,7 +44,7 @@ class GenomeBuilds( object ):
|
||||
rval.append( ( key, "%s (%s) [Custom]" % ( chrom_dict['name'], key ) ) )
|
||||
return rval
|
||||
|
||||
def get_chrom_info( self, dbkey, trans=None ):
|
||||
def get_chrom_info( self, dbkey, tool, trans=None ):
|
||||
chrom_info = None
|
||||
db_dataset = None
|
||||
# Collect chromInfo from custom builds
|
||||
|
||||
Reference in New Issue
Block a user