Comments (30)
我之前看到的问题是如果选择一些数据集后再去掉选择就会出问题。
from ucscxenashiny.
下载路径自定义也是一个问题。
from ucscxenashiny.
Load Data 无用 去掉。
第二个显示下载进度,并支持下载目录设定。
URL list 使用 wget -c
from ucscxenashiny.
使用 Shinyfiles 包 https://github.com/thomasp85/shinyFiles
server
library(shiny)
library(shinyFiles)
shinyServer(function(input, output, session) {
# dir
shinyDirChoose(input, 'dir', roots = c(home = '~'), filetypes = c('', 'txt'))
dir <- reactive(input$dir)
output$dir <- renderPrint(dir())
# path
path <- reactive({
home <- normalizePath("~")
file.path(home, paste(unlist(dir()$path[-1]), collapse = .Platform$file.sep))
})
# files
output$files <- renderPrint(list.files(path()))
})
ui
library(shiny)
library(shinyFiles)
shinyUI(fluidPage(sidebarLayout(
sidebarPanel(
shinyDirButton("dir", "Chose directory", "Upload")
),
mainPanel(
h4("output$dir"),
verbatimTextOutput("dir"), br(),
h4("Files in that dir"),
verbatimTextOutput("files")
)
)))
from ucscxenashiny.
对数据集下载方式进行修改,由用户指定输出目录后,直接通过命令下载到对应目录下,另外输出整个下载的代码输出信息。
from ucscxenashiny.
1 是否可以添加数据概览功能,比如在GDC数据库,我一开始想看到主要包含哪些数据,比如临床表型,基因表达数据
2 metadata 可否增加单位unit,数据预处理的过程wrangling,输入数据的格式input data format
比较习惯看的时候metadata的特征放在行而不是列
3 This will check url status, please be patient.
这一步看能不能弹出窗口,而不是代码
4 这个tip要修改,一个是不易懂,另一个就是格式太混乱
from ucscxenashiny.
第 1 点可以在 repository 中筛选查看到,单独实现比较困难。
第二点 unit 增加了,metadata 应该基本都放上去了吧,后续可以增加,本身能够获取的元数据还是蛮多的。
第 3 点这个输出是 UCSCXenatools 提供的,你可以试着加一些提示
from ucscxenashiny.
Warning: Error in data.frame: arguments imply differing number of rows: 2, 0
[No stack trace available]
有时候选择的变换会导致报错,这种问题原因和解决办法有吗? @Byronxy
from ucscxenashiny.
左侧的选择栏可以在最外围加一个矩形框吗? @Byronxy
我尽量这周把下载的相关问题解决掉。
from ucscxenashiny.
修改了下布局,但感觉使用类似 https://shiny.rstudio.com/gallery/update-input-demo.html 实现可能更好,明天试下。
from ucscxenashiny.
@Byronxy title 与边框的距离有没有办法调小?
from ucscxenashiny.
@kaigu1990 我们之前讨论的下载方式的改变有解决方案了吗?
from ucscxenashiny.
@ShixiangWang 我用shinyFiles包的shinyDirButton
函数来指定输出目录,然后直接调用UCSCXenaTools::XenaDownload
来下载文件,经测试是可行的,但是还无法将下载过程的产生的message发送到shiny的modal中;另外设想是再加一个pregress,但我发现点击后会出现R自带的那个下载进度条,所以不清楚是否还有加进度条的必要了
from ucscxenashiny.
进度条暂时可以不用加,下载过程的信息能否使用代码输出框传输到shiny上?我记得有个 shiny::verbatimTextOutput()
from ucscxenashiny.
你的意思是下载的message是我们自己写?还是需要抓取download函数输出的message;如果是前者的话确实按照你说的方法就可以输出文本了,但是后者的话应该怎么实现呢
对于进度条,一种解决办法是不用UCSCXenaTools::XenaDownload
,而采用httr::GET
以及shinyhttr::progress
,可参照:https://www.rdocumentation.org/packages/shinyhttr/versions/1.0.0
from ucscxenashiny.
是不是可以使用 https://shiny.rstudio.com/reference/shiny/latest/renderPrint.html 来输出命令的输出到 Shiny?
如果你使用 GET 和 progress 组合实现了进度展示和数据下载也是可以的,那就不需要输出 download 运行信息了?
哪一种更好处理呢?
from ucscxenashiny.
我测试了下,还是无法抓取到download运行信息,可能还是建议采用shinyhttr的方法
from ucscxenashiny.
@kaigu1990 好,你试一试。XenaQuery 已经提供了链接地址,所以使用 GET 应该也还可以,后续需要注意下载数据的完整性检查之类的问题。
from ucscxenashiny.
@Byronxy 你查一下你最近的代码修改怎么导致 Home 和 Repository 页面都显示不正常了,我都没看懂为什么
from ucscxenashiny.
@Byronxy 你查一下你最近的代码修改怎么导致 Home 和 Repository 页面都显示不正常了,我都没看懂为什么
已经解决
from ucscxenashiny.
我测试了一下,使用 devtools::load_all()之后,runApp,这个下载是可以指定路径的。但是重新安装包,然后使用app_run(),这个下载还是不行 @kaigu1990 @ShixiangWang
from ucscxenashiny.
我重新克隆的仓库也没有办法看到指定下载
from ucscxenashiny.
从commit 情况来看,顾凯还没有更新下载方面的修改呢~这个后面再讨论
from ucscxenashiny.
额,我看了下,是因为我添加的代码不在了,是我昨天没提交成功嘛?我再提交一次
from ucscxenashiny.
应该是没有 commit 没有代码增删的记录啊
from ucscxenashiny.
@kaigu1990 我使用浏览器用 Shiny 发现是看不到下载进度的,这样用户没办法判定下载已经完成,得想一个解决办法。
from ucscxenashiny.
@ShixiangWang 我用网页试了下,其实还是会有进度的,需要用户自己点开,我截图红色圈的部分;另外我尝试加个假进度条(即进度条变化不是实时的,而是等下载完成后直接从0到100%,可见蓝色圈的部分)
from ucscxenashiny.
@kaigu1990 好,暂时这样,主要是有一个明确的提示就会好很多了。
from ucscxenashiny.
我修改了repository,添加了progress and waiter;但是“有时候选择的变换会导致报错,这种问题原因和解决办法有吗”这个问题有时有,有时没。。。你们知道是哪方面的原因嘛
from ucscxenashiny.
我再看看
from ucscxenashiny.
Related Issues (20)
- Querying chromosome coordinates, like chr1:68044026-68054909 HOT 14
- Is shiny.hiplot-academic.com down worldwide? HOT 3
- Error in hiplot - Quick PanCancer analysis of the Stemness/TMI/MSI feature at https://shiny.hiplot.cn/ucsc-xena-shiny/ HOT 5
- TCGA: Molecule -Molecule correlation - Gene methylation and mRNA metrics HOT 13
- Is https://shiny.hiplot.cn/ucsc-xena-shiny/ browser down? HOT 4
- enhance the data query and analysis of methylation data HOT 13
- SIGNATURES PROBLEMS FOR CCLE DATA HOT 5
- button layout HOT 2
- General Analysis优化 HOT 1
- Gene signatures failed to plot in hiplot and RStudio (ref. last version of UCSCXenaShiny v1.1.12 based on UCSCXenaTools v1.4.8) HOT 5
- UCSCXenaShiny_issue Incorrect methylation data and plot last update version - Quick PanCan Analysis' feature, particularly in the TCGA Molecule to Molecule HOT 3
- Recurrent Error with Composed Gene Symbols in Gene Signatures using XenaShiny HOT 4
- 输入栏切换 HOT 1
- Request for R Code for TCGA Association Analysis Features in Xena hiplot HOT 1
- Issue with Accessing "cnv_gistic2" Data-type in UCSCXenaShiny v2.0.0 based on UCSCXenaTools v1.4.8 HOT 14
- Discussion about new option
- 原始数据下载相关 HOT 1
- Error in <reactive>: object '.opt_pancan' not found HOT 4
- 部署更新 HOT 5
- Unable to perform CNA vs. gene expression analysis in TCGA pan-cancer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ucscxenashiny.