eQTL-Catalogue / eQTL-Catalogue-resources

42 stars 35 forks source link

Changing method to detect null data frames #23

Open AMCalejandro opened 2 years ago

AMCalejandro commented 2 years ago

is.null method does not work to check empty data tibbles

result_list = result_list[!unlist(purrr::map(result_list, is.null))]

$BLUEPRINT_monocyte A tibble: 0 x 20 … with 20 variables: molecular_trait_id , chromosome , position , ref , alt , variant , ma_samples , maf , pvalue , beta , se , type , ac , an , r2 , molecular_trait_object_id , gene_id , median_tpm , id , row_count is.null(result_list$BLUEPRINT_monocyte) [1] FALSE