使用简单直观的表示法查找图形主题

dotmotif的Python项目详细描述


移动电话

使用直观的符号查找图形主题

PyPI

使用

写主题

目前可以用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对象的构造函数中。这些论点是:

ArgumentType, DefaultBehavior
^{}^{}: ^{}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 ^{}; if ^{}, then set to ^{}
^{}^{}: ^{}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}
}

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Apache Flink外部Jar   创建和强制转换对象数组时发生java错误   Java,添加数组   具有相同包结构和类的java JAR   java Jenkins未能构建Maven项目   java为什么一个forloop比另一个更快,尽管它们做的“一样”?   servlets在将“/”站点迁移到Java EE包时处理contextpath引用   无法解析java MavReplugin:2.21或其某个依赖项   泛型如何编写比较器来泛化Java中的两种类型的对象?   java Android Emulator未在netbeans上加载   多线程Java使用线程对数组中的数字求和:在同步块中使用新变量作为锁:差异   java如何在JSP/servlet中设置<input>标记的值?