I'm generally able to submit a Galaxy job through the API (POST /api/tools) where the input is a specific history reference to a file (in this case below, it's a FASTA file reference history element.)
But, how do I submit a non-specific reference, such that it would pickup the last available FASTA history element?
{
"tool_id":"toolshed.g2.bx.psu.edu/repos/devteam/megablast_wrapper/megablast_wrapper/1.2.0",
"tool_version":"1.2.0",
"history_id": "f597429621d6eb2b",
"inputs":{
"input_query":{
"batch":false,
"values":[
{ // history element of the file (this works)
"hid": args.hid, // ie "219"
"id": args.id, // ie. "6000239ca29982"
"name": args.name, // ie "myfile.fa"
"src":"hda"
}
]
},
"source_select":"13apr2014-htgs", // db select
"word_size":"28",
"iden_cutoff":"90",
"evalue_cutoff":"0.001",
"filter_query":"yes"
}
};