Skip to content

Commit

Permalink
update main.nf
Browse files Browse the repository at this point in the history
  • Loading branch information
anwarMZ committed Feb 28, 2023
1 parent be07238 commit eb63eaf
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -145,26 +145,16 @@ workflow {

if(params.mode == 'reference'){

ch_metadata=Channel.empty()
ch_voc=Channel.empty()

if (params.skip_viralai){
if(params.seq){

if(params.seq){
Channel.fromPath( "$params.seq", checkIfExists: true)
.set{ ch_seq }
}
}

if(params.meta){
if(params.meta){
Channel.fromPath( "$params.meta", checkIfExists: true)
.set{ ch_metadata }
}
}
else{
viralaidata(ch_pangolin_alias)
ch_metadata=viralaidata.out.ch_metadata
ch_seq=viralaidata.out.ch_seq
}

}

preprocessing(ch_metadata, ch_seq, ch_variant)
ch_voc=preprocessing.out.ch_voc
Expand Down

0 comments on commit eb63eaf

Please sign in to comment.