Skip to content

Commit

Permalink
Rename_main
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswyatt1 committed May 19, 2022
1 parent d1daadc commit 477d9cc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 117 deletions.
112 changes: 0 additions & 112 deletions main.2.nf

This file was deleted.

25 changes: 20 additions & 5 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ params.outdir = "Results"
params.input = "data/Example.csv"
params.seqids = "data/default1"
params.layout = "data/default2"
params.hex = "data/unique_hex2"
params.test=0


Expand All @@ -40,7 +41,7 @@ include { DOWNLOAD_NCBI } from './modules/download_ncbi.nf'
include { CHROMOPAINT } from './modules/chromo.nf'

Channel
.fromPath(params.input)
.fromPath(params.input)
.splitCsv()
.set { in_file }

Expand All @@ -58,6 +59,9 @@ Channel
.fromPath(params.layout)
.set { in_layout }

Channel
.fromPath(params.hex)
.set { in_hex }

Channel
.fromPath(params.input)
Expand All @@ -67,6 +71,7 @@ Channel
local: it.size() == 3
}
.set { input_type }


// input_type.ncbi.view { "$it is small" }
// input_type.local.view { "$it is large" }
Expand All @@ -81,13 +86,23 @@ workflow {

JCVI ( GFFREAD.out.proteins )

CONFIG ( in_seqids , in_layout , DOWNLOAD_NCBI.out.genome.mix(input_type.local).collect() )
//JCVI.out.new_format.combine(JCVI.out.new_format).filter{ it[0] != it[3] }.view()

//CONFIG ( in_seqids , in_layout , DOWNLOAD_NCBI.out.genome.mix(input_type.local).collect() )

SYNTENY ( JCVI.out.new_format.combine(JCVI.out.new_format).filter{ it[0] != it[3] } )

//MACRO ( CONFIG.out.seqids_out , CONFIG.out.layout_out , SYNTENY.out.anchors, JCVI.out.collect() )

//SYNTENY.out.anchors.view()

//in_hex.view()

SYNTENY ( JCVI.out.collect() )
//JCVI.out.beds.collect().view()

MACRO ( CONFIG.out.seqids_out , CONFIG.out.layout_out , SYNTENY.out.anchors, JCVI.out.collect() )
//JCVI.out.collect().view()

CHROMOPAINT ( SYNTENY.out.anchors , JCVI.out.collect() )
CHROMOPAINT ( in_hex , SYNTENY.out.anchors , JCVI.out.beds.collect().first() )

}

Expand Down

0 comments on commit 477d9cc

Please sign in to comment.