Mercurial > repos > goeckslab > chatanalysis
comparison chat_analysis.xml @ 4:dd4874a77f62 draft
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
author | goeckslab |
---|---|
date | Tue, 25 Mar 2025 16:02:25 +0000 |
parents | eaa8cead8adb |
children | 569f6683ef2d |
comparison
equal
deleted
inserted
replaced
3:eaa8cead8adb | 4:dd4874a77f62 |
---|---|
1 <tool id="interactive_tool_chat_analysis" tool_type="interactive" name="Chat with your data" version="0.1"> | 1 <tool id="interactive_tool_chat_analysis" tool_type="interactive" name="Chat with your data" version="0.2"> |
2 <requirements> | 2 <requirements> |
3 <container type="docker"> | 3 <container type="docker"> |
4 quay.io/goeckslab/chatanalysis:main | 4 quay.io/goeckslab/chatanalysis:smolagents |
5 </container> | 5 </container> |
6 </requirements> | 6 </requirements> |
7 <entry_points> | 7 <entry_points> |
8 <entry_point name="Chat with $input_dataset.element_identifier" requires_domain="True"> | 8 <entry_point name="Chat with $input_dataset.element_identifier" requires_domain="True"> |
9 <port> | 9 <port> |
16 </entry_points> | 16 </entry_points> |
17 <command> | 17 <command> |
18 <![CDATA[ | 18 <![CDATA[ |
19 echo "Starting Streamlit" && | 19 echo "Starting Streamlit" && |
20 echo "working dir now: `pwd`" && | 20 echo "working dir now: `pwd`" && |
21 mkdir -p plots && | 21 mkdir -p generate_files && |
22 streamlit run /ChatAnalysis/chat_analysis.py | 22 echo "input dataset: $input_dataset" && |
23 echo "input dataset datatype: $dataset_type" && | |
24 ln -sf $__tool_directory__/.env /ChatAnalysis/.env && | |
25 streamlit run /ChatAnalysis/smolagents_da.py | |
26 "$__user_email__" | |
23 "$openai_api_key_file" | 27 "$openai_api_key_file" |
24 "$groq_api_key_file" | 28 "$groq_api_key_file" |
25 "$chat_history" | 29 "$chat_history" |
26 "$export_csv" | 30 "./generate_files" |
27 "./plots" | |
28 "$input_dataset" | 31 "$input_dataset" |
32 "$dataset_type" | |
29 ]]> | 33 ]]> |
30 </command> | 34 </command> |
31 <configfiles> | 35 <configfiles> |
32 <configfile name="openai_api_key_file"><![CDATA[ | 36 <configfile name="openai_api_key_file"><![CDATA[ |
33 $__user__.extra_preferences.get('chatgpt|api_key') | 37 $__user__.extra_preferences.get('chatgpt|api_key') |
39 </configfiles> | 43 </configfiles> |
40 <stdio> | 44 <stdio> |
41 <exit_code range="0:0" level="log"/> | 45 <exit_code range="0:0" level="log"/> |
42 </stdio> | 46 </stdio> |
43 <inputs> | 47 <inputs> |
44 <param name="input_dataset" type="data" format="csv,tabular" label="Data(csv or tsv) you want to chat with" optional="false"/> | 48 <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"/> |
49 <param name="dataset_type" type="select" label="The type of your dataset" > | |
50 <option value="csv">csv</option> | |
51 <option value="tsv">tsv</option> | |
52 <option value="h5ad">h5ad</option> | |
53 <option value="xlsx">xlsx</option> | |
54 <option value="xls">xls</option> | |
55 <option value="json">json</option> | |
56 <option value="parquet">parquet</option> | |
57 <option value="h5">h5</option> | |
58 <option value="fa">fa</option> | |
59 <option value="fasta">fasta</option> | |
60 <option value="vcf">vcf</option> | |
61 <option value="gtf">gtf</option> | |
62 <option value="gff">gff</option> | |
63 <option value="bed">bed</option> | |
64 </param> | |
45 </inputs> | 65 </inputs> |
46 <outputs> | 66 <outputs> |
47 <data name="chat_history" format="pdf" label="${tool.name} -- chat history pdf on ${on_string}"/> | 67 <data name="chat_history" format="json" label="${tool.name} -- chat history json on ${on_string} -- use to restore chat history next time"/> |
48 <data name="export_csv" format="csv" label="${tool.name} -- the exported csv you selected on ${on_string}"/> | 68 <collection name="generate_files" type="list" label="${tool.name} -- generated files"> |
69 <discover_datasets pattern="__name_and_ext__" directory="generate_files" /> | |
70 </collection> | |
49 </outputs> | 71 </outputs> |
50 <tests> | 72 <tests> |
51 <test expect_num_outputs="2"> | 73 <test> |
52 <param name="input_dataset" value="test.csv"/> | |
53 <output name="chat_history" file="chat_history.pdf" compare="sim_size" /> | |
54 <output name="export_csv" file="exported.csv" compare="sim_size" /> | |
55 </test> | 74 </test> |
56 </tests> | 75 </tests> |
57 <help> | 76 <help> |
58 Analyze and visualize a dataset with a Chat Agent. | 77 Analyze and visualize a dataset with a Chat Agent. |
59 | 78 |