Yeah I moved the files to the nodes where the jobs run and it works fine now!
I'm really struggling to get my bwa (version 0.7.15) to find my index.
My script for indexing was this
bwa index -p ref_genome -a bwtsw $HOME/hg19.fa
which generated the following files in the ref_genome directory:
ref_genome.amb ref_genome.ann ref_genome.bwt ref_genome.pac ref_genome.sa
I then enter the following to align to my reference
bwa mem -t 4 /rds/general/user/snw02/home/bwa_index/ref_genome ~/trimmed_reads/paired_end/s1_S1100619_1P.fq.gz ~/trimmed_reads/paired_end/s1_S1100619_2P.fq.gz > s1_S1100619_aln_pe.sam
and I'm still getting the error message above (I moved ref_genome into another directory called bwa_index to see if it would help. It didn't!)
Any suggestions?
1 answer
It appears that only snw02 account has read permissions for these files. Are you running the alignments from this account? Is your home directory available on nodes where the actual job runs. On some clusters home directories may not be available on work nodes so leaving these files in a directory that is accessible on cluster work nodes should fix this problem.
Log in to answer this question.
Are all five files in
/rds/general/user/snw02/home/bwa_index/? If so this is unusual. Perhaps you encountered an error when creating that initial index. Did you check the log for that?Are the sizes of your
ref_genomefiles in this neighborhood?Similar...they are:
I'm wondering if it is because I didn't create the original reference with a .fa extension?
I also moved it from the temporary directory (where everything is done on the cluster) to my home directory.
I think I need to probably just create the index again don't I???