Comments (2)
Okay, that makes sense. I am indeed running the app in the browser and this worked. Thanks for the code example!
from bam-js.
are you running the app under node.js or in the browser?
the bamPath only works with local file systems e.g. under nodejs. if you are using in the browser, then the "bamFilehandle" arugment should be used, with a RemoteFile handle
example:
const {RemoteFile} = require('generic-filehandle')
const bam = new BamFile({
bamFilehandle: new RemoteFile('yourfile.bam'), // or a full http url
baiFilehandle: new RemoteFile('yourfile.bam.bai') // or a full http url
})
I can try to add this example to the readme
from bam-js.
Related Issues (20)
- error in getHeader() HOT 7
- question on seq_id of returned feature HOT 2
- Support AN (alternative naming)
- Merge adjacent blocks code could result in large allocation HOT 2
- error with local uploaded file HOT 4
- Port intra-slice merging from tabix HOT 1
- Investigate split alignment data structures HOT 1
- Not fetching all reads HOT 1
- add SAM parsing
- Support BAI index aka BAM index index HOT 1
- Large amount of short reads bogs jbrowse down HOT 1
- All tags are stored in lower case, but technically lower case tags are distinct from upper case
- Wrong negative number values being reported for some tags
- Feature sequence is undefined HOT 2
- Htsget unable to fetch header from some endpoints HOT 7
- need explanation for usage HOT 5
- Missing end position in read mate? HOT 2
- fetch size limit error with `pairAcrossChr` HOT 2
- htsget auth support HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bam-js.