测试图像分析软件的真实和模拟数据

pythologist-test-images的Python项目详细描述


#pythogist test images

用于单元测试等的图像


列出可用的数据集:

``python
from pythogist_test_images import testimages

```

>;['irisspatialfeatures','small',“tiny”]

获取指向数据集的路径

``python
path=testimages().raw('irisspatialfeatures')
print(path)
````
>;'/source/pythogist test images/data/irisspatialfeatures/example'


获取一个celldataframe pythogist对象(需要pythologistreader和pythogist`pip install pythogist test images[h5]`)

``python
cdf=testimages().celldataframe('tiny')
tdf=cdf.threshold('t-cell','pd1').threshold('other','pdl1').threshold('tumor','pdl1')
tdf.loc[tdf['sample\u name'].str.contains('i'),'project\u name']='slidemodelifriltrated'
tdf.loc[tdf['sample\u name'].str.contains('e'),'project\u name']='slidemodelexcluded'
tdf.loc[tdf['sample\u name'].str.contains('u'),“项目名称”]=“幻灯片幻灯形式”
tdf[“项目ID”]=tdf[“项目名称”]
(ggplot(cnts,aes(x=”样本名称“,y=”平均密度“,
ymin=”平均密度“+stderr密度“,
ymax=”平均密度“-stderr密度”,fill='项目名称')
+geom_bar(stat='身份')
+geom_errorbar()
+facet_wrap('表型标签',scales='自由')
+主题_bw()
+主题(面板间距x=0.5)
+主题(图大小=(6,6))

``````

![计数图像](https://github.com/jason-weirate/pythogist-test-images/raw/master/images/counts.png?原始=真)



欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何避免springbootstarterparent和dependency中的flyway包冲突   java文本文件写入不起作用   java获取名为DAO类的Bean创建异常   java类路径和清单文件   如何使用Java中的模式来获取像C中的“sscanf”这样的组?   java Spring自动连接具有构造函数的类   clientSecurity运行的java geode示例失败   java JavaFX:在FXML中从ResourceBundle访问非string对象   java登录到google firebase   java对象在通过构造函数后不会更改。为什么?   java(Android)对特定页面的操作webView   javascript如何在webview的js中从java调用变量   持久化—一种在Java中存储和检索对象而不使用关系数据库的简单方法?   java Ldap获取通讯组列表中的用户   java检查温度条件   java后退按钮警报框(Android Studio)   数组java列表问题:为什么我运行它时,它会在第三次打印时打印出4?   java相对路径与绝对路径