Longstitch运行自定义数据报错:.fa.fa后缀异常及make命令问题
Longstitch运行自定义数据报错问题解决
问题重现
已成功安装Longstitch,测试脚本运行正常,但使用自定义数据执行以下命令时出现报错:
(medaka) operations@LabPC1:~/medaka/longstitch-1.0.5$ ./longstitch run draft=~/medaka/~medaka/medaka_results/consensus.fa reads=~/medaka/combined.fastq G=4.5e8
报错信息:
make: command: Command not found make: command: Command not found make: *** No rule to make target '/home/operations/medaka/~medaka/medaka_results/consensus.fa.fa', needed by '/home/operations/medaka/~medaka/medaka_results/consensus.fa.cut250.tigmint.fa'. Stop.
问题分析与解决
1. make: command: Command not found 错误
该错误源于系统未安装make工具,Longstitch内部流程依赖make执行。根据你的系统发行版执行对应安装命令:
- Ubuntu/Debian系统:
sudo apt update && sudo apt install make - CentOS/RHEL系统:
sudo yum install make
2. 出现.fa.fa后缀的问题
从报错路径可定位两个核心问题:
- 路径中存在无效的
~medaka字段,属于输入错误,推测你实际要指向的路径是~/medaka/medaka_results/consensus.fa。 - Longstitch的
draft参数会自动为无后缀的文件名补加.fa,若你已手动指定.fa后缀,就会出现重复拼接的.fa.fa。
解决方法二选一:
- 修正路径并保留
.fa后缀:将命令中draft参数改为正确路径:draft=~/medaka/medaka_results/consensus.fa - 修正路径并去掉
.fa后缀:让工具自动补全后缀,命令改为:draft=~/medaka/medaka_results/consensus
验证步骤
- 安装
make后确认工具可用:make --version - 修正
draft参数路径后重新执行Longstitch命令。
内容的提问来源于stack exchange,提问作者Karli
相关产品推荐
相关产品推荐

