Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ONT_pilot_gitlab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Contributor 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
ESB
ONT_pilot_gitlab
Merge requests
!68
Figures valentina
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Figures valentina
figures_valentina
into
master
Overview
0
Commits
27
Pipelines
0
Changes
5
Merged
Susheel Busi
requested to merge
figures_valentina
into
master
4 years ago
Overview
0
Commits
27
Pipelines
0
Changes
5
Expand
0
0
Merge request reports
Viewing commit
a1a48734
Prev
Next
Show latest version
5 files
+
124
−
18
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
5
Search (e.g. *.vue) (Ctrl+P)
a1a48734
added quast fig (issue
#15
); updated mmseq fig (issue
#16
)
· a1a48734
Valentina Galata
authored
4 years ago
figures/src/fig_mmseq_upsetr.R
+
5
−
9
Options
@@ -8,7 +8,7 @@ sink(file=file(snakemake@log[[1]], open="wt"), type="message")
# https://cran.r-project.org/web/packages/UpSetR/vignettes/basic.usage.html
## IMPORT
suppressMessages
(
library
(
testit
))
#
suppressMessages(library(testit))
suppressMessages
(
library
(
UpSetR
))
# custom
source
(
snakemake
@
params
$
utils
)
@@ -22,7 +22,7 @@ overlap_sizes <- read.csv(
stringsAsFactors
=
FALSE
)
# check: all expected tools are there
testit
::
assert
(
all
(
sapply
(
names
(
TOOL_NAMES
),
function
(
x
){
x
%in%
overlap_sizes
$
V2
})))
#
testit::assert(all(sapply(names(TOOL_NAMES), function(x){ x %in% overlap_sizes$V2 })))
# process names
for
(
tname
in
names
(
TOOL_NAMES
)){
overlap_sizes
$
V2
<-
sub
(
tname
,
TOOL_NAMES
[
tname
],
overlap_sizes
$
V2
)
@@ -41,17 +41,13 @@ UpSetR::upset(
order.by
=
"degree"
,
decreasing
=
FALSE
,
# colors
# queries=lapply(
# TOOL_NAMES,
# function(x){ list(query=UpSetR::intersects, params=list(x), color=TOOL_COLORS$proc[[x]], active=TRUE) }
# ),
set.metadata
=
list
(
data
=
data.frame
(
sets
=
TOOL_NAMES
,
Tool
=
TOOL_NAMES
,
sets
=
TOOL_NAMES
_NOTMETH
,
Tool
=
TOOL_NAMES
_NOTMETH
,
stringsAsFactors
=
FALSE
),
plots
=
list
(
list
(
type
=
"matrix_rows"
,
column
=
"Tool"
,
colors
=
TOOL_COLORS
$
proc
,
alpha
=
0.7
))
plots
=
list
(
list
(
type
=
"matrix_rows"
,
column
=
"Tool"
,
colors
=
TOOL_COLORS
$
notmeth
,
alpha
=
0.7
))
)
)
dev.off
()
Loading