通用Panelapp软件包
panelapp的Python项目详细描述
panelapp公司
允许对Panelapp查询进行大量操作
安装
pipinstallpanelapp
进口
^{pr2}$如何使用
frompanelappimportPanelapppanel=Panelapp.Panel(269)# Create panel object, confidence level defaults to 3, version is the lastestpanel.get_info()# Return dict with general data about the panelpanel.get_genes()# Return genes according to confidence level choosen when creating the panel objectpanel.get_genes(3,2,1)# Return genes with confidence levels 3, 2, 1 (green, amber, red)panel.update_version("3.2","2")# Update the panel with version and confidence level givenpanel.is_signedoff()# Return date of signedoff or False if not signedoffpanel.get_data()# Return all the data the API sent, you can use that there's something that is lacking in my methodspanel.write()# Write a file for the panel containing the most important data (according to me at least, you can customize this yourself using the .get_data() method)frompanelappimportqueriespanels=queries.get_all_panels()# Return dict {panel_id: Panelapp.Panel} of all panels in Panelappsignedoff_panels=queries.get_all_signedoff_panels()# Return dict {panel_id: Panelapp.Panel} of signedoff panelsmatches,differences=queries.compare_versions(Panelapp.Panel,"2.7")# Return tuple of match and differences between the given panel and another panel versionpanel=queries.get_signedoff_panel(269)# Return panel object with latest signedoff version
- 项目
标签: