-
Notifications
You must be signed in to change notification settings - Fork 8
Add blobtk depth for read coverage #171
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
d3498d5
Add blobtk depth to calculate read coverage
sainsachiko 937f0a5
Apply suggestions from code review
sainsachiko 8e2a7cc
Add BGZIP to compress bedGraph coverage
sainsachiko 1f5e0c3
Update tabix/bgzip
sainsachiko 07fc446
Fix: BAM/CRAM reheader and BLOBTK DEPTH cache
sainsachiko 8bf07e5
Use ln -s to change file names
sainsachiko f12c5f3
Merge branch 'dev' into hhoang-read-coverage
sainsachiko 677c727
Fix linting
sainsachiko 9e02bf0
Remove module config of SAMTOOLS_REINDEX
sainsachiko dc04537
Not used
muffato d9b4bd5
We pass a BAM file, not a CRAM file
muffato 316262b
Too many names like "ch_bams" is confusing !
muffato 684384d
Simplified the CHANGE_NAME module
muffato 4199fd7
It's the CRAM output that we want
muffato d12030d
No conversion is happening here
muffato a10f97a
Allow rerunning
muffato 03f6d98
Our convention is not to prefix workflow inputs with "ch_"
muffato 89a8bd8
More straightforward sub-workflow
muffato ac819b4
Trick for not publishing the BAM when CRAM output is selected
muffato 5034665
More explicit name
muffato c631bd0
Merge pull request #176 from sanger-tol/hhoang-read-coverage_review
muffato c48ba52
Input both file and index for stats process
sainsachiko 76a4602
Publish cram index when provide header
sainsachiko 8cde426
Remove trailing whitespace
muffato 6119963
Merge pull request #177 from sanger-tol/hhoang-read-coverage_change_name
muffato 2b4f66a
Remove a trailing empty line
muffato 295e5b6
Merge pacbio chunked bam after alignment
sainsachiko 493b28f
Do not publish BAM from SAMTOOLS_INDEX if re-header BAMs
sainsachiko f4a660b
[lint] Removed trailing whitespace
muffato 6df042c
Publish bam file when no header
sainsachiko dad4ee7
[lint] Removed trailing whitespace
muffato 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
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
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
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 |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| process BLOBTK_DEPTH { | ||
| tag "${meta.id}" | ||
| label 'process_single' | ||
|
|
||
| if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) { | ||
| exit 1, "BLOBTOOLKIT_DEPTH module does not support Conda. Please use Docker / Singularity / Podman instead." | ||
| } | ||
| container "docker.io/genomehubs/blobtk:0.6.5" | ||
|
|
||
| input: | ||
| tuple val(meta), path(cram), path(bai) | ||
|
|
||
| output: | ||
| tuple val(meta), path('*.regions.bed.gz') , emit: bed | ||
| path "versions.yml" , emit: versions | ||
|
|
||
| when: | ||
| task.ext.when == null || task.ext.when | ||
|
|
||
| script: | ||
| def args = task.ext.args ?: '' | ||
| def prefix = task.ext.prefix ?: "${meta.id}" | ||
| """ | ||
| blobtk depth \\ | ||
| -c ${cram} \\ | ||
| $args \\ | ||
| -O ${prefix}.regions.bed.gz \\ | ||
|
muffato marked this conversation as resolved.
Outdated
sainsachiko marked this conversation as resolved.
Outdated
|
||
|
|
||
| cat <<-END_VERSIONS > versions.yml | ||
| "${task.process}": | ||
| blobtk: \$(blobtk --version | cut -d' ' -f2) | ||
| END_VERSIONS | ||
| """ | ||
| } | ||
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
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.