Skip to content

Commit

Permalink
Update Checksums and versions for Annotations Excel files
Browse files Browse the repository at this point in the history
- updated the 7k and 11k file versions
- accordingly updated the md5sum checksums
- should allow `read_annotations()` to load
  the individual Excel files
- fixes #116
  • Loading branch information
stufield committed Apr 4, 2024
1 parent 777fd4c commit e66fd18
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 31 deletions.
47 changes: 18 additions & 29 deletions R/read-annotations.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,22 +116,11 @@ ver_dict <- list(
skip = 8L,
rows = 5293,
cols = 43),
# 11k
# SomaScan_V5.0_11K_Annotated_Content_20240214
"SL-906-rev3-2024-02" = list(sha = "44352af60dc0152d65f3dad1f0c54abc",
col_serum = c("Serum Scalar v5.0 11K to v4.1 7K",
"Serum Scalar v5.0 11K to v4.0 5K"),
col_plasma = c("Plasma Scalar v5.0 11K to v4.1 7K",
"Plasma Scalar v5.0 11K to v4.0 5K"),
which_serum = c(43, 47),
which_plasma = c(45, 49),
skip = 8L,
rows = 11092,
cols = 51),

# 7k
# SomaScan_V4.1_7K_Annotated_Content_20240214
"SL-00000571-rev7-2024-02" = list(sha = "ab6ecbce3565c2c6049c0150f653f51b",
# source 7k ----
# https://menu.somalogic.com
# SomaScan_7K_Annotated_Content.xlsx
"SL-00000571-rev7-2024-02" = list(sha = "0cf00a6afdc1a5cf1f7b8e16cffedccc",
col_serum = c("Serum Scalar v4.1 7K to v4.0 5K",
"Serum Scalar v4.1 7K to v5.0 11K"),
col_plasma = c("Plasma Scalar v4.1 7K to v4.0 5K",
Expand All @@ -140,18 +129,18 @@ ver_dict <- list(
which_plasma = c(45, 49),
skip = 8L,
rows = 7605,
cols = 50)
# 5k
# SomaScan_V4.0_5K_Annotated_Content_20240216.xlsx
# (may not be released)
# "SL-00000246-revnotreleased-2024-02" = list(sha = "xxxxxx",
# col_serum = c("Serum Scalar v4.0 5K to v4.1 7K",
# "Serum Scalar v4.0 5K to v5.0 11K"),
# col_plasma = c("Plasma Scalar v4.0 5K to v4.1 7K",
# "Plasma Scalar v4.0 5K to v5.0 11K"),
# which_serum = c(43, 47),
# which_plasma = c(45, 49),
# skip = 8L,
# rows = 5293,
# cols = 50)
cols = 50),
# source 11k ----
# https://menu.somalogic.com
# SomaScan_11K_Annotated_Content.xlsx
"SL-00000906-rev4-2024-03" = list(sha = "f4f42681780a03d2972215f355748064",
col_serum = c("Serum Scalar v5.0 11K to v4.1 7K",
"Serum Scalar v5.0 11K to v4.0 5K"),
col_plasma = c("Plasma Scalar v5.0 11K to v4.1 7K",
"Plasma Scalar v5.0 11K to v4.0 5K"),
which_serum = c(43, 47),
which_plasma = c(45, 49),
skip = 8L,
rows = 11092,
cols = 51)
)
4 changes: 2 additions & 2 deletions tests/testthat/test-read-annotations.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ test_that("`ver_dict` is updated and correct", {
"SL-12345678-rev0-2021-01",
"SL-00000571-rev2-2021-06",
"SL-00000246-rev5-2021-06",
"SL-906-rev3-2024-02",
"SL-00000571-rev7-2024-02"))
"SL-00000571-rev7-2024-02",
"SL-00000906-rev4-2024-03"))
})

test_that("`getAnnoVer()` parses the version correctly", {
Expand Down

0 comments on commit e66fd18

Please sign in to comment.