Skip to content

Commit

Permalink
fixing all null stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
toniher committed Oct 25, 2024
1 parent 928eb47 commit 0e61e65
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion modules/local/exorthist/collapse_matches.nf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ process COLLAPSE_OVERLAPPING_MATCHES {
path "overlapping_EXs_by_species.tab", emit: overlapping_exs

script:
def bonafide = bonafide_pairs.name != 'NO_FILE' ? "-b ${bonafide_pairs}" : ''
def bonafide = bonafide_pairs.name != 'null' ? "-b ${bonafide_pairs}" : ''
"""
C3_count_matches_by_EX.pl ${scores} EX_matches_count_by_species.tab ${bonafide}
C4_get_overlapping_EXs.pl -i EX_matches_count_by_species.tab -o overlapping_EXs_by_species.tab
Expand Down
2 changes: 1 addition & 1 deletion modules/local/exorthist/recluster_exs.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ process RECLUSTER_EXS_BY_SPECIES_PAIR {
path "reclustered_EXs_*.tab", emit: recl_exs

when:
orthopairs.name != 'NO_FILE'
orthopairs.name != 'null'

script:
def combid1 = combid.replace("-", "_")
Expand Down
2 changes: 1 addition & 1 deletion modules/local/exorthist/recluster_genes.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ process RECLUSTER_GENES_BY_SPECIES_PAIR {
tuple val(combid), path("reclustered_genes_*.tab"), emit: recl_genes_for_rec_exons

when:
orthopairs.name != 'NO_FILE'
orthopairs.name != 'null'

script:
def (species1, species2) = combid.split("-")
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/exorthist/cluster.nf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ workflow CLUSTER {
if (orthopairs) {
orthopairs_ch = Channel.fromPath(orthopairs, checkIfExists: true).collect()
} else {
orthopairs_ch = Channel.fromPath("/path/to/NO_FILE").collect()
orthopairs_ch = Channel.fromPath("/dev/null").collect()
}

FORMAT_EX_CLUSTERS_INPUT(score_exon_hits_pairs, clusterfile_ch, orthogroupnum)
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/exorthist/score.nf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ workflow SCORE {
if ( bonafide_pairs ) {
COLLAPSE_OVERLAPPING_MATCHES(filtered_all_scores, bonafide_pairs)
} else {
COLLAPSE_OVERLAPPING_MATCHES(filtered_all_scores, Channel.fromPath("/path/to/NO_FILE").collect())
COLLAPSE_OVERLAPPING_MATCHES(filtered_all_scores, Channel.fromPath("/dev/null").collect())
}

emit:
Expand Down

0 comments on commit 0e61e65

Please sign in to comment.