Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mosaicatcher Update
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Thomas Weber
Mosaicatcher Update
Commits
4845e672
Commit
4845e672
authored
7 years ago
by
Tobias Marschall
Browse files
Options
Downloads
Patches
Plain Diff
Avoid re-installing MaRyam each time a heatmap is plotted and properly redirect output to log file.
parent
04ad1d2a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Snakefile
+3
-0
3 additions, 0 deletions
Snakefile
utils/plot_heatmap.R
+3
-4
3 additions, 4 deletions
utils/plot_heatmap.R
with
6 additions
and
4 deletions
Snakefile
+
3
−
0
View file @
4845e672
...
...
@@ -383,12 +383,15 @@ rule run_sv_classification:
rule plot_heatmap:
input:
maryam = "utils/R-packages2/MaRyam/R/MaRyam",
haplotypeProbs = "sv_probabilities/{sample}/{windows}.{bpdens}/allSegCellProbs.table",
genotypeProbs = "sv_probabilities/{sample}/{windows}.{bpdens}/allSegCellGTprobs.table",
info = "counts/{sample}/{windows}.info",
bamNames = "sv_probabilities/{sample}/{windows}.{bpdens}/bamNames.txt"
output:
"sv_probabilities/{sample}/{windows}.{bpdens}/final_plots/heatmapPlots.pdf"
params:
r_package_path = "utils/R-packages2"
log:
"log/{sample}/final.plots.{windows}.{bpdens}.txt"
script:
...
...
This diff is collapsed.
Click to expand it.
utils/plot_heatmap.R
+
3
−
4
View file @
4845e672
#' Rscript for the snakemake pipeline for computing jump probabilities and including heatmaps
#' author Maryam Ghareghani
# install and load MaRyam package
library
(
devtools
)
install_git
(
"git://github.com/friendsofstrandseq/MaRyam.git"
,
branch
=
"master"
)
library
(
"MaRyam"
)
sink
(
snakemake
@
log
[[
1
]])
.libPaths
(
c
(
snakemake
@
params
[[
"r_package_path"
]],
.libPaths
())
)
suppressPackageStartupMessages
(
library
(
MaRyam
))
hapProbsFile
=
snakemake
@
input
[[
"haplotypeProbs"
]]
GTprobsFile
=
snakemake
@
input
[[
"genotypeProbs"
]]
...
...
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