深蛋白极性分析仪
dppa的Python项目详细描述
深度蛋白质极性分析仪(DPPA)
DPPA从目标文件中分析.fasta文件中的每一列氨基酸,生成一个报告,列出所有可能的极性。
安装
pip install dppa
示例
用法
命令行
usage: run-dppa [-h][--reportName REPORTNAME][--reportPath REPORTPATH][--searchKP SEARCHKP][--debug] TARGET REPORTTYPE Analyse polarity on all protein alignment .fasta files from a target. positional arguments: TARGET Target .fasta file to be analysed. REPORTTYPE Output report file type. optional arguments: -h, --help show this help message and exit --reportName REPORTNAME Output report custom file name. --reportPath REPORTPATH Output report custom file path. --searchKP SEARCHKP Custom keyphrase to detect searchable sequences. --debug Turn debug messages on.
Python
importdppa.coreassolvertarget_path='example.fasta'report_name='myrep'report_type='all'# 'xls', 'csv' or 'all'report_path='results-folder'# optionalsolver.set_debug_mode(True)# optional# results[0] -> polarity results dataframe# results[1] -> alerts dataframeresults=solver.run(target_path)# option 1: export to the current foldersolver.export(results,report_type,report_name)# option 2: export to custom foldersolver.export(results,report_type,report_name,report_path)