Skip to content

Commit

Permalink
Change: flashweave pipeline will not support bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
dileep-kishore committed Mar 2, 2021
1 parent ddbe778 commit 775f89f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 43 deletions.
8 changes: 0 additions & 8 deletions micone/config/configs/network_inference.toml
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@
[[network_inference.direct.flashweave.input]]
datatype = "sample_metadata"
format = ["tsv"]
[[network_inference.direct.flashweave.input]]
datatype = "otu_bootstrap"
format = ["boot"]
[[network_inference.direct.flashweave.parameters]]
process = "flashweave"
ncpus = 1
Expand All @@ -165,11 +162,6 @@
datatype = "interaction_table"
format = ["tsv"]
location = "**/*_corr.tsv"
[[network_inference.direct.flashweave.output]]
datatype = "interaction_bootstrap"
format = ["boot"]
location = "**/*_corr.boot"


[network_inference.direct.mldm]
env = "micone-mldm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ flashweave {
params {
output_dir = "{{ output_dir }}"
otudata = "{{ input['otu_table'] }}"
otu_bootstrap = "{{ input['otu_bootstrap'] }}"
sample_metadata = "{{ input['sample_metadata'] }}"

ncpus = flashweave.ncpus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// Initialize variables
def otudata = params.otudata
def otu_bootstrap = params.otu_bootstrap
def sample_metadata = file(params.sample_metadata)
def output_dir = file(params.output_dir)

Expand All @@ -26,18 +25,6 @@ Channel
) }
.set { chnl_otudata }

Channel
.fromPath(otu_bootstrap)
.ifEmpty {exit 1, "Otu files not found"}
.map { tuple(
(it.getParent().getParent().baseName + '_' + it.getParent().baseName + '_' + it.baseName),
it.getParent().getParent().baseName,
it.getParent().baseName,
it
) }
.set { chnl_otudata_boot }


// Processes

process flashweave_graph {
Expand All @@ -60,24 +47,3 @@ process flashweave_corr {
script:
{{ export_gml }}
}

process flashweave_graph_boot {
tag "${id}"
input:
set val(id), val(dataset), val(level), file(otu_file) from chnl_otudata_boot
output:
set val(id), file(otu_file), file('*_network.gml') into chnl_graph_boot
script:
{{ flashweave }}
}

process flashweave_corr_boot {
tag "${id}"
publishDir "${output_dir}/${dataset}/${level}", saveAs: { fname -> fname.split('.tsv')[0] + '.boot' }, mode: 'copy', overwrite: true
input:
set val(id), file(otu_file), file(network_file) from chnl_graph_boot
output:
set val(id), file('*_corr.tsv') into chnl_corr_boot
script:
{{ export_gml }}
}

0 comments on commit 775f89f

Please sign in to comment.