Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cnvpipelines
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SVdetection
cnvpipelines
Commits
dea55fc2
Commit
dea55fc2
authored
6 years ago
by
Floreal Cabanettes
Browse files
Options
Downloads
Patches
Plain Diff
Pindel windows: place in a subdir, remove subdir after merge
parent
89eba335
No related branches found
Branches containing commit
No related tags found
1 merge request
!12
Split pindel detection in 20mb windows
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
snakecnv/svsnakemake_utils.py
+1
-1
1 addition, 1 deletion
snakecnv/svsnakemake_utils.py
snakecnv/tools/pindel.snk
+6
-5
6 additions, 5 deletions
snakecnv/tools/pindel.snk
with
7 additions
and
6 deletions
snakecnv/svsnakemake_utils.py
+
1
−
1
View file @
dea55fc2
...
...
@@ -71,7 +71,7 @@ class SnakemakeUtils:
def
get_pindel_chr_batches
(
self
,
wildcards
):
inputs
=
[]
for
batch
in
self
.
chr_batches
[
wildcards
.
chrom
]:
inputs
.
append
(
"
{batch}/pindel/{chrbatch}/pindel_{chrom}_{svtype}.gz
"
.
format
(
inputs
.
append
(
"
{batch}/pindel/{
chrom}/{
chrbatch}/pindel_{chrom}_{svtype}.gz
"
.
format
(
batch
=
wildcards
.
batch
,
chrom
=
wildcards
.
chrom
,
chrbatch
=
"
-
"
.
join
(
map
(
str
,
batch
)),
svtype
=
wildcards
.
svtype
))
...
...
This diff is collapsed.
Click to expand it.
snakecnv/tools/pindel.snk
+
6
−
5
View file @
dea55fc2
...
...
@@ -30,9 +30,9 @@ rule pindel:
genome = REFERENCE,
fai = REFERENCE + ".fai"
output:
"{batch}/pindel/{chrbatch}/pindel_{chrom}_D.gz",
"{batch}/pindel/{chrbatch}/pindel_{chrom}_INV.gz",
"{batch}/pindel/{chrbatch}/pindel_{chrom}_TD.gz",
"{batch}/pindel/{
chrom}/{
chrbatch}/pindel_{chrom}_D.gz",
"{batch}/pindel/{
chrom}/{
chrbatch}/pindel_{chrom}_INV.gz",
"{batch}/pindel/{
chrom}/{
chrbatch}/pindel_{chrom}_TD.gz",
threads:
get_threads("pindel", 4)
log:
...
...
@@ -50,7 +50,7 @@ rule pindel:
"""
for svtype in D TD INV RP SI LI BP CloseEndMapped INT_final;
do
gzip -f {wildcards.batch}/pindel/{wildcards.chrbatch}/pindel_{wildcards.chrom}_${{svtype}}
gzip -f {wildcards.batch}/pindel/{wildcards.
chrom}/{wildcards.
chrbatch}/pindel_{wildcards.chrom}_${{svtype}}
done
"""
...
...
@@ -65,4 +65,5 @@ rule mergepindelbatches:
threads:
1
shell:
"mergepindelbatches.py {output} {input} 1>{log.stdout} 2>{log.stderr}"
\ No newline at end of file
"mergepindelbatches.py {output} {input} 1>{log.stdout} 2>{log.stderr}; "
"rm -rf {wildcards.batch}/pindel/{wildcards.chrom}"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment