Module to interact with pyrvapi
RvapiMetadata
[source]¶Bases: object
Storage container for metadata required by JsCoFe
n_results
¶SimbadOutput
(rvapi_document, webserver_uri, display_gui, logfile, work_dir, ccp4i2_xml=None, tab_prefix='')[source]¶Bases: object
Class to display the output of SIMBAD
webserver_uri
¶str – The uri if run on a webserver
display_gui
¶bool – Option to prevent results being displayed
logfile
¶str – Path to the log file
work_dir
¶str – Path to the work directory [default: None]
summary
¶bool – Option to display summary tab [default: False]
Examples
>>> from simbad.util import pyrvapi_results
>>> gui = pyrvapi_results.SimbadOutput(<'rvapi_file'>, <'webserver_uri'>, <'display__gui'>,
... <'logfile'>, <'work_dir'>)
>>> gui.display_results(<'show_summary'>)
create_contaminant_results_tab
(contaminant_results, contaminant_mr_results, results_to_display)[source]¶Function to create the contaminant results tab
Parameters: | |
---|---|
Returns: | Page containing the results from the contaminant search |
Return type: |
create_graphs
(df, graph_sec, graph_widget)[source]¶Function to create/display graphs following MR
DataFrame
DataFrame
containing data to be plottedReturns: | Section containing the graphic representation of Z-score results from SIMBAD |
---|---|
Return type: | object |
create_lattice_results_tab
(lattice_results, lattice_mr_results, results_to_display)[source]¶Function to create the lattice results tab
Parameters: | |
---|---|
Returns: | Page containing the results from the lattice parameter search |
Return type: |
create_log_tab
(logfile)[source]¶Function to create log tab
Parameters: | logfile (str) – Path to the log file |
---|---|
Returns: | Updating page containing log |
Return type: | str |
create_morda_db_results_tab
(morda_db_results, morda_db_mr_results, results_to_display)[source]¶Function to create the MoRDa Database results tab
Parameters: | |
---|---|
Returns: | Page containing the results from the MoRDa db search |
Return type: |
create_table
(df, table_id)[source]¶Function to create/display tables
Parameters: |
|
---|---|
Returns: | table containing the results from SIMBAD |
Return type: |
display_citation_tab
()[source]¶Function to display citations for programs used within SIMBAD
Returns: | Section containing the relevant citations |
---|---|
Return type: | object |
display_summary_tab
()[source]¶Function to create the MoRDa Database results tab
Returns: | Page containing a summary of the best results from SIMBAD |
---|---|
Return type: | object |
init_from_ccp4i2_xml
(ccp4i2_xml, pyrvapi_dir, share_jsrview, wintitle)[source]¶This code is largely stolen from Andrew Lebedev
output_log_files
(sec, mr_log, ref_log)[source]¶Function to display the log files for the result
Parameters: | |
---|---|
Returns: | Section containing mr and refinement logs |
Return type: |