Skip to content

Commit

Permalink
add filtering before reformating cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
AmstlerStephan committed Jul 31, 2024
1 parent 8392a21 commit 4226acc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/workflows/umi-pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ workflow UMI_PIPELINE {

main:
CLUSTER( detected_umis_ch, raw )
REFORMAT_FILTER_CLUSTER( CLUSTER.out.cluster_fastas, raw, umi_parse_clusters )

CLUSTER.out.cluster_fastas
.transpose( by: 1 )
.filter{ sample, fasta -> fasta.countFasta() >= params.min_reads_per_cluster }
.groupTuple()
.set{ filtered_clusters }

REFORMAT_FILTER_CLUSTER( filtered_clusters, raw, umi_parse_clusters )
}

//////////////////
Expand Down

0 comments on commit 4226acc

Please sign in to comment.