Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

readVcf(), VariantAnnotation and shiny compatibility

オープン
#77 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
r

調査の方向性

まず、示されている 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 はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Bioconductor/VariantAnnotation のほかの issue

Bioconductor/VariantAnnotation の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。