comparison chat_analysis.xml @ 10:e8cdf238cc02 draft

planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 24ca42c53d1206fe9cd5e15fc63da9ba54b2a230
author goeckslab
date Sat, 21 Jun 2025 05:23:35 +0000
parents ebff1089e004
children 30ddc96b5818
comparison
equal deleted inserted replaced
9:ebff1089e004 10:e8cdf238cc02
22 echo "Starting Streamlit" && 22 echo "Starting Streamlit" &&
23 echo "working dir now: `pwd`" && 23 echo "working dir now: `pwd`" &&
24 mkdir -p outputs_dir && 24 mkdir -p outputs_dir &&
25 #set $sanitized_input_dataset = re.sub('[^\w\-_\.]', '_', $input_dataset.element_identifier.strip()) 25 #set $sanitized_input_dataset = re.sub('[^\w\-_\.]', '_', $input_dataset.element_identifier.strip())
26 ln -sf '$input_dataset' "./${sanitized_input_dataset}"; 26 ln -sf '$input_dataset' "./${sanitized_input_dataset}";
27 ln -sf '$input_dataset' "outputs_dir/${sanitized_input_dataset}";
27 echo "sanitized input dataset: $sanitized_input_dataset" && 28 echo "sanitized input dataset: $sanitized_input_dataset" &&
28 echo "input dataset: $input_dataset" && 29 echo "input dataset: $input_dataset" &&
29 echo "$input_dataset.ext" && 30 echo "$input_dataset.ext" &&
30 ln -sf $__tool_directory__/.env /ChatAnalysis/.env && 31 python /ChatAnalysis/dspy_agent/chat_dspy.py
31 python /ChatAnalysis/chat_dspy.py 32 --user_id "$__user_name__"
32 --user_id "$__user_email__"
33 --openai_key_file "$openai_api_key_file" 33 --openai_key_file "$openai_api_key_file"
34 --groq_key_file "$groq_api_key_file" 34 --groq_key_file "$groq_api_key_file"
35 --chat_history "$chat_history" 35 --chat_history "$chat_history"
36 --outputs_dir "./outputs_dir" 36 --outputs_dir "./outputs_dir"
37 --input_file "$input_dataset" 37 --input_file "$input_dataset"
38 --input_type "$input_dataset.ext" && 38 --input_type "$input_dataset.ext"
39 --file_name "${sanitized_input_dataset}" &&
39 echo "finished" && 40 echo "finished" &&
40 echo "working dir now: '.' " 41 echo "working dir now: '.' "
41 42
42 ]]> 43 ]]>
43 </command> 44 </command>
52 </configfiles> 53 </configfiles>
53 <stdio> 54 <stdio>
54 <exit_code range="0:0" level="log"/> 55 <exit_code range="0:0" level="log"/>
55 </stdio> 56 </stdio>
56 <inputs> 57 <inputs>
57 <param name="input_dataset" type="data" format="csv,tsv,h5ad,xlsx,xls,json,parquet,h5,fa,fasta,vcf,gtf,gff,bed" label="Data you want to chat with" optional="false"/> 58 <param name="input_dataset" type="data" format="csv,tsv,h5ad,xlsx,xls" label="Data you want to chat with" optional="false"/>
58 </inputs> 59 </inputs>
59 <outputs> 60 <outputs>
60 <data name="chat_history" format="json" label="${tool.name} -- chat history json on ${on_string} -- use to restore chat history next time"/> 61 <data name="chat_history" format="json" label="${tool.name} -- chat history json on ${on_string} -- use to restore chat history next time"/>
61 <collection name="generated_files" type="list" label="${tool.name} -- generated files"> 62 <collection name="generated_files" type="list" label="${tool.name} -- generated files">
62 <discover_datasets pattern="__name_and_ext__" directory="generated_files" /> 63 <discover_datasets pattern="__name_and_ext__" directory="generated_files" />