Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to specify path to precalculated bwa index files?

    Hi everyone, this is my first post (fanfare sounds )

    I want to align a series of pair end reads, which I was shown I could do like this:

    bwa mem -M -t 30 /...path omitted.../ucsc.hg19.fasta \
    file1.fq.gz \
    file2.fq.gz \
    > aligned_sample1.sam

    and that works fine, as the bwa index files are in the same folder as the reference ucsc.hg19.fasta file.

    HOWEVER, I now have a series of mouse files, and the reference fasta file and the bwa index files are not in the same folder. I'm logged into a central server to do this work, and the admin has stored the mm10.fa file say in "/...path1.../mouse/mm10/" and has calculated the index files and stored them under "/...path1.../mouse/bwa_indices/"...

    so that when I try to run

    bwa mem -M -t 30 /...path 1.../mouse/mm10/mm10.fa \
    file1.fq.gz \
    file2.fq.gz \
    > aligned_sample1.sam

    it fails because the index files have not been found.

    I cannot write to these directories because they're protected, so I can't just move the index files to the same place as the fasta file.

    As a workaround, I copied the fasta file and the bwa index files to a new directory, and worked from there. This works, but I'm duplicating data unnecessarily.

    I'd like to know how I can specify different paths for the reference fasta file and the bwa index files when using bwa mem as above.
    I cannot find that in the documentation, so I suspect it's a very basic question... but then I'm a total beginner on this so please be gentle

  • #2
    Then just:
    Code:
    bwa mem -M -t 30 /...path1.../mouse/bwa_indices/mm10.fa file1.fq.gz file2.fq.gz > aligned_sample1.sam
    Or something like that. The "mm10.fa" part is just the prefix that the files use, you don't actually need the fasta file.

    Comment


    • #3
      Originally posted by dpryan View Post
      Then just:
      Code:
      bwa mem -M -t 30 /...path1.../mouse/bwa_indices/mm10.fa file1.fq.gz file2.fq.gz > aligned_sample1.sam
      Or something like that. The "mm10.fa" part is just the prefix that the files use, you don't actually need the fasta file.
      seriously?

      it makes sense... the index files already contain the sequence information!

      I told you it would be basic Thanks!

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Latest Developments in Precision Medicine
        by seqadmin



        Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

        Somatic Genomics
        “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
        05-24-2024, 01:16 PM
      • seqadmin
        Recent Advances in Sequencing Analysis Tools
        by seqadmin


        The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
        05-06-2024, 07:48 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 05-24-2024, 07:15 AM
      0 responses
      16 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-23-2024, 10:28 AM
      0 responses
      18 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-23-2024, 07:35 AM
      0 responses
      22 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-22-2024, 02:06 PM
      0 responses
      11 views
      0 likes
      Last Post seqadmin  
      Working...
      X