Skip to content

Commit

Permalink
add two new queries from xenaPython
Browse files Browse the repository at this point in the history
  • Loading branch information
ShixiangWang committed Aug 21, 2023
1 parent e383edd commit 19f2cad
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: UCSCXenaTools
Title: Download and Explore Datasets from UCSC Xena Data Hubs
Version: 1.4.8
Version: 1.5.0
Authors@R:
c(person(given = "Shixiang",
family = "Wang",
Expand Down Expand Up @@ -57,4 +57,4 @@ VignetteBuilder:
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.0
RoxygenNote: 7.2.3
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# UCSCXenaTools 1.5.0

- Added two new queries from xenaPython

# UCSCXenaTools 1.4.8

- Updated to latest Xena dataset list.
Expand Down
7 changes: 7 additions & 0 deletions inst/queries/datasetSources.xq
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
; datasetSources
(fn [dataset]
(query {:select [:source.name :source.hash]
:from [:dataset]
:join [:dataset_source [:= :dataset.id :dataset_id]
:source [:= :source.id :source_id]]
:where [:= :dataset.name dataset]}))
3 changes: 3 additions & 0 deletions inst/queries/datasetStatus.xq
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
; datasetStatus
(fn [dataset]
(query {:select [:status :text] :from [:dataset] :where [:= :name dataset]}))

0 comments on commit 19f2cad

Please sign in to comment.