Open main menu
首页
专栏
课程
分类
归档
Chat
Sci-Hub
谷歌学术
Libgen
GitHub镜像
登录/注册
搜索
关闭
Previous
Previous
Next
Next
惊!有人用chatGPT 零代码开发了一个TBtools插件!可以画热图!
sockstack
/
241
/
2023-11-14 11:47:58
<p><span style="color: red; font-size: 18px">ChatGPT 可用网址,仅供交流学习使用,如对您有所帮助,请收藏并推荐给需要的朋友。</span><br><a href="https://ckai.xyz/?sockstack§ion=detail" target="__blank">https://ckai.xyz</a><br><br></p> <article class="_2rhmJa"><h3>写在前面</h3> <p>这两三天,chatGPT 似乎是活了一把。不过大家来来去去都是玩一玩。一开始可能觉得有趣,但这个跟玩游戏一样,过去了就是过去了。我想试试看是否有一些不一样。比如,我们能不能啥代码也不写,啥工具几乎也不调用,直接开发一个 TBtools 插件。答案,是「真的可以」。<br> 说实话,这个我确实也没想到,不过很有意思,于是记录下来。大体包括下述步骤:</p> <ol> <li>访问 chatGPT</li> <li>让 chatGPT 帮忙写shinyApp</li> <li>复制代码,黏贴代码</li> <li>导出插件</li> <li>分发、安装和使用插件</li> </ol> <p>汇总如下:</p> <h3>访问 chatGPT</h3> <p>首先,你需要能使用 chatGPT 。在国内,那么可以用这个镜像</p> <div class="_2Uzcx_"> <button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewbox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button><pre class="line-numbers language-cpp"><code class=" language-cpp">https<span class="token operator">:</span><span class="token operator">/</span><span class="token operator">/</span>gpt<span class="token punctuation">.</span>chatapi<span class="token punctuation">.</span>art<span class="token operator">/</span> <span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre> </div> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 483px; background-color: transparent;"> <div class="image-container-fill" style="padding-bottom: 68.86%;"></div> <div class="image-view" data-width="2418" data-height="1665"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-4b69b2eec272c4ae.png" data-original-width="2418" data-original-height="1665" data-original-format="image/png" data-original-filesize="252803" data-image-index="0" style="cursor: zoom-in;" class="" src="//upload-images.jianshu.io/upload_images/10518391-4b69b2eec272c4ae.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1200/format/webp"></div> </div> <div class="image-caption"></div> </div> <br> <p>当然,如果你那边网络不错,或许可以自己花1块钱,体验会更好一些。</p> <h3>让 chatGPT 帮忙写shinyApp</h3> <p>用R语言写一个pheatmap的shinyApp,支持行列聚类调整</p> <br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 483px;"> <div class="image-container-fill" style="padding-bottom: 68.86%;"></div> <div class="image-view" data-width="2418" data-height="1665"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-a06a8fbd69bc6789.png" data-original-width="2418" data-original-height="1665" data-original-format="image/png" data-original-filesize="269443" data-image-index="1" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 483px;"> <div class="image-container-fill" style="padding-bottom: 68.86%;"></div> <div class="image-view" data-width="2418" data-height="1665"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-261b9b3e4704310f.png" data-original-width="2418" data-original-height="1665" data-original-format="image/png" data-original-filesize="289165" data-image-index="2" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> <p>咱们比较有经验,如果每次运行都 install package 就不是很好,所以希望不要每次都安装,先检测一遍</p> <br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 521px;"> <div class="image-container-fill" style="padding-bottom: 74.29%;"></div> <div class="image-view" data-width="1509" data-height="1121"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-db0aedc411da1070.png" data-original-width="1509" data-original-height="1121" data-original-format="image/png" data-original-filesize="122485" data-image-index="3" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> 写完了就喊他整合一下全面代码到一个页面<br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 589px;"> <div class="image-container-fill" style="padding-bottom: 84.09%;"></div> <div class="image-view" data-width="1640" data-height="1379"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-418bd5f53eef9425.png" data-original-width="1640" data-original-height="1379" data-original-format="image/png" data-original-filesize="96564" data-image-index="4" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 490px;"> <div class="image-container-fill" style="padding-bottom: 69.89%;"></div> <div class="image-view" data-width="1657" data-height="1158"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-517e6a6ea92cb40c.png" data-original-width="1657" data-original-height="1158" data-original-format="image/png" data-original-filesize="149641" data-image-index="5" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> <p>恩,有时候他听不太懂,就说得直白一点</p> <br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 546px;"> <div class="image-container-fill" style="padding-bottom: 77.94%;"></div> <div class="image-view" data-width="1709" data-height="1332"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-d3c74f5f88550b6d.png" data-original-width="1709" data-original-height="1332" data-original-format="image/png" data-original-filesize="153084" data-image-index="6" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 1716px;"> <div class="image-container-fill" style="padding-bottom: 245.1%;"></div> <div class="image-view" data-width="1481" data-height="3630"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-093a10c3b125ddd2.png" data-original-width="1481" data-original-height="3630" data-original-format="image/png" data-original-filesize="343053" data-image-index="7" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> <p>可以发现,效果还不错,那么我们就可以开始做 TBtools 的 R 插件了,我将这几个文件放到</p> <div class="_2Uzcx_"> <button class="VJbwyy" type="button" aria-label="复制代码"><i aria-label="icon: copy" class="anticon anticon-copy"><svg viewbox="64 64 896 896" focusable="false" class="" data-icon="copy" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"></path></svg></i></button><pre class="line-numbers language-cpp"><code class=" language-cpp">https<span class="token operator">:</span><span class="token operator">/</span><span class="token operator">/</span>tbtools<span class="token punctuation">.</span>cowtransfer<span class="token punctuation">.</span>com<span class="token operator">/</span>s<span class="token operator">/</span><span class="token number">4</span>d39a0db624347 <span aria-hidden="true" class="line-numbers-rows"><span></span></span></code></pre> </div> <p>感兴趣的朋友可以下载</p> <br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 639px;"> <div class="image-container-fill" style="padding-bottom: 91.25%;"></div> <div class="image-view" data-width="1680" data-height="1533"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-1fe04ec612da687b.png" data-original-width="1680" data-original-height="1533" data-original-format="image/png" data-original-filesize="245123" data-image-index="8" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 578px;"> <div class="image-container-fill" style="padding-bottom: 82.47%;"></div> <div class="image-view" data-width="924" data-height="762"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-aecf67ea2ea1ddfa.png" data-original-width="924" data-original-height="762" data-original-format="image/png" data-original-filesize="67129" data-image-index="9" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 480px;"> <div class="image-container-fill" style="padding-bottom: 68.49%;"></div> <div class="image-view" data-width="2225" data-height="1524"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-902193607c0baf8c.png" data-original-width="2225" data-original-height="1524" data-original-format="image/png" data-original-filesize="247663" data-image-index="10" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> <p>完美,虽然还可以看到有一点瑕疵</p> <br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 328px;"> <div class="image-container-fill" style="padding-bottom: 46.739999999999995%;"></div> <div class="image-view" data-width="2129" data-height="995"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-5dfd20f30906f86b.png" data-original-width="2129" data-original-height="995" data-original-format="image/png" data-original-filesize="147451" data-image-index="11" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> <p>让他修改,但是他修改成数据集了,怀疑是中文翻译成英文出了一点问题</p> <br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 540px;"> <div class="image-container-fill" style="padding-bottom: 77.13%;"></div> <div class="image-view" data-width="1692" data-height="1305"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-4033253ba3bd439d.png" data-original-width="1692" data-original-height="1305" data-original-format="image/png" data-original-filesize="114870" data-image-index="12" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> 换个说法,直白一点,继续<br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 563px;"> <div class="image-container-fill" style="padding-bottom: 80.4%;"></div> <div class="image-view" data-width="1699" data-height="1366"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-e97a5a42a0877f3d.png" data-original-width="1699" data-original-height="1366" data-original-format="image/png" data-original-filesize="107401" data-image-index="13" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> 完美,搞定了<br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 400px;"> <div class="image-container-fill" style="padding-bottom: 31.7%;"></div> <div class="image-view" data-width="1262" data-height="400"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-5f8d993544639be7.png" data-original-width="1262" data-original-height="400" data-original-format="image/png" data-original-filesize="43083" data-image-index="14" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> <p>于是更新对应代码</p> <br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 459px;"> <div class="image-container-fill" style="padding-bottom: 65.42999999999999%;"></div> <div class="image-view" data-width="2219" data-height="1452"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-7a3998bb44d3998a.png" data-original-width="2219" data-original-height="1452" data-original-format="image/png" data-original-filesize="152403" data-image-index="15" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> 执行后,发现没有问题<br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 374px;"> <div class="image-container-fill" style="padding-bottom: 53.36%;"></div> <div class="image-view" data-width="2189" data-height="1168"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-86570e5b755cc53b.png" data-original-width="2189" data-original-height="1168" data-original-format="image/png" data-original-filesize="154484" data-image-index="16" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> 但是上传文件(制表符分隔,有报错)<br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 506px;"> <div class="image-container-fill" style="padding-bottom: 72.15%;"></div> <div class="image-view" data-width="1989" data-height="1435"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-8b33d7b1e001c654.png" data-original-width="1989" data-original-height="1435" data-original-format="image/png" data-original-filesize="139178" data-image-index="17" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> 跟老铁们聊了下这个报错,当然大体原来有闪过这个念头 <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 664px;"> <div class="image-container-fill" style="padding-bottom: 94.77%;"></div> <div class="image-view" data-width="1052" data-height="997"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-55701a71a8eecee1.png" data-original-width="1052" data-original-height="997" data-original-format="image/png" data-original-filesize="132699" data-image-index="18" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 688px;"> <div class="image-container-fill" style="padding-bottom: 40.089999999999996%;"></div> <div class="image-view" data-width="1716" data-height="688"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-0ee7eddcf0a76363.png" data-original-width="1716" data-original-height="688" data-original-format="image/png" data-original-filesize="90171" data-image-index="19" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <br> <p>最后测试下,没问题了。于是OK了,可以导出插件了。</p> <br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 405px;"> <div class="image-container-fill" style="padding-bottom: 57.78%;"></div> <div class="image-view" data-width="2101" data-height="1214"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-357dc331c55ddc23.png" data-original-width="2101" data-original-height="1214" data-original-format="image/png" data-original-filesize="205533" data-image-index="20" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <p>换个电脑,安装插件试试</p> <br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 538px;"> <div class="image-container-fill" style="padding-bottom: 76.84%;"></div> <div class="image-view" data-width="1524" data-height="1171"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-012099d6c3b17d8f.png" data-original-width="1524" data-original-height="1171" data-original-format="image/png" data-original-filesize="127649" data-image-index="21" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 538px;"> <div class="image-container-fill" style="padding-bottom: 76.84%;"></div> <div class="image-view" data-width="1524" data-height="1171"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-245eea1e39e157b1.png" data-original-width="1524" data-original-height="1171" data-original-format="image/png" data-original-filesize="72734" data-image-index="22" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 538px;"> <div class="image-container-fill" style="padding-bottom: 76.84%;"></div> <div class="image-view" data-width="1524" data-height="1171"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-d947325f9a48f552.png" data-original-width="1524" data-original-height="1171" data-original-format="image/png" data-original-filesize="50316" data-image-index="23" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 373px;"> <div class="image-container-fill" style="padding-bottom: 53.2%;"></div> <div class="image-view" data-width="1468" data-height="781"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-aee4c67cd0ea7d85.png" data-original-width="1468" data-original-height="781" data-original-format="image/png" data-original-filesize="120259" data-image-index="24" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <p>效果感觉不错,这样就一行代码也没写,然后开发一个20w TBtools 都可以用的 R-plugin....</p> <br> <div class="image-package"> <div class="image-container" style="max-width: 700px; max-height: 297px;"> <div class="image-container-fill" style="padding-bottom: 42.33%;"></div> <div class="image-view" data-width="3142" data-height="1330"><img referrerpolicy="no-referrer" data-original-src="//upload-images.jianshu.io/upload_images/10518391-640c2f6b38854b57.png" data-original-width="3142" data-original-height="1330" data-original-format="image/png" data-original-filesize="232526" data-image-index="25" style="cursor: zoom-in;" class="image-loading"></div> </div> <div class="image-caption"></div> </div> <h3>写在最后</h3> <p>整体感觉,这个工具对于做生物信息的朋友有一定用处,尤其是应用生物信息。简单来说,对于你来说,生物信息就是一个工具,解决一些简单的数据分析问题。需要一些简单的常用的代码,或许你就不用自己写.....<br> 当然,如果要用好,或许还是需要一些编程经验或者能力的。<br> 但也不得不说,如果你运气好,一次成型的代码,或许他也不小心会给出。我似乎在哪里看到,chatGPT 其实就是在几个最优选项中给你选了一个,同样的问题进去,出来的可能是其中某个。<br> Anyway,感觉不错。希望这个推文可以让一些用户具备插件开发能力。</p> </article>
惊!有人用chatGPT 零代码开发了一个TBtools插件!可以画热图!
作者
sockstack
许可协议
CC BY 4.0
发布于
2023-11-14
修改于
2025-01-21
上一篇:软件:常用 Linux 软件汇总,值得收藏
下一篇:无需编程 | 联用「chatGPT」和「TBtools」实现你的 idea,开发你梦寐以求的工具
尚未登录
登录 / 注册
文章分类
博客重构之路
5
Spring Boot简单入门
4
k8s 入门教程
0
MySQL 知识
1
NSQ 消息队列
0
ThinkPHP5 源码分析
5
使用 Docker 从零开始搭建私人代码仓库
3
日常开发汇总
4
标签列表
springboot
hyperf
swoole
webman
php
多线程
数据结构
docker
k8s
thinkphp
mysql
tailwindcss
flowbite
css
前端