Skip to contents

S3 Generic to return all GDC fields

Usage

available_fields(x)

# S3 method for GDCQuery
available_fields(x)

# S3 method for character
available_fields(x)

Arguments

x

A character(1) string ('cases','files','projects', 'annotations') or an subclass of GDCQuery.

Value

a character vector of the default fields

Methods (by class)

  • available_fields(GDCQuery): GDCQuery method

  • available_fields(character): character method

Examples

available_fields('projects')
#>  [1] "dbgap_accession_number"                               
#>  [2] "disease_type"                                         
#>  [3] "intended_release_date"                                
#>  [4] "name"                                                 
#>  [5] "primary_site"                                         
#>  [6] "program.dbgap_accession_number"                       
#>  [7] "program.name"                                         
#>  [8] "program.program_id"                                   
#>  [9] "project_autocomplete"                                 
#> [10] "project_id"                                           
#> [11] "releasable"                                           
#> [12] "released"                                             
#> [13] "state"                                                
#> [14] "summary.case_count"                                   
#> [15] "summary.data_categories.case_count"                   
#> [16] "summary.data_categories.data_category"                
#> [17] "summary.data_categories.file_count"                   
#> [18] "summary.experimental_strategies.case_count"           
#> [19] "summary.experimental_strategies.experimental_strategy"
#> [20] "summary.experimental_strategies.file_count"           
#> [21] "summary.file_count"                                   
#> [22] "summary.file_size"                                    
projQuery = query('projects')
available_fields(projQuery)
#>  [1] "dbgap_accession_number"                               
#>  [2] "disease_type"                                         
#>  [3] "intended_release_date"                                
#>  [4] "name"                                                 
#>  [5] "primary_site"                                         
#>  [6] "program.dbgap_accession_number"                       
#>  [7] "program.name"                                         
#>  [8] "program.program_id"                                   
#>  [9] "project_autocomplete"                                 
#> [10] "project_id"                                           
#> [11] "releasable"                                           
#> [12] "released"                                             
#> [13] "state"                                                
#> [14] "summary.case_count"                                   
#> [15] "summary.data_categories.case_count"                   
#> [16] "summary.data_categories.data_category"                
#> [17] "summary.data_categories.file_count"                   
#> [18] "summary.experimental_strategies.case_count"           
#> [19] "summary.experimental_strategies.experimental_strategy"
#> [20] "summary.experimental_strategies.file_count"           
#> [21] "summary.file_count"                                   
#> [22] "summary.file_size"