Skip to contents

S3 generic to set GDCQuery legacy parameter

Usage

legacy(x, legacy)

# S3 method for GDCQuery
legacy(x, legacy)

Arguments

x

the objects on which to set fields

legacy

logical(1) Whether or not to use the GDC legacy archives

Value

A GDCQuery object with the legacy

member altered.

Methods (by class)

  • legacy(GDCQuery): set legacy field on a GDCQuery object

Examples

qcases <- query("cases")

legacy(qcases, legacy = FALSE)
#> $fields
#>  [1] "aliquot_ids"              "analyte_ids"             
#>  [3] "case_autocomplete"        "case_id"                 
#>  [5] "consent_type"             "created_datetime"        
#>  [7] "days_to_consent"          "days_to_lost_to_followup"
#>  [9] "diagnosis_ids"            "disease_type"            
#> [11] "index_date"               "lost_to_followup"        
#> [13] "portion_ids"              "primary_site"            
#> [15] "sample_ids"               "slide_ids"               
#> [17] "state"                    "submitter_aliquot_ids"   
#> [19] "submitter_analyte_ids"    "submitter_diagnosis_ids" 
#> [21] "submitter_id"             "submitter_portion_ids"   
#> [23] "submitter_sample_ids"     "submitter_slide_ids"     
#> [25] "updated_datetime"        
#> 
#> $filters
#> NULL
#> 
#> $facets
#> NULL
#> 
#> $legacy
#> [1] FALSE
#> 
#> $expand
#> NULL
#> 
#> attr(,"class")
#> [1] "gdc_cases" "GDCQuery"  "list"