Skip to content

Commit

Permalink
bugfix: issue with VCF files
Browse files Browse the repository at this point in the history
  • Loading branch information
gladkia committed Aug 16, 2024
1 parent f67a50f commit 11887bd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: igvShiny
Title: igvShiny: a wrapper of Integrative Genomics Viewer (IGV - an interactive
tool for visualization and exploration integrated genomic data)
Version: 1.0.1
Date: 2024-08-10
Version: 1.0.2
Date: 2024-08-16
Authors@R: c(
person("Paul","Shannon", role = c("aut"),
email = "[email protected]"),
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## igvShiny 1.0.2 - 2024-08-16
* fix issue with VCF files

## igvShiny 1.0.1 - 2024-08-10
* fix issue with custom files not working properly

Expand Down
11 changes: 6 additions & 5 deletions R/igvShiny.R
Original file line number Diff line number Diff line change
Expand Up @@ -741,15 +741,16 @@ loadVcfTrack <- function(session,

state[["userAddedTracks"]] <-
unique(c(state[["userAddedTracks"]], trackName))
path <- file.path(get_tracks_dir(), "tmp.vcf")
lmsg <- sprintf("igvShiny::loadVcfTrack, about to write to file '%s'", path)
temp.file <- tempfile(tmpdir = get_tracks_dir(), fileext = ".vcf")
lmsg <- sprintf("igvShiny::loadVcfTrack, about to write to file '%s'", temp.file)
flog.debug(lmsg)
VariantAnnotation::writeVcf(vcfData, path)
VariantAnnotation::writeVcf(vcfData, temp.file)
lmsg2 <- sprintf("igvShiny::loadVcfTrack, file.exists(%s)? %s",
path,
file.exists(path))
temp.file,
file.exists(temp.file))
flog.debug(lmsg2)

path <- file.path("tracks", basename(temp.file))
message <-
list(
elementID = id,
Expand Down

0 comments on commit 11887bd

Please sign in to comment.