現在、リファレンスゲノムを使用して読み込みをマップするために.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/) –
次のバイオインフォマティクスのベータスタックエクスチェンジサイトに興味があります:https://area51.stackexchange.com/proposals/109245/バイオインフォマティクス/訪問 – bli