diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 457c4806..d57b5dd9 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -28,11 +28,11 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04, macos-12, macos-13, windows-2022]
- r: [4.1.3, 4.2.3, 4.3.0]
+ r: [4.1.3, 4.2.3, 4.3.1]
steps:
- name: checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: setup-r
uses: r-lib/actions/setup-r@v2
@@ -120,8 +120,7 @@ jobs:
shell: bash
if: ${{runner.os == 'Windows'}}
run: |
- pip install pandas
- pip install synapseclient
+ pip install 'synapseclient[pandas]'
- uses: r-lib/actions/setup-r-dependencies@v2
with:
@@ -201,7 +200,7 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: check-deployment-target
id: check-deployment-target
if: ${{github.event.action == 'published'}}
@@ -234,7 +233,7 @@ jobs:
# Before deoloying to RAN (which is an S3 bucket), authenticate to AWS using GitHub OIDC
- name: Assume AWS Role
- uses: aws-actions/configure-aws-credentials@v2
+ uses: aws-actions/configure-aws-credentials@v3
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::325565585839:role/sagebase-github-oidc-sage-bionetworks-synapser
@@ -269,13 +268,13 @@ jobs:
strategy:
matrix:
os: [ubuntu-22.04, windows-2022, macos-12]
- r: [4.1.3, 4.2.2]
+ r: [4.1.3, 4.2.2, 4.3.1]
runs-on: ${{ matrix.os }}
steps:
- name: checkout
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
- name: setup-r
uses: r-lib/actions/setup-r@v2
diff --git a/DESCRIPTION b/DESCRIPTION
index f7b64918..683211f2 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,7 +1,7 @@
Package: synapser
Type: Package
Title: R Language Bindings for Synapse API
-Version: 1.1.0
+Version: 1.2.0
Date: 2022-01-18
Authors@R: c(
person("Bruce", "Hoff", role = c("aut", "cre"), email = "bruce.hoff@sagebase.org"),
@@ -10,6 +10,7 @@ Authors@R: c(
Maintainer: Bruce Hoff Accessing DataView the entity’s metadata in the R console:
print(fileEntity)
-## File(_file_handle={'id': '128470724', 'etag': '7ea66756-bbea-4827-a5d6-86d610952575', 'createdBy': '3324230', 'createdOn': '2023-09-10T01:52:04.000Z', 'modifiedOn': '2023-09-10T01:52:04.000Z', 'concreteType': 'org.sagebionetworks.repo.model.file.S3FileHandle', 'contentType': 'application/octet-stream', 'contentMd5': '8465d33d9f407ef250ce519e92f300fb', 'fileName': 'file335b64fd60c', 'storageLocationId': 1, 'contentSize': 23, 'status': 'AVAILABLE', 'bucketName': 'proddata.sagebase.org', 'key': '3324230/a5f347b4-b614-4740-861f-29db3b84bff6/file335b64fd60c', 'isPreview': False, 'externalURL': None}, createdBy='3324230', modifiedBy='3324230', files=['file335b64fd60c'], synapseStore=True, cacheDir='/var/folders/zl/j6z0kpys2gl7pwc1x63w0gwr001lqt/T/RtmpE2HGEb', path='/var/folders/zl/j6z0kpys2gl7pwc1x63w0gwr001lqt/T/RtmpE2HGEb/file335b64fd60c', createdOn='2023-09-10T01:52:04.003Z', parentId='syn52417363', etag='d01545de-61aa-4fa3-a770-c7545a46e69e', concreteType='org.sagebionetworks.repo.model.FileEntity', versionNumber=1, id='syn52417364', isLatestVersion=True, modifiedOn='2023-09-10T01:52:04.176Z', name='file335b64fd60c', dataFileHandleId='128470724', versionLabel='1')
This is one simple way to read in a small matrix (we load just the first few rows):
@@ -286,7 +286,7 @@Organizing Data in a Project## [1] "Data" ## ## [[1]]$id -## [1] "syn52417365" +## [1] "syn52417560" ## ## [[1]]$type ## [1] "org.sagebionetworks.repo.model.Folder" @@ -301,13 +301,13 @@
Organizing Data in a Project## [1] TRUE ## ## [[1]]$benefactorId -## [1] 52417363 +## [1] 52417558 ## ## [[1]]$createdOn -## [1] "2023-09-10T01:52:05.690Z" +## [1] "2023-09-10T05:57:35.816Z" ## ## [[1]]$modifiedOn -## [1] "2023-09-10T01:52:05.840Z" +## [1] "2023-09-10T05:57:36.006Z" ## ## [[1]]$createdBy ## [1] "3324230" @@ -318,10 +318,10 @@
Organizing Data in a Project## ## [[2]] ## [[2]]$name -## [1] "file335b64fd60c" +## [1] "filed50b25528b1" ## ## [[2]]$id -## [1] "syn52417364" +## [1] "syn52417559" ## ## [[2]]$type ## [1] "org.sagebionetworks.repo.model.FileEntity" @@ -336,13 +336,13 @@
Organizing Data in a Project## [1] TRUE ## ## [[2]]$benefactorId -## [1] 52417363 +## [1] 52417558 ## ## [[2]]$createdOn -## [1] "2023-09-10T01:52:04.003Z" +## [1] "2023-09-10T05:57:33.808Z" ## ## [[2]]$modifiedOn -## [1] "2023-09-10T01:52:04.176Z" +## [1] "2023-09-10T05:57:34.009Z" ## ## [[2]]$createdBy ## [1] "3324230" @@ -358,7 +358,7 @@
Organizing Data in a Project## [1] "Data" ## ## [[1]]$id -## [1] "syn52417365" +## [1] "syn52417560" ## ## [[1]]$type ## [1] "org.sagebionetworks.repo.model.Folder" @@ -373,13 +373,13 @@
Organizing Data in a Project## [1] TRUE ## ## [[1]]$benefactorId -## [1] 52417363 +## [1] 52417558 ## ## [[1]]$createdOn -## [1] "2023-09-10T01:52:05.690Z" +## [1] "2023-09-10T05:57:35.816Z" ## ## [[1]]$modifiedOn -## [1] "2023-09-10T01:52:05.840Z" +## [1] "2023-09-10T05:57:36.006Z" ## ## [[1]]$createdBy ## [1] "3324230" @@ -390,10 +390,10 @@
Organizing Data in a Project## ## [[2]] ## [[2]]$name -## [1] "file335b64fd60c" +## [1] "filed50b25528b1" ## ## [[2]]$id -## [1] "syn52417364" +## [1] "syn52417559" ## ## [[2]]$type ## [1] "org.sagebionetworks.repo.model.FileEntity" @@ -408,13 +408,13 @@
Organizing Data in a Project## [1] TRUE ## ## [[2]]$benefactorId -## [1] 52417363 +## [1] 52417558 ## ## [[2]]$createdOn -## [1] "2023-09-10T01:52:04.003Z" +## [1] "2023-09-10T05:57:33.808Z" ## ## [[2]]$modifiedOn -## [1] "2023-09-10T01:52:04.176Z" +## [1] "2023-09-10T05:57:34.009Z" ## ## [[2]]$createdBy ## [1] "3324230" @@ -437,7 +437,7 @@
Organizing Data in a Project## [1] "Data" ## ## $id -## [1] "syn52417365" +## [1] "syn52417560" ## ## $type ## [1] "org.sagebionetworks.repo.model.Folder" @@ -452,13 +452,13 @@
Organizing Data in a Project## [1] TRUE ## ## $benefactorId -## [1] 52417363 +## [1] 52417558 ## ## $createdOn -## [1] "2023-09-10T01:52:05.690Z" +## [1] "2023-09-10T05:57:35.816Z" ## ## $modifiedOn -## [1] "2023-09-10T01:52:05.840Z" +## [1] "2023-09-10T05:57:36.006Z" ## ## $createdBy ## [1] "3324230" @@ -467,10 +467,10 @@
Organizing Data in a Project## [1] "3324230" ## ## $name -## [1] "file335b64fd60c" +## [1] "filed50b25528b1" ## ## $id -## [1] "syn52417364" +## [1] "syn52417559" ## ## $type ## [1] "org.sagebionetworks.repo.model.FileEntity" @@ -485,13 +485,13 @@
Organizing Data in a Project## [1] TRUE ## ## $benefactorId -## [1] 52417363 +## [1] 52417558 ## ## $createdOn -## [1] "2023-09-10T01:52:04.003Z" +## [1] "2023-09-10T05:57:33.808Z" ## ## $modifiedOn -## [1] "2023-09-10T01:52:04.176Z" +## [1] "2023-09-10T05:57:34.009Z" ## ## $createdBy ## [1] "3324230" @@ -524,7 +524,7 @@
Organizing Data in a Project= TRUE ) ## Retrieving a deleted folder causes: Error in value[[3L]](cond): 404 Client Error: -## Entity syn52417365 is in trash can.
In addition to simple data storage, Synapse entities can be annotated with key/value metadata, described in markdown documents (wikis), and linked together in provenance graphs to create a reproducible record of @@ -711,12 +711,12 @@
To learn more about writing an evaluation query, please see: http://docs.synapse.org/rest/GET/evaluation/submission/query.html
For more information, please see:
@@ -881,31 +830,31 @@Sharing Access to Contentacl <- synSetPermissions(project, principalId = 273949, accessType = list("READ")) acl ## $id -## [1] "syn52417370" +## [1] "syn52417563" ## ## $creationDate -## [1] "2023-09-10T01:52:11.933Z" +## [1] "2023-09-10T05:57:42.595Z" ## ## $etag -## [1] "6e48e9be-eb88-4ab9-b91b-271986469f72" +## [1] "7205921e-0a24-4b73-a530-4e300bc36b63" ## ## $resourceAccess ## $resourceAccess[[1]] ## $resourceAccess[[1]]$principalId -## [1] 273949 +## [1] 3324230 ## ## $resourceAccess[[1]]$accessType -## [1] "READ" +## [1] "READ" "CHANGE_SETTINGS" "MODERATE" +## [4] "CREATE" "CHANGE_PERMISSIONS" "DOWNLOAD" +## [7] "UPDATE" "DELETE" ## ## ## $resourceAccess[[2]] ## $resourceAccess[[2]]$principalId -## [1] 3324230 +## [1] 273949 ## ## $resourceAccess[[2]]$accessType -## [1] "CHANGE_SETTINGS" "MODERATE" "UPDATE" -## [4] "DOWNLOAD" "CHANGE_PERMISSIONS" "READ" -## [7] "CREATE" "DELETE"
Now public can read:
synGetPermissions(project, principalId = 273950)
diff --git a/docs/articles/systemDependencies.html b/docs/articles/systemDependencies.html
index a2294ade..f1cda30f 100644
--- a/docs/articles/systemDependencies.html
+++ b/docs/articles/systemDependencies.html
@@ -33,7 +33,7 @@
table <- synBuildTable("My Favorite Genes", project, genes)
table$schema
-## Schema(concreteType='org.sagebionetworks.repo.model.table.TableEntity', parentId='syn52417372', columns_to_store=[{'name': 'Name', 'columnType': 'STRING', 'maximumSize': 30, 'defaultValue': '', 'concreteType': 'org.sagebionetworks.repo.model.table.ColumnModel'}, {'name': 'Chromosome', 'columnType': 'INTEGER', 'concreteType': 'org.sagebionetworks.repo.model.table.ColumnModel'}, {'name': 'Start', 'columnType': 'INTEGER', 'concreteType': 'org.sagebionetworks.repo.model.table.ColumnModel'}, {'name': 'End', 'columnType': 'INTEGER', 'concreteType': 'org.sagebionetworks.repo.model.table.ColumnModel'}, {'name': 'Strand', 'columnType': 'STRING', 'maximumSize': 30, 'defaultValue': '', 'concreteType': 'org.sagebionetworks.repo.model.table.ColumnModel'}, {'name': 'TranscriptionFactor', 'columnType': 'BOOLEAN', 'concreteType': 'org.sagebionetworks.repo.model.table.ColumnModel'}, {'name': 'Time', 'columnType': 'INTEGER', 'concreteType': 'org.sagebionetworks.repo.model.table.ColumnModel'}], name='My Favorite Genes', columnIds=[])
synBuildTable
creates a Table Schema based on the data
and returns a Table object that can be stored in Synapse using
synStore()
. To create a custom Table Schema, defines the
@@ -225,7 +225,7 @@
For example, let’s update the names of some of our favorite genes:
@@ -367,14 +367,14 @@Notes on Dates and Timesdf <- as.data.frame(results) df$Time <- as.POSIXlt("2015-07-04 05:22", tz = "UTC", format = "%Y-%m-%d %H:%M") synStore(Table(tableId, moreGenes)) -## <synapseclient.table.CsvFileTable object at 0x125cdf580>
Dates may also be submitted in timestamp milliseconds:
results <- synTableQuery(sprintf("select * from %s where Name='zap'", tableId))
df <- as.data.frame(results)
df$Time <- timestamp
synStore(Table(tableId, moreGenes))
-## <synapseclient.table.CsvFileTable object at 0x125d5d2d0>
Note that using POSIXlt
is strongly preferred over
POSIXct
, because POSIXct
does not store values
with enough precision to reliably recover milliseconds. For more
diff --git a/docs/articles/troubleshooting.html b/docs/articles/troubleshooting.html
index d08f03bf..a00185eb 100644
--- a/docs/articles/troubleshooting.html
+++ b/docs/articles/troubleshooting.html
@@ -33,7 +33,7 @@
diff --git a/docs/articles/upload.html b/docs/articles/upload.html
index a6797d82..8892254a 100644
--- a/docs/articles/upload.html
+++ b/docs/articles/upload.html
@@ -33,7 +33,7 @@
diff --git a/docs/articles/views.html b/docs/articles/views.html
index 3d0fb484..e1b16855 100644
--- a/docs/articles/views.html
+++ b/docs/articles/views.html
@@ -33,7 +33,7 @@
@@ -200,17 +200,17 @@
data$contributor[1] <- c("Sage Bionetworks")
synStore(Table(view$properties$id, data[1,]))
-## <synapseclient.table.CsvFileTable object at 0x10e2cece0>
+## <synapseclient.table.CsvFileTable object at 0x11a6d1390>
Hoff B (2023). synapser: R Language Bindings for Synapse API. -R package version 1.1.0, https://www.synapse.org. +R package version 1.2.0, https://www.synapse.org.
@Manual{, title = {synapser: R Language Bindings for Synapse API}, author = {Bruce Hoff}, year = {2023}, - note = {R package version 1.1.0}, + note = {R package version 1.2.0}, url = {https://www.synapse.org}, }diff --git a/docs/index.html b/docs/index.html index 88a8edc7..68b99a3b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -33,7 +33,7 @@ diff --git a/docs/news/index.html b/docs/news/index.html index 21e79c36..93b59ff6 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -17,7 +17,7 @@ @@ -78,6 +78,13 @@
NEWS.md
+
as.list()
as.list
Generate R wrappers for Python classes and functions