Clean up the Identify_novel_lncRNA_with_criterions process from the old DSL1 pipeline which can be found here.
This process can for example use multiple modules like gffread. There might be some tools available from nf-core for get_exoncount.pl