marbl / MetagenomeScope

Visualization tool for (meta)genome assembly graphs
https://marbl.github.io/MetagenomeScope/
GNU General Public License v3.0
24 stars 8 forks source link

Get DNA sequences from server-side .fasta file #44

Open fedarko opened 7 years ago

fedarko commented 7 years ago

From @fedarko on April 18, 2017 9:59

(as opposed to "DNA pointers"/node IDs)

We could process huge files using a chunk-by-chunk approach similar to how we process AGP files. We can also notify the user if the resulting DNA file generated is too large to fit in memory, I guess?

I'm not sure what the max download file size is -- I know data URLs aren't necessarily the best idea, so maybe something else? Or perhaps generate a .fasta file on the server side that the user can download?

Copied from original issue: fedarko/MetagenomeScope#182

fedarko commented 7 years ago

Look into using https://github.com/eligrey/FileSaver.js/, maybe?

fedarko commented 7 years ago

Actually, https://github.com/jimmywarting/StreamSaver.js is probably what we're looking for. Has support for huge files (up to 15 GB), so this would solve the problem of downloading large files.