generated from kids-first/kf-bixu-template
-
Notifications
You must be signed in to change notification settings - Fork 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
🧹 D3b-ify Sentieon Updates #15
Merged
Merged
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
66034ae
Add Sentieon HiFi workflow
haodongchen 2eb39a0
Update PacBio HiFi workflow
haodongchen 49f0ae9
Update doc
haodongchen bd37fd2
Update the PacBio pipeline
haodongchen 3f9640f
Fix a typo
haodongchen 74a073a
Allow SV for CLR
haodongchen 425873b
Fix a typo
haodongchen b021bcf
Add sentieon-cli to the ONT workflow
haodongchen 359f1f5
:wrench: cleanup changes from Sentieon
dmiller15 0eb1d0a
:bug: optional longreadsv
dmiller15 6c25e0d
:broom: Cleanup typos
dmiller15 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,28 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import argparse | ||
import yaml | ||
import requests | ||
import sys | ||
|
||
|
||
def main(): | ||
parser = argparse.ArgumentParser(description="Download DNAscope model bundle") | ||
parser.add_argument("model_name", help="the name of the model bundle, e.g. Illumina_WGS") | ||
args = parser.parse_args() | ||
model_name = args.model_name.split("-") | ||
sentieon_models_yaml = "https://github.com/Sentieon/sentieon-models/raw/refs/heads/main/sentieon_models.yaml" | ||
response = requests.get(sentieon_models_yaml, allow_redirects=True) | ||
content = response.content.decode("utf-8") | ||
content = yaml.safe_load(content) | ||
try: | ||
url = content["DNAscope_bundles"][model_name[0]][model_name[1]] | ||
r = requests.get(url, allow_redirects=True) | ||
open(url.split("/")[-1], 'wb').write(r.content) | ||
except: | ||
open('empty.bundle', 'wb') | ||
print('Models updated on: ' + content["Updated on"], file=sys.stderr) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
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,46 @@ | ||
cwlVersion: v1.2 | ||
class: CommandLineTool | ||
label: Download DNAscope model bundle | ||
hints: | ||
- class: ResourceRequirement | ||
coresMin: 1 | ||
requirements: | ||
- class: ShellCommandRequirement | ||
- class: InlineJavascriptRequirement | ||
- class: DockerRequirement | ||
dockerPull: python:3.7-slim | ||
- class: InitialWorkDirRequirement | ||
listing: | ||
- entryname: get_dnascope_model.py | ||
entry: | ||
$include: ../scripts/get_dnascope_model.py | ||
arguments: | ||
- position: 0 | ||
valueFrom: 'pip install pyyaml requests;' | ||
shellQuote: false | ||
- position: 1 | ||
valueFrom: 'python get_dnascope_model.py' | ||
shellQuote: false | ||
inputs: | ||
- id: model_name | ||
label: Model name | ||
doc: Model platform and data type. For example, Illumina_WGS | ||
type: | ||
- type: enum | ||
symbols: | ||
- Illumina-WGS | ||
- Illumina-WES | ||
- MGI-WGS | ||
- MGI-WES | ||
- Element_Biosciences-WGS | ||
- PacBio_HiFi-WGS | ||
- Oxford_Nanopore-WGS | ||
inputBinding: | ||
position: 2 | ||
outputs: | ||
- id: model_bundle | ||
label: DNAscope Model bundle | ||
type: File | ||
outputBinding: | ||
glob: '*.bundle' | ||
|
This file was deleted.
Oops, something went wrong.
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.
Not sure I am a big fan of having to install a package every time. Can we find/create an image that has what's needed?
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.
Normally I'd agree but: