美文网首页墨海
SRA数据合并

SRA数据合并

作者: 花生学生信 | 来源:发表于2024-04-29 13:00 被阅读0次

把SRR开头的文件夹里的所有.sra数据整合成一个,因为这些文件夹里的都是一个sample生成的SRA数据,


#!/bin/bash

# 检查是否存在output.sra文件,并删除
if [ -f output.sra ]; then
    rm output.sra
fi

# 遍历以SRR开头的文件夹
for folder in SRR*/; do
    # 将每个文件夹中的.sra文件追加到output.sra中
    cat ${folder}/*.sra >> output.sra
done

echo "合并完成"

相关文章

网友评论

    本文标题:SRA数据合并

    本文链接:https://www.haomeiwen.com/subject/jkitfjtx.html