Last active
March 23, 2020 19:56
-
-
Save liangyy/865d49f642320286f3e38e74acef68e6 to your computer and use it in GitHub Desktop.
Get GTEx V8 color board
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
load_gtex_color_board = function() { | |
gtex_color = read.csv('https://bitbucket.org/yanyul/rotation-at-imlab/raw/b49d35b44c0ab936496733268b8578db77eb7f73/data/gtex_tissue_colors.csv', stringsAsFactors = FALSE) | |
gtex_color$tissue_site_detail_id[gtex_color$tissue_site_detail_id == 'Cells_Transformed_fibroblasts'] = 'Cells_Cultured_fibroblasts' | |
color_board = paste0('#', gtex_color$tissue_color_hex) | |
names(color_board) = gtex_color$tissue_site_detail_id | |
return(color_board) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment