Created by
Dénes Türei
| #!/usr/bin/env python
# Denes Turei, Uniklinik RWTH Aachen 2018
# turei.denes@gmail.com
import datetime
import pypath
from pypath import ptm
today = datetime.date.today().__str__()
pa = pypath.PyPath()
# building the human network
pa.load_omnipath(kinase_substrate_extra = True)
# exporting sif and tab
pa.export_sif(outfile = 'omnipath_human_%s.sif' % today)
pa.export_tab(outfile = 'omnipath_human_%s.tab' % today)
# translating to mouse
pa.orthology_translation(10090)
pa.export_sif(outfile = 'omnipath_mouse_%s.sif' % today)
pa.export_tab(outfile = 'omnipath_mouse_%s.tab' % today)
# enzyme-substrate interactions
human = ptm.PtmAggregator(map_by_homology_from = [])
human.export_table(
fname = 'omnipath_human_enzyme-substrate_human_%s.tab' % today
)
# mouse direct
mouse = ptm.PtmAggregator(
ncbi_tax_id = 10090,
map_by_homology_from = []
)
mouse.export_table(
fname = 'omnipath_mouse_enzyme-substrate_mouse_%s.tab' % today
)
# mouse orthology only
mouse = ptm.PtmAggregator(
ncbi_tax_id = 10090,
map_by_homology_from = [9606, 10116],
nonhuman_direct_lookup = False
)
mouse.export_table(
fname = 'omnipath_mouse_enzyme-substrate_homology_%s.tab' % today
)
# mouse direct & orthology combined
mouse = ptm.PtmAggregator(
ncbi_tax_id = 10090,
map_by_homology_from = [9606, 10116]
)
mouse.export_table(
fname = 'omnipath_mouse_enzyme-substrate_all_%s.tab' % today
)
|
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173 175 177 179 181 183 185 187 189 191 193 195 197 199 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173 175 177 179 181 183 185 187 189 191 193 195 197 199 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 173 175 177 179 181 183 185 187 189 191 193 195 197 199