Skip to content

Instantly share code, notes, and snippets.

@liangyy
Last active March 23, 2020 19:56
Show Gist options
  • Save liangyy/865d49f642320286f3e38e74acef68e6 to your computer and use it in GitHub Desktop.
Save liangyy/865d49f642320286f3e38e74acef68e6 to your computer and use it in GitHub Desktop.
Get GTEx V8 color board
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