使用简单直观的表示法查找图形主题
dotmotif的Python项目详细描述
移动电话
使用直观的符号查找图形主题
使用
写主题
目前可以用dotmotif格式编写motif,dotmotif是一种专门用于子图查询表示法的DSL。在
threecycle.motif
# A excites B
A -> B [type = "excitatory"]
# B inhibits C
B -> C [type = "inhibitory"]
将母题摄取到dotmotif中
^{pr2}$Python中的内联代码
或者,在创建dotmotif
对象时,可以在python代码中内联motif:
dm=dotmotif.Motif("""# A excites BA -> B [type = "excitatory"]# B inhibits CB -> C [type = "inhibitory"]""")
参数
您还可以将可选参数传递到dotmotif
对象的构造函数中。这些论点是:
Argument | Type, Default | Behavior |
---|---|---|
^{ | ^{ | Whether to disregard direction when generating the database query |
^{ | ^{ | A limit (if any) to impose on the query results |
^{ | ^{ | Whether to enforce inequality; in other words, whether two nodes should be permitted to be aliases for the same node. For example, in ^{ |
^{ | ^{ | Whether to return only a single example for each detected automorphism. See more in the documentation |
有关如何编写查询的详细信息,请参见Getting Started。在
引用
如果此工具对您的研究有帮助,请考虑引用:
# https://www.biorxiv.org/content/10.1101/2020.06.08.140533v1
@article{matelsky_2020_dotmotif,
doi = {10.1101/2020.06.08.140533},
url = {https://www.biorxiv.org/content/10.1101/2020.06.08.140533v1},
year = 2020,
month = {june},
publisher = {BiorXiv},
author = {Matelsky, Jordan K. and Reilly, Elizabeth P. and Johnson,Erik C. and Wester, Brock A. and Gray-Roncal, William},
title = {{Connectome subgraph isomorphisms and graph queries with DotMotif}},
journal = {BiorXiv}
}
- 项目
标签: