Mercurial > repos > goeckslab > chatanalysis
comparison chat_analysis.xml @ 5:569f6683ef2d draft
planemo upload for repository https://github.com/goeckslab/ChatAnalysis commit a6103a83156aec5d739cae71b0507c5774731bb2
author | goeckslab |
---|---|
date | Mon, 12 May 2025 15:30:03 +0000 |
parents | dd4874a77f62 |
children | 1ee654186809 |
comparison
equal
deleted
inserted
replaced
4:dd4874a77f62 | 5:569f6683ef2d |
---|---|
1 <tool id="interactive_tool_chat_analysis" tool_type="interactive" name="Chat with your data" version="0.2"> | 1 <tool id="interactive_tool_chat_analysis" tool_type="interactive" name="Chat with your data" version="0.2.1"> |
2 <requirements> | 2 <requirements> |
3 <container type="docker"> | 3 <container type="docker"> |
4 quay.io/goeckslab/chatanalysis:smolagents | 4 quay.io/goeckslab/chatanalysis:release |
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> |
14 </url> | 14 </url> |
15 </entry_point> | 15 </entry_point> |
16 </entry_points> | 16 </entry_points> |
17 <command> | 17 <command> |
18 <![CDATA[ | 18 <![CDATA[ |
19 #import re | |
19 echo "Starting Streamlit" && | 20 echo "Starting Streamlit" && |
20 echo "working dir now: `pwd`" && | 21 echo "working dir now: `pwd`" && |
21 mkdir -p generate_files && | 22 mkdir -p generated_files && |
23 #set $sanitized_input_dataset = re.sub('[^\w\-_\.]', '_', $input_dataset.element_identifier.strip()) | |
24 ln -sf '$input_dataset' "./${sanitized_input_dataset}"; | |
25 echo "sanitized input dataset: $sanitized_input_dataset" && | |
22 echo "input dataset: $input_dataset" && | 26 echo "input dataset: $input_dataset" && |
23 echo "input dataset datatype: $dataset_type" && | 27 echo "$input_dataset.ext" && |
24 ln -sf $__tool_directory__/.env /ChatAnalysis/.env && | 28 ln -sf $__tool_directory__/.env /ChatAnalysis/.env && |
25 streamlit run /ChatAnalysis/smolagents_da.py | 29 streamlit run /ChatAnalysis/Chat.py |
26 "$__user_email__" | 30 "$__user_email__" |
27 "$openai_api_key_file" | 31 "$openai_api_key_file" |
28 "$groq_api_key_file" | 32 "$groq_api_key_file" |
29 "$chat_history" | 33 "$chat_history" |
30 "./generate_files" | 34 "./generated_files" |
31 "$input_dataset" | 35 "$input_dataset" |
32 "$dataset_type" | 36 "$input_dataset.ext" |
37 --browser.gatherUsageStats false && | |
38 echo "Streamlit finished" && | |
39 echo "working dir now: '.' " | |
40 | |
33 ]]> | 41 ]]> |
34 </command> | 42 </command> |
35 <configfiles> | 43 <configfiles> |
36 <configfile name="openai_api_key_file"><![CDATA[ | 44 <configfile name="openai_api_key_file"><![CDATA[ |
37 $__user__.extra_preferences.get('chatgpt|api_key') | 45 $__user__.extra_preferences.get('chatgpt|api_key') |
44 <stdio> | 52 <stdio> |
45 <exit_code range="0:0" level="log"/> | 53 <exit_code range="0:0" level="log"/> |
46 </stdio> | 54 </stdio> |
47 <inputs> | 55 <inputs> |
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"/> | 56 <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> | |
65 </inputs> | 57 </inputs> |
66 <outputs> | 58 <outputs> |
67 <data name="chat_history" format="json" label="${tool.name} -- chat history json on ${on_string} -- use to restore chat history next time"/> | 59 <data name="chat_history" format="json" label="${tool.name} -- chat history json on ${on_string} -- use to restore chat history next time"/> |
68 <collection name="generate_files" type="list" label="${tool.name} -- generated files"> | 60 <collection name="generated_files" type="list" label="${tool.name} -- generated files"> |
69 <discover_datasets pattern="__name_and_ext__" directory="generate_files" /> | 61 <discover_datasets pattern="__name_and_ext__" directory="generated_files" /> |
70 </collection> | 62 </collection> |
71 </outputs> | 63 </outputs> |
72 <tests> | 64 <tests> |
73 <test> | 65 <test> |
74 </test> | 66 </test> |