python - 如何在snakemake中修复这个“IndexError:list index out of range”
问题描述
解决方案
You need to escape braces for {4}
and {6}
in your shell command by doubling the brackets. Snakemake thinks they are variables of some type when they are not and hence the error.
shell:
"umi_tools extract --extract-method=regex --bc-pattern=”(?P<umi_1>.{{6}})(?P<discard_1>.{{4}}).*” -I {input} -S {output}"
推荐阅读
- c++ - 如何使用其定义附近的显式长度/值构造函数初始化向量成员变量?
- c# - 如何创建 Spring Animation 并将其应用于 UWP 控件?
- java - 如何用随机数和一些条件制作一个数组?
- javascript - 在单个画布的元素数组中添加 Click 事件
- reactjs - 在获取之前立即渲染函数调用
- bash - 是否可以在不支持关联数组的情况下编译 Bash 5?
- java - @JSONUnwrapped 关于嵌入式字段展平问题
- python - python pandas openpyxl 消失的值
- node.js - 在聊天中输入任何内容后,如何让 Discord 机器人说些什么?
- sql - 使用 VBA 函数传递参数时,Access SQL 语句并不总是有效