Skip to content

Commit

Permalink
moving blosum
Browse files Browse the repository at this point in the history
  • Loading branch information
toniher committed Oct 18, 2024
1 parent e2ffa36 commit cb4d4c0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,7 @@ if (params.resume) exit 1, "Are you making the classical --resume typo? Be caref

// TODO: Handle checks
// clusterfile = file(params.cluster)
blosumfile = file("${baseDir}/files/blosum62.txt")
// evodisfile = file(params.evodists)

if ( !blosumfile.exists() ) exit 1, "Missing blosum file: ${blosumfile}!"
// if ( !clusterfile.exists() ) exit 1, "Missing clusterfile file: ${clusterfile}!"
// if ( !evodisfile.exists() ) exit 1, "Missing evodists file: ${evodisfile}!"
//

LOCAL_SUBWORKFLOWS='./subworkflows/local/exorthist'
Expand Down Expand Up @@ -159,6 +154,9 @@ workflow {
gtfs = Channel.fromPath(params.annotations).collect()
fastas = Channel.fromPath(params.genomes).collect()

blosumfile = file("${baseDir}/files/blosum62.txt")
if ( !blosumfile.exists() ) exit 1, "Missing blosum file: ${blosumfile}!"

// TODO: Review this in an easier way
gtfs_suffix = Channel.fromFilePairs(params.annotations, size: 1).flatten().collate(2).map{[it[1].getName().toString().split(it[0].toString())[1]]}.unique().flatten()
fastas_suffix = Channel.fromFilePairs(params.genomes, size: 1).flatten().collate(2).map{[it[1].getName().toString().split(it[0].toString())[1]]}.unique().flatten()
Expand Down

0 comments on commit cb4d4c0

Please sign in to comment.