python - 删除 .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 扩展?
解决方案
推荐阅读
- javascript - 在 jQuery 之后加载的脚本中获取“$ 未定义”
- ios - 将 Mac 更新为 Catalina,此后在工作区中运行 pod 时出现 Cocopods 或 Ruby 错误
- vue.js - 具有 html 属性的 Vuejs 组件
- powershell - 在 powershell 中切片数组(或列表)的更好方法
- javascript - 使用 devtools 控制台清除网站的 cookie
- javascript - 空检查对象中的解构变量
- javascript - 得到错误“避免直接改变道具”并显示按钮
- api - 如何在空手道中复制节点及其子节点
- html - 如何使 HTML 中的选项标记显示一列的行但从同一个表中保存另一列的值
- excel - 复制为带格式的值,而不是使用公式粘贴值