diff --git a/modules/local/annotation/templates/annotation.py b/modules/local/annotation/templates/annotation.py index 780fa683..84c9652e 100755 --- a/modules/local/annotation/templates/annotation.py +++ b/modules/local/annotation/templates/annotation.py @@ -47,7 +47,6 @@ def format_yaml_like(data: dict, indent: int = 0) -> str: except pd.errors.EmptyDataError: raise ValueError("Intersection between circRNAs and GTF file is empty.") df = df.rename(columns=columns) -df # Extract circRNAs without match mask = df['feature_start'] == -1 @@ -97,7 +96,7 @@ def determine_type(row): return "circRNA" if "intron" in row["feature_type"]: return "ciRNA" - + return "unknown-circRNA" def get_representation(row, column): diff --git a/subworkflows/local/bsj_detection.nf b/subworkflows/local/bsj_detection.nf index 416c5163..42c658a4 100644 --- a/subworkflows/local/bsj_detection.nf +++ b/subworkflows/local/bsj_detection.nf @@ -109,6 +109,9 @@ workflow BSJ_DETECTION { ch_bsj_bed_per_sample_tool = ch_bsj_bed_per_sample_tool.mix(MAPSPLICE.out.bed) } + ch_bsj_bed_per_sample_tool = ch_bsj_bed_per_sample_tool + .filter{ meta, bed -> !bed.isEmpty() } + // // QUANTIFY BSJs PER TOOL //