Mercurial > repos > goeckslab > chatanalysis
annotate chat_analysis.xml @ 4:dd4874a77f62 draft default tip
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
author | goeckslab |
---|---|
date | Tue, 25 Mar 2025 16:02:25 +0000 (9 days ago) |
parents | eaa8cead8adb |
children |
rev | line source |
---|---|
4
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
1 <tool id="interactive_tool_chat_analysis" tool_type="interactive" name="Chat with your data" version="0.2"> |
0
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
2 <requirements> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
3 <container type="docker"> |
4
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
4 quay.io/goeckslab/chatanalysis:smolagents |
0
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
5 </container> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
6 </requirements> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
7 <entry_points> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
8 <entry_point name="Chat with $input_dataset.element_identifier" requires_domain="True"> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
9 <port> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
10 8501 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
11 </port> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
12 <url> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
13 / |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
14 </url> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
15 </entry_point> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
16 </entry_points> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
17 <command> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
18 <![CDATA[ |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
19 echo "Starting Streamlit" && |
2
5c1018ad5eb3
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit f4ecf0087e42199a991ed4d9556e16cefdb7d4cb
goeckslab
parents:
1
diff
changeset
|
20 echo "working dir now: `pwd`" && |
4
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
21 mkdir -p generate_files && |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
22 echo "input dataset: $input_dataset" && |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
23 echo "input dataset datatype: $dataset_type" && |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
24 ln -sf $__tool_directory__/.env /ChatAnalysis/.env && |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
25 streamlit run /ChatAnalysis/smolagents_da.py |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
26 "$__user_email__" |
1
7b33a7a006c7
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents:
0
diff
changeset
|
27 "$openai_api_key_file" |
7b33a7a006c7
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents:
0
diff
changeset
|
28 "$groq_api_key_file" |
7b33a7a006c7
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents:
0
diff
changeset
|
29 "$chat_history" |
4
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
30 "./generate_files" |
1
7b33a7a006c7
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents:
0
diff
changeset
|
31 "$input_dataset" |
4
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
32 "$dataset_type" |
0
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
33 ]]> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
34 </command> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
35 <configfiles> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
36 <configfile name="openai_api_key_file"><![CDATA[ |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
37 $__user__.extra_preferences.get('chatgpt|api_key') |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
38 ]]></configfile> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
39 <configfile name="groq_api_key_file"><![CDATA[ |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
40 $__user__.extra_preferences.get('groq|api_key') |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
41 ]]> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
42 </configfile> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
43 </configfiles> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
44 <stdio> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
45 <exit_code range="0:0" level="log"/> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
46 </stdio> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
47 <inputs> |
4
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
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"/> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
49 <param name="dataset_type" type="select" label="The type of your dataset" > |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
50 <option value="csv">csv</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
51 <option value="tsv">tsv</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
52 <option value="h5ad">h5ad</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
53 <option value="xlsx">xlsx</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
54 <option value="xls">xls</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
55 <option value="json">json</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
56 <option value="parquet">parquet</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
57 <option value="h5">h5</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
58 <option value="fa">fa</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
59 <option value="fasta">fasta</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
60 <option value="vcf">vcf</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
61 <option value="gtf">gtf</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
62 <option value="gff">gff</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
63 <option value="bed">bed</option> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
64 </param> |
0
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
65 </inputs> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
66 <outputs> |
4
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
67 <data name="chat_history" format="json" label="${tool.name} -- chat history json on ${on_string} -- use to restore chat history next time"/> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
68 <collection name="generate_files" type="list" label="${tool.name} -- generated files"> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
69 <discover_datasets pattern="__name_and_ext__" directory="generate_files" /> |
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
70 </collection> |
0
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
71 </outputs> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
72 <tests> |
4
dd4874a77f62
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 81dd1e732f7264affc7b8acdf5ba174dbc0c32a9
goeckslab
parents:
3
diff
changeset
|
73 <test> |
0
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
74 </test> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
75 </tests> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
76 <help> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
77 Analyze and visualize a dataset with a Chat Agent. |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
78 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
79 Start a ChatAnalysis instance after selecting a dataset — we provide free access to some LLMs. |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
80 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
81 You are encouraged to use your own API keys, as the provided free access has limits. You can obtain a **free API key** for BambooLLM by signing up at https://pandas-ai.com and a **free API key** for Groq by signing up at https://groq.com. |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
82 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
83 If you wish to set the OpenAI API key beforehand, go to **User → Preferences → Manage Information → ChatGPT → OpenAI API Key**. This way, you won’t need to set the OpenAI API key each time you use the app. |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
84 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
85 Similarly, to set the Groq API key beforehand, navigate to **User → Preferences → Manage Information → Groq → API Key**. |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
86 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
87 Alternatively, you can set the API key directly in the ChatAnalysis instance after it has started. |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
88 </help> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
89 </tool> |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
90 |
be4bfd3e9342
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff
changeset
|
91 |