Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Beatrice Tan
CNAprioritization
Commits
ed42f984
Commit
ed42f984
authored
Jan 30, 2018
by
Beatrice Tan
Browse files
Attempt to plot regions.
parent
914ac322
Changes
2
Hide whitespace changes
Inline
Side-by-side
rules/ComparisonRegions.smk
View file @
ed42f984
...
...
@@ -60,4 +60,4 @@ rule compare_regions:
output:
plots=expand("Reports/Overlap_plots/{region}.png", region=get_regions(input.overlap))
shell:
"R {workflow.basedir}/scripts/
karyoplote
R"
"R {workflow.basedir}/scripts/
plot_regions.
R"
scripts/plot_regions.R
0 → 100644
View file @
ed42f984
#!/usr/bin/env Rscript
args
=
commandArgs
(
trailingOnly
=
TRUE
)
source
(
"https://bioconductor.org/biocLite.R"
)
biocLite
(
"karyoploteR"
)
bed
=
read.table
(
args
[
1
],
sep
=
"\t"
,
header
=
TRUE
)
#Read output plot files?
#chrom as "chr1"
kp
<-
plotKaryotype
(
chromosomes
=
c
(
chrom
))
#kpDataBackground(kp)
kpAxis
(
kp
)
kpRect
(
kp
,
chr
=
chrom
,
x0
=
start
,
x1
=
end
,
y0
=
0.2
,
y1
=
0.4
)
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment