首页 > 解决方案 > 删除 .icloud 文件扩展名以使用 fcs 解析器 python jupyter

问题描述

我正在将数据从 iCloud 导入 jupyter 笔记本,如下所示:

data_path_training = "/Users/Mady/Library/Mobile Documents/com~apple~CloudDocs/Data/Training"

files_training = os.listdir(data_path_training)

files_training 的开头如下所示:

['.Gates_PTLG024_BL_Unstim_CD235-CD61-_unstim_1st__BL__PTLG024.fcs.icloud', '.Gates_PTLG003_1_Unstim_CD235-CD61-_unstim_2nd___1___PTLG003.fcs.icloud', '.Gates_PTLG016_2_Unstim_CD235-CD61-_unstim_3d___2___PTLG016.fcs.icloud'

和类似的验证。我在它们上使用 fcs 解析器,但问题是 .icloud 文件扩展名和 .fcs 一起导致错误消息“不是有效的 fcs 文件”。如何在 jupyter notebook python 中删除这个 .icloud 扩展?

标签: pythonparsingicloud

解决方案


推荐阅读