Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update demo #70

Merged
merged 4 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: igvShiny
Title: igvShiny: a wrapper of Integrative Genomics Viewer (IGV - an interactive
tool for visualization and exploration integrated genomic data)
Version: 0.99.2
Version: 0.99.3
Date: 2024-02-08
Authors@R: c(
person("Paul","Shannon", role = c("aut"),
Expand All @@ -20,14 +20,6 @@ Depends:
GenomicRanges,
methods,
shiny
Suggests:
BiocStyle,
GenomicAlignments,
knitr,
rtracklayer,
RUnit,
shinytest2,
VariantAnnotation
Imports:
BiocGenerics,
checkmate,
Expand All @@ -39,6 +31,15 @@ Imports:
randomcoloR,
RCurl,
utils
Suggests:
BiocStyle,
GenomicAlignments,
knitr,
Rsamtools,
rtracklayer,
RUnit,
shinytest2,
VariantAnnotation
biocViews: Software, ShinyApps, Sequencing, Coverage
License: MIT + file LICENSE
Encoding: UTF-8
Expand Down
16 changes: 10 additions & 6 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
## 0.99.2 (2024-02-09)
- fix some Bioconductor NOTEs
## igvShiny 0.99.3 - 2024-02-16
* fix bug in function loadBamTrackFromLocalData
* improvge way of loading BAM files - show mismatches

## 0.99.1 (2024-02-05)
- fix some Bioconductor NOTEs
## igvShiny 0.99.2 - 2024-02-09
* fix some Bioconductor NOTEs

## 0.99.0 (2024-02-04)
- make the first Bioconductor release
## igvShiny 0.99.1 - 2024-02-05
* fix some Bioconductor NOTEs

## igvShiny 0.99.0 - 2024-02-04
* make the first Bioconductor release

6 changes: 4 additions & 2 deletions R/igvShiny.R
Original file line number Diff line number Diff line change
Expand Up @@ -926,17 +926,19 @@ loadBamTrackFromLocalData <-
displayMode = "EXPANDED") {
if (!requireNamespace("rtracklayer"))
stop("install rtracklayer to use loadBamTrackFromLocalData")
if (!requireNamespace("Rsamtools"))
stop("install Rsamtools to use loadBamTrackFromLocalData")
if (deleteTracksOfSameName) {
removeTracksByName(session, id, trackName)

}

t_dir <- get_tracks_dir()
fpath <- tempfile(tmpdir = t_dir, fileext = ".bam")

lmsg <-
sprintf("igvShiny::load bam from local data, about to write to file '%s'",
file.path)
fpath)
flog.debug(lmsg)
rtracklayer::export(data, fpath, format = "BAM")

Expand Down
4 changes: 2 additions & 2 deletions inst/demos/igvShinyDemo.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ server = function(input, output, session) {
printf("---- addBamLocalFileButton")
showGenomicRegion(session, id="igvShiny_0", "chr21:10,397,614-10,423,341")
bamFile <- system.file(package="igvShiny", "extdata", "tumor.bam")
x <- readGAlignments(bamFile)
x <- readGAlignments(bamFile, param = Rsamtools::ScanBamParam(what="seq"))
loadBamTrackFromLocalData(session, id="igvShiny_0", trackName="tumor.bam", data=x)
})

Expand Down Expand Up @@ -261,4 +261,4 @@ if(grepl("hagfish", Sys.info()[["nodename"]]) & !interactive()){
runApp(shinyApp(ui, server), port=6867)
} else {
shinyApp(ui, server)
}
}
Loading