sudo apt-get install python3-tk |
sudo apt-get install libpython3.6-dev |
pip3 install matplotlib numpy |
第二步:下载ASAP安装包,安装
#then download ASAP from the website: https://github.com/computationalpathologygroup/ASAP/releases |
dpkg -i ASAP-1.8-python36-Linux.deb |
# after that, a critical step is: |
#to find where it was installed, use the command: |
第三步:配置环境变量
#Now, we put it in the PYTHONPATH: |
PYTHONPATH="/opt/ASAP/bin":"${PYTHONPATH}" |
第四步:测试有没有安装成功
>>>import matplotlib.pyplot as plt |
>>> import multiresolutionimageinterface as mir |
>>> reader = mir.MultiResolutionImageReader() |
>>>mr_image = reader.open('/home/wli/Downloads/tumor_036.tif') |
>>>tile = mr_image.getUCharPatch(0, 0, dims[0], dims[1], 6) |
>>> tile =mr_image.getUCharPatch(37000, 90000, 1024, 1024, 0) |
第五步:安装完成之后的GUI设置
第一次设置:
cd /opt/ASAP/bin
sudo chmod +x ASAP
./ASAP
下次再打开:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)