-
Notifications
You must be signed in to change notification settings - Fork 4
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
Simple curl examples against **local** NA12878 BAMs? #15
Comments
hi @brainstorm thanks for taking a look into this! I will try to reproduce the error, but the config seems correct from an initial look. The server is still under active development, that link should be removed as we plan to build a better documentation page. The |
@brainstorm the This should be corrected to allow for single, hardcoded files. For now, you should be able to fix it by doing this:
ie the named capture group of |
Following this up from igvteam/igv#850 to here, since it doesn't belong in the IGV-desktop PR....
Yes I believe so:
I just pulled that $ ./htsget-refserver -config data/config/config-local.json
Server started on port 3000!
$ curl -s http://localhost:3000/reads/NA12878 | jq .
{
"htsget": {
"error": "NotFound",
"message": "The requested resource could not be associated with a registered data source"
}
}
$ curl -s http://localhost:3000/reads/giab.NA12878.NIST7035.1 | jq .
{
"htsget": {
"format": "BAM",
"urls": [
{
"url": "https://giab.s3.amazonaws.com/data/NA12878/Garvan_NA12878_HG001_HiSeq_Exome/project.NIST_NIST7035_H7AP8ADXX_TAAGGCGA_1_NA12878.bwa.markDuplicates.bam",
"headers": {
"Range": "bytes=0-499999999"
}
},
(... continues with subsequent urls and ranges...) |
Yes, with If you are using
Try the ID, You can also hit this same server running on AWS at |
Thanks Jeremy! $ curl -s http://localhost:3000/reads/gatk.NA12878 | jq . {
"htsget": {
"format": "BAM",
"urls": [
{
"url": "http://localhost:3000/file-bytes",
"headers": {
"HtsgetFilePath": "./data/gcp/gatk-test-data/wgs_bam/NA12878.bam",
"Range": "bytes=0-15236349"
}
}
]
}
} |
Hello @jb-adams, great refresh of this refserver impl, looking good! I've tried the integration tests that point towards tabulamuris against the CZI S3 bucket and they work great.
Now, when testing it out by pointing the
config
to the local BAM GiaB files like so:Could you outline some simple
curl
queries in the README, i.e (but working):I'm not sure it's a good moment to ask those questions since there seem to be some tests failing though, perhaps this server is still under active development?:
Also, docs referenced from the GA4GH production config are 404'ing.
Most surely it's just me not passing the correct/mandatory parameters or doing something wrong, so please let me know which sample
curl
queries I can fire up given the above.json
config file. Thanks in advance!/cc @victorskl @ohofmann @reisingerf
The text was updated successfully, but these errors were encountered: