samples()
returns details about available samples, ordered by
last modified dates. There are multiple tissue sample types displayed in
sample_category
column which are block, organ, suspension, and section.
*_columns()
returns a tibble or named
character vector describing the content of the tibble returned
by samples()
, datasets()
, donors()
, collections()
,
or publications()
.
sample_detail()
takes a unique sample_id and
returns details about one specified sample as a tibble
sample_derived()
takes a unique sample_id and
returns the derived dataset or/and sample details.
sample_metadata()
takes a unique donor_id and
returns the metadata of the sample.
Value
*_columns()
returns a named list name
containing the column name used in the tibble returned by
samples()
, datasets()
, donors()
,
collections()
, or publications()
.
When as = "tibble"
,the return value is a tibble
with paths as elements and abbreviations as names.
Details
Additional details are provided on the HuBMAP consortium webpage, https://software.docs.hubmapconsortium.org/apis
Additional details are provided on the HuBMAP consortium webpage, https://software.docs.hubmapconsortium.org/apis
Additional details are provided on the HuBMAP consortium webpage, https://software.docs.hubmapconsortium.org/apis
Additional details are provided on the HuBMAP consortium webpage, https://software.docs.hubmapconsortium.org/apis
Examples
samples()
#> # A tibble: 2,358 × 7
#> uuid hubmap_id donor_hubmap_id group_name last_modified_timest…¹
#> <chr> <chr> <chr> <chr> <chr>
#> 1 00f4835564265157… HBM964.X… HBM446.CSSP.335 TMC - Uni… 2024-12-02
#> 2 39ede648fc605a57… HBM653.F… HBM274.TWRJ.896 TMC - Uni… 2024-12-02
#> 3 8e285dd74b6d4ba1… HBM327.R… HBM274.TWRJ.896 TMC - Uni… 2024-12-02
#> 4 fb2f4bb6b4befec1… HBM785.B… HBM274.TWRJ.896 TMC - Uni… 2024-12-02
#> 5 9c083f959b8ae107… HBM888.Z… HBM274.TWRJ.896 TMC - Uni… 2024-12-02
#> 6 3ac73ea468313de3… HBM865.F… HBM274.TWRJ.896 TMC - Uni… 2024-12-02
#> 7 12b1605c7863430f… HBM587.G… HBM274.TWRJ.896 TMC - Uni… 2024-12-02
#> 8 6e5b47192abbf6e4… HBM544.Z… HBM274.TWRJ.896 TMC - Uni… 2024-12-02
#> 9 5def9bace9ed57ad… HBM949.Z… HBM274.TWRJ.896 TMC - Uni… 2024-12-02
#> 10 82bf0896dd680284… HBM638.L… HBM274.TWRJ.896 TMC - Uni… 2024-12-02
#> # ℹ 2,348 more rows
#> # ℹ abbreviated name: ¹last_modified_timestamp
#> # ℹ 2 more variables: sample_category <chr>, organ <chr>
samples_default_columns()
#> # A tibble: 7 × 1
#> columns
#> <chr>
#> 1 uuid
#> 2 hubmap_id
#> 3 group_name
#> 4 sample_category
#> 5 organ
#> 6 last_modified_timestamp
#> 7 donor_hubmap_id
uuid <- "d3525d35f6d5ee3dc3186613b0ab1762"
sample_detail(uuid)
#> # A tibble: 1 × 23
#> ancestor_ids ancestors created_by_user_displayname created_by_user_email
#> <list> <list> <chr> <chr>
#> 1 <chr [3]> <list [3]> Marda Jorgensen marda@ufl.edu
#> # ℹ 19 more variables: created_timestamp <dbl>, data_access_level <chr>,
#> # descendant_ids <list>, descendants <list>, display_subtype <chr>,
#> # donor <list>, entity_type <chr>, group_name <chr>, group_uuid <chr>,
#> # hubmap_id <chr>, immediate_ancestor_ids <list>,
#> # immediate_descendant_ids <list>, index_version <chr>,
#> # last_modified_timestamp <dbl>, origin_samples <list>, protocol_url <chr>,
#> # rui_location <chr>, sample_category <chr>, uuid <chr>
uuid <- "3e7dc14313262af577f686dcb09f5119"
sample_derived(uuid, "Sample")
#> # A tibble: 1 × 2
#> uuid organ
#> <chr> <chr>
#> 1 63ef1040ae30473778dc4bd2f2749fe3 Brain
uuid <- "8d7ce3aab7013e416263d23b0c048900"
sample_metadata(uuid)
#> # A tibble: 9 × 2
#> Key Value
#> <chr> <chr>
#> 1 donor.Age "54.0 years"
#> 2 donor.Body Mass Index "53.06 kg/m2"
#> 3 donor.Cause of Death "Anoxia "
#> 4 donor.Height "157.48 cm"
#> 5 donor.Medical History "Type 2 Diabetes Mellitus ; Hypertension ; Asthma ; Chr…
#> 6 donor.Race "Black or African American "
#> 7 donor.Sex "Female "
#> 8 donor.Social History "Smoker ; Illicit drug use "
#> 9 donor.Weight "131.60 kg"