readVcf(), VariantAnnotation and shiny compatibility
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- r
- 領域
- bioinformatics, data
調査の方向性
まず、示されている BSgenome オブジェクトを使い、readVcf()、subset()、predictCoding() で提供された Shiny の例を再現します。CollapsedVCF の結果が DT と predictCoding() にどのように渡されるかを調べ、それらのシグネチャで利用可能なメソッドを確認します。互換性の問題と、サポートされている変換または使用の経路が明確に確立されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi,
We are working on incorporating the readVcf function into our Shiny app, but it appears that Shiny is having trouble recognizing the object format.
After completing the upload, we received an error stating that 'data' must be either a matrix or a data frame and cannot be in the CollapsedVCF format. To address this issue, you may need to coerce the data to a matrix or data frame.
Is there any way to collapse the vcf to table that is compatible with shiny?
The same is when trying to use the function predictCoding()
Warning: Error in : unable to find an inherited method for function ‘predictCoding’ for signature ‘"CollapsedVCF", "BSgenome", "BSgenome", "missing"’
Many thanks
Sandrine
example .. but just for information....
library(shiny)
library(dplyr)
library(DT)
library(VariantAnnotation)
library(BSgenome.Hsapiens.UCSC.hg38)
txdb <- BSgenome.Hsapiens.UCSC.hg38
ui <- fluidPage(
titlePanel("VCF XPLORR"),
fileInput("fileInput", "Choose a VCF file", accept = c(".vcf", ".vcf.gz", ".maf"),
multiple = FALSE)
DTOutput("table")
)
server<-function(session, input,output){
options(shiny.maxRequestSize=40*1024^2)
data1 <- reactive({
validate(need(input$fileInput,""))
if (is.null(input$fileInput)) {
return(NULL)
} else {
raw_vcf_data <- readVcf(input$fileInput$datapath, 'hg38')
Perform filtering based on the FILTER column
filtered_vcf_data <- subset(raw_vcf_data, FILTER == "PASS")
coding <- predictCoding(filtered_vcf_data, txdb, seqSource=Hsapiens) %>%
as.data.frame()
return(coding)
})
output$table <-reactive({ renderDT({
if (!is.null(data1())) {
datatable(head(data1(), 5))
}
}})
}
shinyApp(ui = ui, server = server)
- 主要言語
- R
- スター
- 32
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Bioconductor/VariantAnnotation のほかの issue
-
refactor the package オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Bioconductor/VariantAnnotation#115 · コメント 4 件 ·
-
Bioconductor/VariantAnnotation#114 · リアクション 1 件 · 担当者 2 名 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Bioconductor/VariantAnnotation#113 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
Bioconductor/VariantAnnotation#88 · コメント 2 件 ·
Bioconductor/VariantAnnotation の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
robjhyndman/forecast#1220 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
JamesHWade/deputy#192 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
bug triage_needed
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pharmaverse/rtables#1123 · コメント 1 件 · リアクション 1 件 ·