Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kmer diff
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LBMC
Delattre
kmer diff
Commits
7140ac8c
Verified
Commit
7140ac8c
authored
1 year ago
by
Laurent Modolo
Browse files
Options
Downloads
Patches
Plain Diff
add kmermerclust_clust process and switch to v0.1.0 of kmerclust
parent
901eeea3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/bin/kmerclust_boot.R
+7
-2
7 additions, 2 deletions
src/bin/kmerclust_boot.R
src/main.nf
+1
-0
1 addition, 0 deletions
src/main.nf
src/modules/kmerclust.nf
+13
-13
13 additions, 13 deletions
src/modules/kmerclust.nf
with
21 additions
and
15 deletions
src/bin/kmerclust_boot.R
+
7
−
2
View file @
7140ac8c
library
(
kmerclust
)
library
(
tidyverse
)
args
<-
commandArgs
(
trailingOnly
=
TRUE
)
print
(
args
)
load
(
file
=
paste0
(
args
[
1
],
".Rdata"
))
res
<-
count
%>%
dplyr
::
select
(
count_m
,
count_f
)
%>%
mutate
(
count_m
=
round
(
count_m
),
count_f
=
round
(
count_f
)
)
%>%
dplyr
::
filter
(
count_m
+
count_f
>
0
)
%>%
as.matrix
()
%>%
poiss_compare_models
(
count
,
nboot
=
as.numeric
(
args
[
2
])
*
2
,
frac
=
1e-3
,
bootsize
=
1
,
core
=
as.numeric
(
args
[
2
]))
poiss_compare_models
(
count
,
nboot
=
as.numeric
(
args
[
2
])
*
2
,
nbatch
=
100
,
max_iter
=
1e4
,
bootsize
=
1
,
core
=
as.numeric
(
args
[
2
]))
save
(
res
,
file
=
paste0
(
args
[
1
],
"_boot_"
,
args
[
3
],
".Rdata"
))
This diff is collapsed.
Click to expand it.
src/main.nf
+
1
−
0
View file @
7140ac8c
...
...
@@ -35,6 +35,7 @@ workflow {
COLLATEKMER(MERGEKMER.out.csv.map{it -> [it[0].specie, it[1]] }.groupTuple())
KMERCLUST_LOAD(COLLATEKMER.out.csv, params_csv.collect())
KMERCLUST_BOOT(Channel.of(1..params.bootstrap).combine(KMERCLUST_LOAD.out.rdata))
KMERCLUST_CLUST(Channel.of(["XY", "XO", "OO"]).combine(KMERCLUST_LOAD.out.rdata))
KMERCLUST_MERGE(KMERCLUST_BOOT.out.rdata.groupTuple())
KMERCLUST_PLOT(KMERCLUST_MERGE.out.rdata.mix(KMERCLUST_LOAD.out.rdata).groupTuple())
}
This diff is collapsed.
Click to expand it.
src/modules/kmerclust.nf
+
13
−
13
View file @
7140ac8c
...
...
@@ -2,7 +2,7 @@ process KMERCLUST_LOAD {
tag "$specie"
label 'big_mem_mono_cpus'
container "lbmc/kmerclust:0.
0.7
"
container "lbmc/kmerclust:0.
1.0
"
publishDir "results/${params.kmer_size}/${specie}/", mode: 'copy'
input:
...
...
@@ -20,7 +20,7 @@ process KMERCLUST_LOAD {
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Rkmerclust: 0.
0.7
Rkmerclust: 0.
1.0
END_VERSIONS
"""
}
...
...
@@ -29,7 +29,7 @@ process KMERCLUST_BOOT {
tag "$specie"
label 'big_mem_multi_cpus'
container "lbmc/kmerclust:0.
0.7
"
container "lbmc/kmerclust:0.
1.0
"
publishDir "results/${params.kmer_size}/${specie}/", mode: 'copy'
input:
...
...
@@ -46,16 +46,16 @@ process KMERCLUST_BOOT {
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Rkmerclust: 0.
0.7
Rkmerclust: 0.
1.0
END_VERSIONS
"""
}
process KMERCLUST {
process KMERCLUST
_CLUST
{
tag "$specie"
label '
big
_mem_m
ulti
_cpus'
label '
small
_mem_m
ono
_cpus'
container "lbmc/kmerclust:0.
0.7
"
container "lbmc/kmerclust:0.
1.0
"
publishDir "results/${params.kmer_size}/${specie}/", mode: 'copy'
input:
...
...
@@ -68,11 +68,11 @@ process KMERCLUST {
script:
def args = task.ext.args ?: ''
"""
Rscript ${projectDir}/bin/kmerclust.R ${specie} ${task.cpus}
Rscript ${projectDir}/bin/kmerclust
_clust
.R ${specie} ${task.cpus}
${id}
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Rkmerclust: 0.
0.7
Rkmerclust: 0.
1.0
END_VERSIONS
"""
}
...
...
@@ -81,7 +81,7 @@ process KMERCLUST_MERGE {
tag "$specie"
label 'big_mem_mono_cpus'
container "lbmc/kmerclust:0.
0.7
"
container "lbmc/kmerclust:0.
1.0
"
publishDir "results/${params.kmer_size}/${specie}/", mode: 'copy'
input:
...
...
@@ -98,7 +98,7 @@ process KMERCLUST_MERGE {
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Rkmerclust: 0.
0.7
Rkmerclust: 0.
1.0
END_VERSIONS
"""
}
...
...
@@ -107,7 +107,7 @@ process KMERCLUST_PLOT {
tag "$specie"
label 'big_mem_mono_cpus'
container "lbmc/kmerclust:0.
0.7
"
container "lbmc/kmerclust:0.
1.0
"
publishDir "results/${params.kmer_size}/${specie}/", mode: 'copy'
input:
...
...
@@ -124,7 +124,7 @@ process KMERCLUST_PLOT {
cat <<-END_VERSIONS > versions.yml
"${task.process}":
Rkmerclust: 0.
0.7
Rkmerclust: 0.
1.0
END_VERSIONS
"""
}
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