Created
June 13, 2019 15:10
-
-
Save samehkamaleldin/5a7c5ba32c012b2dee43a9c22079b1e5 to your computer and use it in GitHub Desktop.
KG schema
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
\documentclass{standalone} | |
\usepackage{times} | |
\usepackage{tikz} | |
\begin{document} | |
\begin{tikzpicture}[scale=2] | |
%\fontfamily{times} | |
\tikzstyle{rect}=[rectangle,draw=black!75,fill=black!20,minimum size=0mm, node distance=7.5pt] | |
\tikzstyle{circ}=[circle,thick,draw=black!75,fill=blue!30,minimum size=0mm, node distance=80pt] | |
\tikzstyle{blank}=[rectangle,minimum size=5pt, node distance=6pt] | |
\tikzstyle{gray circ}=[circ,draw=black!75,fill=black!20] | |
\tikzstyle{red circ}=[circ,draw=red!75,fill=red!20] | |
\tikzstyle{red corrupt}=[circ,draw=black!75,fill=red!40] | |
\tikzstyle{purple circ}=[rect,draw=black!75,fill=green!40!red!40,minimum size=10pt] | |
\tikzstyle{scoring}=[circ,draw=blue!5!,fill=red!20] | |
\tikzstyle{every label}=[black] | |
\tikzstyle{green rect}=[rect,draw=black!75,fill=green!20] | |
\tikzstyle{red rect}=[rect,draw=black!75,fill=red!20] | |
\tikzstyle{red} = [fill=red!20] | |
\tikzstyle{blue} = [fill=blue!20] | |
\tikzstyle{yellow} = [fill=yellow!30] | |
\tikzstyle{green} = [fill=green!20] | |
\tikzstyle{teal} = [fill=red!0!green!30!blue!30] | |
\tikzstyle{laven} = [fill=red!30!green!30!blue!40!] | |
\tikzstyle{purple} = [fill=green!40!red!40] | |
\tikzstyle{gray} = [draw=black!75,fill=black!20] | |
\tikzstyle{redd} = [draw=red!60] | |
\begin{scope} | |
\node [circ, blue, double] (p) {\textbf{P}}; | |
\node [circ, green, double, xshift=-50pt] (d) [below of=p]{\textbf{D}}; | |
\node [circ, purple, double, xshift=50pt] (g) [below of=p]{\textbf{P}}; | |
\node [circ, red, double, xshift=-20pt] (s) [below of=d]{\textbf{\scriptsize SE}}; | |
\node [circ, laven, double, xshift=50pt] (b) [below of=d]{\textbf{D}}; | |
\node [circ, gray, double, xshift=20pt] (n) [below of=g]{\textbf{\scriptsize AB}}; | |
\node [circ, teal, double, xshift=-5pt, yshift=-45pt] (m) [right of=g]{\textbf{M}}; | |
\node [circ, yellow, double, xshift=5pt, yshift=-5pt] (ec1) [right of=g]{\scriptsize\textbf{GO}}; | |
\node [circ, yellow, double, xshift=-15pt, yshift=45pt] (ip) [right of=g]{\bf \scriptsize IP}; | |
\node [circ, yellow, double, xshift=5pt, yshift=-15pt] (atc1) [left of=d]{\textbf{A}}; | |
\node [circ, yellow, double, xshift=25pt, yshift=40pt] (dg) [left of=d]{\textbf{C}}; | |
% ------------------------------------------------------------ | |
\draw[bend left=10, <->] (d) to node [anchor=south, yshift=-14pt] {\scriptsize Drug Target Protein} (g); | |
\draw[bend left=10, <->] (d) to node [anchor=east, xshift=15pt, yshift=5pt] {\scriptsize \rotatebox[origin=c]{55}{Drug Pathway}} (p); | |
\draw[bend left=10, <->] (s) to node [anchor=east, xshift=2pt, yshift=0pt] {\scriptsize \rotatebox[origin=c]{75}{Drug Side-effect}} (d); | |
\draw[bend left=10, <->] (b) to node [anchor=east, xshift=8pt, yshift=-2pt] {\scriptsize \rotatebox[origin=c]{60}{Protein Disease}} (g); | |
\draw[bend left=10, <->] (d) to node [anchor=south, xshift=4pt, yshift=-18pt] {\scriptsize \rotatebox[origin=c]{305}{Drug Disease}} (b); | |
\draw[bend left=10, <->] (g) to node [anchor=east, xshift=15pt, yshift=5pt] {\scriptsize \rotatebox[origin=c]{40}{Protein InterPro}} (ip); | |
\draw[bend right=10, <->] (g) to node [anchor=west, xshift=-10pt, yshift=5pt] {\scriptsize \rotatebox[origin=c]{305}{Protein Pathway}} (p); | |
\draw[bend right=10, <->] (m) to node [anchor=west, xshift=-17pt, yshift=-10pt] {\scriptsize \rotatebox[origin=c]{320}{Protein Motif}} (g); | |
\draw[bend right=10, <->] (n) to node [anchor=west, xshift=-20pt, yshift=-5pt] {\scriptsize \rotatebox[origin=c]{285}{Protein Antibody}} (g); | |
\draw[bend left=10, <->] (g) to node [anchor=south, xshift=5pt] {\scriptsize Protein GO} (ec1); | |
\draw[bend right=10, <->] (d) to node [anchor=south east, xshift=10pt, yshift=3pt] {\scriptsize ATC Class} (atc1); | |
\draw[bend right=10, <->] (d) to node [anchor=south east, xshift=20pt, yshift=-10pt] {\scriptsize \rotatebox[origin=c]{320}{Drug Class}} (dg); | |
\end{scope} | |
\end{tikzpicture} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment