Question: BWA shm index preloading: only for BWA MEM?
0
gravatar for Maximilian Haeussler
23 months ago by
UCSC
Maximilian Haeussler1.3k wrote:

bwa shm looks very interesting, especially if you have a smallish cluster for your own use.

But unfortunately there is almost no documentation.

What I know:

  • you can do "bwa shm <indexfile>" and it will load the index into RAM. This means it will create /dev/shm/bwactl and /dev/shm/bwaidx-<indexfile>.
  • bwa shm -d deletes the files in /dev/shm, bwa shm -l lists them
  • all subsequent invocations of "bwa mem" will be almost instant.
  • for this to work, use the full pathname with bwa shm, e.g. bwa shm /my/data/dir/hg19.fa
  • for the subsequent run of bwa mem, use just the basename, e.g. bwa mem hg19.fa
  • I can't get bwa aln to work with this, apparently it doesn't support the pre-loaded index (yet?)
  • bwasw also does not seem to support a pre-loaded index

Is there a way to get aln or samse support?

Does any other operation support the pre-loaded index?

bwa hengli • 861 views
ADD COMMENTlink modified 3 months ago • written 23 months ago by Maximilian Haeussler1.3k

Tagging: lh3

ADD REPLYlink written 23 months ago by genomax51k
0
gravatar for Maximilian Haeussler
3 months ago by
UCSC
Maximilian Haeussler1.3k wrote:

I read over the BWA source code and figured that yes, only "bwa mem" can use the mmaped index, "bwa aln" cannot. bowtie1 and bowtie2 both can use the mmap'ed index. Note that there is a github issue in the bwa repo on github where users report a 25% performance drop when using this option, so YMMY.

ADD COMMENTlink modified 3 months ago • written 3 months ago by Maximilian Haeussler1.3k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1374 users visited in the last hour