AbstractGraph theoretical analyses of nervous systems usually omit the aspect of connection polarity, due to data insufficiency. The chemical synapse network of Caenorhabditis elegans is a well-reconstructed directed network, but the signs of its connections are yet to be elucidated. Here, we present the gene expression-based sign prediction of the C. elegans connectome, incorporating presynaptic neurotransmitter and postsynaptic receptor gene expression data (3,638 connections and 20,589 synapses total). We made successful predictions for more than two-thirds of all chemical synapses and determined a ratio of excitatory-inhibitory (E:I) interneuronal ionotropic chemical connections close to 4:1 which was found similar to that observed in many real-world networks. Our open source tool (http://EleganSign.linkgroup.hu) is simple but efficient in predicting polarities by integrating neuronal connectome and gene expression data.Author SummaryThe fundamental way neurons communicate is by activating or inhibiting each other via synapses. The balance between the two is crucial for the optimal functioning of a nervous system. However, whole-brain synaptic polarity information is unavailable for any species and experimental validation is challenging. The roundworm Caenorhabditis elegans possesses a fully mapped connectome with a comprehensive gene expression profile of its 302 neurons. Based on the consideration that the polarity of a synapse must be determined by the neurotransmitter(s) expressed in the presynaptic neuron and the receptors expressed in the postsynaptic neuron, we conceptualized and created a tool that predicts synaptic polarities based on connectivity and gene expression information. We were able to show for the first time that the ratio of excitatory and inhibitory synapses in C. elegans is around 4 to 1 which is in line with the balance observed in many natural systems. Our method opens a way to include spatial and temporal dynamics of synaptic polarity that would add a new dimension of plasticity in the excitatory:inhibitory balance. Our tool is freely available to be used on any network accompanied by any expression atlas.