-
Notifications
You must be signed in to change notification settings - Fork 3
Add instructions for offline use #1
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
Open
hmusta
wants to merge
25
commits into
main
Choose a base branch
from
offline
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 22 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
9bda34e
inital commit of offline usage instructions
hmusta 0ee2842
Merge branch 'main' into offline
hmusta 2c374ad
update
hmusta 28590a9
Update README.md
hmusta 209435d
Update README.md
hmusta f7a1ac0
Update README.md
hmusta f361b6b
Update README.md
hmusta db5236d
Update README.md
hmusta 41337fe
Update README.md
hmusta eeab3ef
Update README.md
hmusta 6028d8e
Update README.md
hmusta 198f705
Update README.md
hmusta 2cae7b5
Update README.md
hmusta 74224f3
Update README.md
hmusta 4c01d28
Update README.md
hmusta 16d1022
Update README.md
hmusta a2bdf87
Update README.md
hmusta dda016d
Update README.md
hmusta d2f5fae
Merge branch 'main' into offline
adamant-pwn b317707
Update README.md
hmusta 0ea65e5
Update README.md
hmusta 8e2c2e8
Update README.md
hmusta e7e81af
Update README.md
hmusta 8883264
Update README.md
hmusta 336a7da
Update README.md
hmusta 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 hidden or 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 |
---|---|---|
|
@@ -188,3 +188,33 @@ metagraph query -i graph.primary.small.dbg \ | |
``` | ||
|
||
Then, it will save the resulting file in the S3. When all chunks are processed, a dedicated script will merge the results in a single file and send you a notification. | ||
|
||
## Instructions for local usage | ||
|
||
MetaGraph can be [installed](https://github.com/ratschlab/metagraph#Install) locally for offline use on a Linux or a Mac host using the commands below. Search indexes can be downloaded from [`s3://metagraph-data-public`](s3://metagraph-data-public). For example, chunk `0400` can be downloaded to a working directory as follows: | ||
```sh | ||
aws s3 sync s3://metagraph-data-public/all_sra/data/metagenome/0400 . --no-sign-request --region eu-central-2 | ||
``` | ||
Currently, chunks numbered `0001` through to `0400` are available for download. The example query file is located in this repository under [`examples/100_studies_short.fq`](https://github.com/ratschlab/metagraph-open-data/blob/main/examples/100_studies_short.fq). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @akahles should we put "through to |
||
|
||
hmusta marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#### Docker | ||
hmusta marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
```sh | ||
docker pull ghcr.io/ratschlab/metagraph:master | ||
hmusta marked this conversation as resolved.
Show resolved
Hide resolved
|
||
``` | ||
|
||
Followed by a query on chunk `0400` using the command | ||
```sh | ||
git clone https://github.com/ratschlab/metagraph-open-data.git | ||
docker run -v ${MNTDIR}:/mnt ghcr.io/ratschlab/metagraph:master query -i 0400/graph.primary.small.dbg \ | ||
-a 0400/annotation.clean.row_diff_brwt.annodbg \ | ||
--query-mode matches \ | ||
--num-top-labels 10 \ | ||
--min-kmers-fraction-label 0 \ | ||
--min-kmers-fraction-graph 0 \ | ||
metagraph-open-data/examples/100_studies_short.fq | ||
``` | ||
replacing `${MNTDIR}` with the local mount path. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should probably provide some specific examples on what should be used as |
||
|
||
## Additional instructions | ||
|
||
For further documentation and usage instructions (including setup instructions using Docker and via source code compilation), please refer to our [Quick start](https://metagraph.ethz.ch/static/docs/quick_start.html) guide in the [MetaGraph documentation](https://metagraph.ethz.ch/static/docs/index.html). The source code is maintained on our [GitHub repository](https://github.com/ratschlab/metagraph). |
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.
Uh oh!
There was an error while loading. Please reload this page.