ConTreeDP
Consensus method for tumor history tree based on directed partitions using dynamic programming
Install / Use
/learn @CMUSchwartzLab/ConTreeDPREADME
ConTreeDP
ConTreeDP is a consensus method of tumor trees based on maximum directed partition support problem using dynamic programming method. The method is introduced in X. Fu and R. Schwartz, "ConTreeDP: A consensus method of tumor trees based on maximum directed partition support problem," 2021 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), 2021, pp. 125-130, doi: 10.1109/BIBM52615.2021.9669279.
Prerequisite
Python3 is required to run the software. Packages including Numpy, Graphviz, Scipy, ete3, should be installed. Matplotlib should also be installed in order to show resulting figures.
Usage
Input includes a pickle file containing a list of tree. Each tree is represented as a dictionary, where the key is a parent node and the value is a list of children, using the tuple to group the different mutations in the same node. Maximum degree should also be specified (default is 3). The maximum allowed degree for the program is 4. An output directory should also be specified to save the result. The output will be the resulting consensus tree saved in a pickle file and a PNG figure.
python3 -t [tree_list] -d [maximum_degree] -o [output_directory]
Example
For example, you can run the following command
python3 contreedp.py -t example/example_tree_list.pickle -d 3 -o example_output
The output consensus tree will be saved in the folder example_output.
Related Skills
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
