重测序之快速比对(速度比谁都快哦~)

原理

讲一下

这个比较重要,就不瞎比比了,screen建立作业窗口,再分别运行比对个体

都不喜欢讲想法,那就看原理。

python 复制代码
import os
##比对之前如果不建立索引,那你猜我会怎么骂你呢?
def create_screen_window(screen_name):
    os.system(f"screen -dmS {screen_name}")
def execute_code_in_screen(screen_name, code):
    os.system(f"screen -S {screen_name} -X stuff '{code}\n'")
    os.system(f"screen -S {screen_name} -X stuff 'exit\n'")
for i in range(52,82):
    screen_name = "SRR131783"+str(i)
    create_screen_window(screen_name)
    code_to_execute = "bwa-mem2 mem sidai.fa SRR131783"+str(i)+"_1.fastq.gz SRR131783"+str(i)+"_2.fastq.gz > SRR131783"+str(i)+".sam"
    execute_code_in_screen(screen_name, code_to_execute)

基本上每一个参数都是重点没有可浪费的,每一步都是重点。充分理解screen就明白了

相关推荐
你好潘先生5 小时前
别再记命令了,用 yeero do 说句人话就能跑脚本,而且不烧 token
服务器·python·命令行
Agent_大师5 小时前
WebSocket 行情重连成功,K线缺口不会自动消失
python
荣码5 小时前
LLM结构化输出:让AI返回JSON而不是废话,我踩了4个坑
java·python
copyer_xyf5 小时前
FastAPI 如何连接 MySQL
后端·python
orion5716 小时前
Missing Semester Class1:course overview and introduction of shell
linux
apocelipes19 小时前
常用编程语言和库的正则表达式性能对比
c语言·c++·python·性能优化·golang·开发工具和环境
用户83562907805120 小时前
使用 Python 在 PDF 中创建与管理书签
后端·python
用户120487221611 天前
Linux驱动编译与加载
linux·嵌入式
MeixianAgent1 天前
Python 回测数据入口怎么验?历史 K 线入库前先做 5 个检查
后端·python
咕白m6251 天前
用 Python 实现一键批量查找与替换 Excel 数据
后端·python