annotate chat_analysis.xml @ 2:5c1018ad5eb3 draft default tip

planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit f4ecf0087e42199a991ed4d9556e16cefdb7d4cb
author goeckslab
date Fri, 22 Nov 2024 01:31:04 +0000
parents 7b33a7a006c7
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
1 <tool id="interactive_tool_chat_analysis" tool_type="interactive" name="Chat with your data" version="0.1">
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">
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
4 quay.io/goeckslab/chatanalysis:main
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`" &&
0
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
21 mkdir -p plots &&
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
22 streamlit run /ChatAnalysis/chat_analysis.py
1
7b33a7a006c7 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents: 0
diff changeset
23 "$openai_api_key_file"
7b33a7a006c7 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents: 0
diff changeset
24 "$groq_api_key_file"
7b33a7a006c7 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents: 0
diff changeset
25 "$chat_history"
7b33a7a006c7 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents: 0
diff changeset
26 "$export_csv"
7b33a7a006c7 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents: 0
diff changeset
27 "./plots"
7b33a7a006c7 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 1aba9600459e8a3136e5516ece74eecd9cb4f5fc
goeckslab
parents: 0
diff changeset
28 "$input_dataset"
0
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
29 ]]>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
30 </command>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
31 <configfiles>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
32 <configfile name="openai_api_key_file"><![CDATA[
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
33 $__user__.extra_preferences.get('chatgpt|api_key')
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
34 ]]></configfile>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
35 <configfile name="groq_api_key_file"><![CDATA[
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
36 $__user__.extra_preferences.get('groq|api_key')
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
37 ]]>
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 </configfiles>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
40 <stdio>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
41 <exit_code range="0:0" level="log"/>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
42 </stdio>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
43 <inputs>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
44 <param name="input_dataset" type="data" format="csv,tabular" label="Data(csv or tsv) you want to chat with" optional="false"/>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
45 </inputs>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
46 <outputs>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
47 <data name="chat_history" format="html" label="${tool.name} -- chat history html on ${on_string}"/>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
48 <data name="export_csv" format="csv" label="${tool.name} -- the exported csv you selected on ${on_string}"/>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
49 <collection name="chat_plots" type="list" label="${tool.name} -- the generated plots on ${on_string}" >
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
50 <discover_datasets pattern="(?P&lt;designation&gt;.+)\.png" format="png" directory="plots" />
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
51 </collection>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
52 </outputs>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
53 <tests>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
54 <test expect_num_outputs="2">
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
55 <param name="input_dataset" value="test.csv"/>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
56 <output name="chat_history" file="chat_history.html" compare="sim_size" />
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
57 <output name="export_csv" file="exported.csv" compare="sim_size" />
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
58 </test>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
59 </tests>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
60 <help>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
61 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
62
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
63 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
64
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
65 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
66
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
67 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
68
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
69 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
70
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
71 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
72 </help>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
73 </tool>
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
74
be4bfd3e9342 planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit 2d72b2974a22a70ca07ed81baaa01e9ade8c1acc
goeckslab
parents:
diff changeset
75