readVcf(), VariantAnnotation and shiny compatibility
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- r
- Domaine
- bioinformatics, data
Piste de recherche
Commencez par reproduire l’exemple Shiny fourni à l’aide de readVcf(), subset() et predictCoding(), avec les objets BSgenome montrés. Examinez comment le résultat CollapsedVCF est transmis à DT et à predictCoding(), et vérifiez les méthodes disponibles pour ces signatures. Le travail est considéré comme terminé lorsque le problème de compatibilité et le chemin de conversion ou d’utilisation pris en charge sont clairement établis.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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)
- Langage dominant
- R
- Étoiles
- 32
- Forks
- 21
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Nous n'avons pas encore vérifié les fichiers d'installation de ce projet. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Bioconductor/VariantAnnotation
-
refactor the packageOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
Bioconductor/VariantAnnotation#115 · 4 commentaires ·
-
what is the "covr" condition of this package?Peut-être pris @vjcitn l’a pris il y a 81 jours. Ouverte
Bioconductor/VariantAnnotation#114 · 1 réaction · 2 personnes assignées ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Bioconductor/VariantAnnotation#113 · 2 commentaires ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
-
ensemblVEP::parseCSQToGRangesOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
Bioconductor/VariantAnnotation#88 · 2 commentaires ·
Toutes les issues de Bioconductor/VariantAnnotation
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
-
bug
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
tidymodels/textrecipes#332 ·
-
benchmark bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 Une demi-journée Accessibilité débutants 78/100
ThinkR-open/datadiff#59 ·