Constants
Constants of drug2ways.
- drug2ways.constants.DEFAULT_DRUG2WAYS_DIR = PosixPath('/home/docs/.data/drug2ways')
Default drug2ways directory using PyStow
- drug2ways.constants.download_pathway(url: str, export_path: str) None [source]
Make a function that downloads the data for you, or uses a cached version at the given path.
- Parameters
url – The URL of some data
export_path – folder where decompressed file will be exported
- drug2ways.constants.CSV = 'csv'
csv
- drug2ways.constants.TSV = 'tsv'
tsv
- drug2ways.constants.GRAPHML = 'graphml'
graphML
- drug2ways.constants.BEL = 'bel'
bel
- drug2ways.constants.NODE_LINK_JSON = 'json'
node link json
- drug2ways.constants.BEL_PICKLE = 'pickle'
pickle
- drug2ways.constants.GML = 'gml'
gml
- drug2ways.constants.EDGE_LIST = '.lst'
edge list
- drug2ways.constants.FORMATS = ['csv', 'tsv', 'graphml', 'bel', 'json', 'pickle']
drug2ways available network formats
- drug2ways.constants.FORMAT_SEPARATOR_MAPPING = {'csv': ',', 'tsv': '\t'}
Acceptable column names for the graph
- drug2ways.constants.SOURCE = 'source'
Column name for source node
- drug2ways.constants.TARGET = 'target'
Column name for target node
- drug2ways.constants.RELATION = 'polarity'
Column name for relation
- drug2ways.constants.EMOJI = '💊🔬'
drug2ways emoji