-
Notifications
You must be signed in to change notification settings - Fork 243
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 HtsgetBAMFileReader #1494
Merged
Merged
Add HtsgetBAMFileReader #1494
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
b05fae5
WIP add HtsgetBAMFileReader
andersleung 90de6be
sudo docker commands when starting htsget test server
andersleung d14460b
Add shebang to script
andersleung 08fcefa
sudo execute script
andersleung 6f83e2d
Make start script executable
andersleung 2146521
Fix SamReaderFactoryTest
andersleung 9cf6d7e
Fix based on spotBugs, delete useless file
andersleung 36544de
Add further tests
andersleung 59bf032
Add tests
andersleung da99416
Respond to PR comments, add aynchronous prefetching support
andersleung e9329ef
Fix tests, fix SAMRecordPrefetchingIterator
andersleung f2a91f4
Add isQueryable() method to PrimitiveSamReader and SamReader
andersleung deae5df
Fix SAMRecordPrefetchingIterator, update tests
andersleung 3aaaa0a
Remove unused code and imports
andersleung 121de0f
Remove debug println statement
andersleung 042f50b
Rework SAMRecordPrefetchingIterator, add tests, clean up resource ope…
andersleung ef128f3
Respond to comments
andersleung 0bacdf8
Only print stack trace for Errors
andersleung File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
This folder contains scripts and files necessary for starting a local htsget reference server so that htsget functionality can be tested. | ||
|
||
`start-htsget-test-server.sh` starts a docker image running the reference server, serving files from the directory `src/test/resources/htsjdk/samtools/BAMFileIndexTest/`. | ||
|
||
`htsget_config.json` configures the mapping between path name patterns and resource sources used by the reference server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"readsDataSourceRegistry": { | ||
"sources": [ | ||
{ | ||
"pattern": "^htsjdk_test\\.(?P<accession>.*)$", | ||
"path": "/data/{accession}" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
WORKING_DIR=/home/travis/build/samtools/htsjdk | ||
docker pull ga4gh/htsget-ref:1.1.0 | ||
docker container run -d --name htsget-server -p 3000:3000 --env HTSGET_PORT=3000 --env HTSGET_HOST=http://127.0.0.1:3000 \ | ||
-v $WORKING_DIR/src/test/resources/htsjdk/samtools/BAMFileIndexTest/:/data \ | ||
-v $WORKING_DIR/scripts/htsget-scripts:/data/scripts \ | ||
ga4gh/htsget-ref:1.1.0 \ | ||
./htsref -config /data/scripts/htsget_config.json | ||
docker container ls -a | ||
|
||
curl http://localhost:3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, this is helpful