Snippets
Created by
Dénes Türei
last modified
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | #!/usr/bin/env Rscript
# Author: Denes Turei
# turei.denes@gmail.com
#
# Collect kinases and phosphatases from various resources
# using OmniPath and the OmnipathR R package
# https://github.com/saezlab/OmnipathR
#
# To see the list of resources: get_annotation_resources()
if(!('OmnipathR' %in% installed.packages())){
require(devtools)
devtools::install_github('saezlab/OmnipathR')
}
require(dplyr)
require(OmnipathR)
uniprot_kinases <-
import_omnipath_annotations(
resources = 'UniProt_keyword',
wide = TRUE
) %>%
filter(
keyword == 'Kinase' &
entity_type == 'protein'
) %>%
pull(uniprot)
kinasecom_kinases <-
import_omnipath_annotations(
resources = 'kinase.com',
entity_types = 'protein',
wide = TRUE
) %>%
pull(uniprot)
dgidb_kinases <-
import_omnipath_annotations(
resources = 'DGIdb',
entity_types = 'protein',
wide = TRUE
) %>%
filter(
category == 'KINASE'
) %>%
pull(uniprot)
hgnc_kinases <- import_omnipath_annotations(
resources = 'HGNC',
wide = TRUE
) %>%
filter(
grepl('kinase', mainclass, ignore.case = TRUE) &
entity_type == 'protein'
) %>%
pull(uniprot) %>%
unique()
uniprot_phosphatases <-
import_omnipath_annotations(
resources = 'UniProt_keyword',
wide = TRUE
) %>%
filter(
keyword == 'Protein phosphatase' &
entity_type == 'protein'
) %>%
pull(uniprot)
hgnc_phosphatases <-
import_omnipath_annotations(
resources = 'HGNC',
wide = TRUE
) %>%
filter(
grepl('rotein phosphatase', mainclass, fixed = TRUE) &
entity_type == 'protein'
) %>%
pull(uniprot) %>%
unique()
dgidb_phosphatases <-
import_omnipath_annotations(
resources = 'DGIdb',
entity_types = 'protein',
wide = TRUE
) %>%
filter(
category == 'PROTEIN PHOSPHATASE'
) %>%
pull(uniprot)
all_kinases <- c(
uniprot_kinases,
kinasecom_kinases,
dgidb_kinases,
hgnc_kinases
) %>% unique
all_phosphatases <- c(
uniprot_phosphatases,
hgnc_phosphatases,
dgidb_phosphatases
) %>% unique
|
Comments (0)
You can clone a snippet to your computer for local editing. Learn more.