$VCFTOOLS --vcf SNPs_only.recode.vcf --SNPdensity 100 --out SNPden
时间: 2023-09-30 10:12:46 浏览: 171
This command will calculate the SNP density in a VCF file named "SNPs_only.recode.vcf" using a sliding window approach with a window size of 100 SNPs. The output will be written to a file named "SNPden".
Note: $VCFTOOLS is a variable representing the path to the vcftools program.
相关问题
报错shapeit --input-vcf hwe.snp.vcf.gz --input-ref /data2/qixb/zhangzh/database/Ref_NGS_need_file/Homo_sapiens_assembly38.fasta --output-phasing hwe_pashing --output-log hwe_pashing.log Phaser mode : unrecognised option '--output-phasing'
抱歉,我的前面回答有误。根据你的新报错信息,看起来ShapeIt并不支持"--output-phasing"选项。可以尝试使用以下命令:
```
shapeit --input-vcf hwe.snp.vcf.gz --input-ref /data2/qixb/zhangzh/database/Ref_NGS_need_file/Homo_sapiens_assembly38.fasta --output hwe_pashing.phased --output-map hwe_pashing.map --output-log hwe_pashing.log --thread 8
```
其中,"--output"选项指定输出的phase文件名,"--output-map"选项指定输出的marker信息文件名,"--output-log"选项指定输出的日志文件名,"--thread"选项指定使用的线程数。请根据你的实际需求进行相应的修改。
上述仍然报错shapeit --input-vcf hwe.snp.vcf.gz --input-ref /data2/qixb/zhangzh/database/Ref_NGS_need_file/Homo_sapiens_assembly38.fasta --output hwe_pashing.phased --output-map /data2/qixb/zhangzh/database/Ref_NGS_need_file/hapmap_3.3.hg38.vcf.gz --output-log hwe_pashing.log --thread 8 Phaser mode : option '--output' is ambiguous and matches '--output-from', '--output-graph', '--output-log', '--output-max', and '--output-to'
看起来问题出在"--output-map"选项上。根据报错信息,该选项的值应该是一个文件名,但你提供的是一个VCF文件的路径。建议你指定一个文件名来作为输出的marker信息文件。比如,你可以使用"--output-map hwe_pashing.map"选项来指定输出文件名。请尝试以下命令:
```
shapeit --input-vcf hwe.snp.vcf.gz --input-ref /data2/qixb/zhangzh/database/Ref_NGS_need_file/Homo_sapiens_assembly38.fasta --output hwe_pashing.phased --output-map hwe_pashing.map --output-log hwe_pashing.log --thread 8
```
其中,"--output-map"选项指定输出的marker信息文件名。请根据你的实际需求进行相应的修改。
阅读全文
相关推荐
![rar](https://img-home.csdnimg.cn/images/20241231044955.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)