Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
Signed-off-by: zethson <lukas.heumos@posteo.net>
  • Loading branch information
Zethson committed Feb 7, 2024
1 parent 5a5a864 commit cf10908
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions modules/multi_demultiplexing.nf
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,7 @@ workflow run_multi{
main:

if (params.mode == "genetic"){
// Performing genetic demultiplexing methodologies
gene_demultiplexing(input_channel)
////////////

if (params.match_donor == "True"){

Expand All @@ -80,20 +78,16 @@ workflow run_multi{
}
else if (params.mode == "hashing"){

// Performing hashing demultplexing
hash_demultiplexing(input_channel)
////////////

if (params.match_donor == "True"){
input_channel.splitCsv(header:true).map { row -> tuple(row.sampleId, row.nsample, row.barcodes, "None", "None")}.join(hash_demultiplexing.out).set{dm_input}
}
}
else if (params.mode == "rescue"){

// Performing both hashing and genetic demultiplexing methods
hash_demultiplexing(input_channel)
gene_demultiplexing(input_channel)
////////////

gene_summary = gene_demultiplexing.out
hash_summary = hash_demultiplexing.out
Expand All @@ -106,11 +100,9 @@ workflow run_multi{

}
else if (params.mode == "donor_match"){
// Performing just donor matching
input_channel.splitCsv(header:true).map { row -> tuple(row.sampleId, row.nsample, row.barcodes, row.celldata, row.vireo_parent_dir, row.demultiplexing_result)}.set{dm_input}
}


if (params.match_donor == "True" || params.mode == "donor_match"){
donor_match(dm_input)

Expand Down

0 comments on commit cf10908

Please sign in to comment.