我正在嘗試將.fasta文件導入到bwa中,以便使用參考基因組將映射到我的讀取映射。不過,我目前得到這個錯誤:BWA找不到本地索引文件
[E::bwa_idx_load_from_disk] fail to locate the index files
任何幫助嗎?這裏是我的代碼:
#!/bin/bash
source /opt/asn/etc/asn-bash-profiles-special/modules.sh
module load fastqc/0.10.1
module load fastx/0.0.13
source /opt/asn/etc/asn-bash-profiles-special/modules.sh
module load pear/0.9.10
source /opt/asn/etc/asn-bash-profiles-special/modules.sh
module load fastqc/0.10.1
module load fastx/0.0.13
module load bwa/0.7.12
module load samtools/1.2
source /opt/asn/etc/asn-bash-profiles-special/modules.sh
module load trimmomatic/0.35
r=20
####mapping
#Indexing reference library for BWA mapping:
bwa index -a is ~/gz_files/sample_things/fungiref.fa fungiref
bwa mem fungiref sample${r}_clipped_paired.assembled.fastq > sample${r}.sam
#sort and convert to bam
samtools view -bS sample${r}.sam | samtools sort - sample{r}_sorted
#counts and stats
samtools index sample${r}_sorted.bam
samtools idxstats sample${r}_sorted.bam > ${r}_counts.txt
你可能會發現自己的[手冊頁]更準確的幫助(http://bio-bwa.sourceforge.net/bwa.shtml)或[郵件列表](https://sourceforge.net/p/bio-bwa/mailman/) –
您可能對以下生物信息學beta stackexchange站點感興趣:https://area51.stackexchange.com/proposals/109245/生物信息學/訪問 – bli