Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for compressed BAI files #542

Closed
keiranmraine opened this issue Dec 2, 2014 · 9 comments
Closed

Add support for compressed BAI files #542

keiranmraine opened this issue Dec 2, 2014 · 9 comments
Labels
feature req this adds new functionality to JBrowse 1 help wanted actively soliciting new contributors to take this on!

Comments

@keiranmraine
Copy link
Contributor

Hi,

There is some discussion on the samtools mailing list about setting your nginx server to automatically compress BAI files and then have the receiving tool decompress them when storing locally. This can reduce the time it takes to add a new bam track quite considerably for wholegenome sequence where these files can reach 20-30 MB.

This think this can also be applied to *.tbi index files (assuming not already compressed).

Regards,
Keiran

@cmdcolin
Copy link
Contributor

do you have a link for this particular discussion? here is another discussion that takes a different approach

http://www.hammerlab.org/2015/01/23/faster-pileup-loading-with-bai-indices/

@keiranmraine
Copy link
Contributor Author

I think this approach from BioDalliance is an excellent alternative, especially as there is then no need to cache 20-30 MB of index for every bam track.

If JBrowse could be configured to fall back to native bai if the bai.json isn't found it would be very flexible.

@cmdcolin
Copy link
Contributor

One alternative that was discussed here is actually breaking up the bam file http://gmod.827538.n3.nabble.com/Gmod-ajax-Speed-up-VCF-loads-td4053337.html

@rbuels rbuels added feature req this adds new functionality to JBrowse 1 help wanted actively soliciting new contributors to take this on! labels Jan 28, 2018
@rbuels
Copy link
Collaborator

rbuels commented Jan 28, 2018

So if we added code to the BAI loading to detect whether the BAI is compressed, and decompress it, that would probably take care of this, right?

@keiranmraine
Copy link
Contributor Author

@rbuels as per #926, BAM is going to be deprecated completely in favour of csi (which is compressed).

@rbuels rbuels added this to the 1.15.0 milestone Apr 20, 2018
@rbuels rbuels modified the milestones: 1.15.0, 1.15.1 May 15, 2018
@rbuels
Copy link
Collaborator

rbuels commented Jul 18, 2018

@keiranmraine it kind of sounds like having .csi support pretty much obviates this, do you think we can close it?

@rbuels rbuels added the waiting for user waiting for a user's response, can close after enough time has elapsed label Jul 18, 2018
@rbuels rbuels removed this from the 1.15.1 milestone Jul 18, 2018
@keiranmraine
Copy link
Contributor Author

@rbuels I agree

@cmdcolin
Copy link
Contributor

Woo :)

@cmdcolin
Copy link
Contributor

HTSGet support is also a possible alternative see #1142

@rbuels rbuels removed the waiting for user waiting for a user's response, can close after enough time has elapsed label Jul 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature req this adds new functionality to JBrowse 1 help wanted actively soliciting new contributors to take this on!
Projects
None yet
Development

No branches or pull requests

3 participants