Question: Calling a tool from bioblend
1
gravatar for tra
2.3 years ago by
tra • 50
United States of America
tra • 50 wrote:

Hi,

I am trying to call a tool from bioblend:

tool_inputs = {'input': vcf_ds['dataset_id'], 'g_option': True, 'null_filter': ''}
print(tool_inputs)
gi.tools.run_tool(ds_history['id'], vcf2tsv['id'], tool_inputs=tool_inputs)

The tool being called is actually the VCF to TSV converter. I have the history id and vcf2tsv id as the first parameters. The problem seems to be the input parameter of vcf2tsv: It is not accepting neither the dataset_id nor the id neither the hid. I get a SQL error where it seems that there is a SELECT on history_dataset_association.id that its being mappend to the input variable.

The id column on the history_dataset_association is a number (autoincrement, so it seams).

Do anyone has an idea on what I need to pass as an input parameter?

Many thanks!

bioblend • 674 views
ADD COMMENT • link • written 2.3 years ago by tra • 50
1
gravatar for Martin Čech
2.3 years ago by
Martin Čech ♦♦ 4.9k
United States
Martin Čech ♦♦ 4.9k wrote:

could this be the format of tool_inputs you are looking for?

ADD COMMENT • link written 2.3 years ago by Martin Čech ♦♦ 4.9k

Thanks, that is indeed it!

ADD REPLY • link written 2.3 years ago by tra • 50
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 176 users visited in the last hour