删除.icloud文件扩展名以使用fcs解析器python jupyter

时间:2019-06-19 23:55:59

标签: python parsing icloud

我正像这样从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解析器,但是问题是,.fcs带有.icloud文件扩展名,这导致错误消息“不是有效的fcs文件”。如何在jupyter笔记本python中删除此.icloud扩展名?

0 个答案:

没有答案