From a5e8bfbb4c148fb29858137e51c88a96d458fc83 Mon Sep 17 00:00:00 2001 From: Fontrodona Nicolas <nicolas.fontrodona@ens-lyon.fr> Date: Thu, 3 Dec 2020 18:10:46 +0100 Subject: [PATCH] src/bed_handler/get_other_exon_in_same_gene.py: modication of outpout file name in get_other_exon_in_same_gene --- src/bed_handler/get_other_exon_in_same_gene.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bed_handler/get_other_exon_in_same_gene.py b/src/bed_handler/get_other_exon_in_same_gene.py index bdb773b..0b3a225 100644 --- a/src/bed_handler/get_other_exon_in_same_gene.py +++ b/src/bed_handler/get_other_exon_in_same_gene.py @@ -172,11 +172,12 @@ def get_other_exon_in_same_gene(bed: str, final_df = get_final_bed(ctcf_dist, good_exon_df, distance_threshold) final_df.to_csv(OutputBed.output / outfile, sep="\t", index=False) gene_df = create_gene_bed4norm(BedConfig.gene_bed, final_df) - gene_df.to_csv(OutputBed.output / (outfile.replace(".bed", "") + - "-gene-dup.bed"), sep="\t", index=False) + gene_df.to_csv(OutputBed.output / outfile.replace("exon.bed", + "gene-dup.bed"), + sep="\t", index=False) gene_df = gene_df.drop_duplicates() - gene_df.to_csv(OutputBed.output / (outfile.replace(".bed", "") + - "-gene.bed"), sep="\t", index=False) + gene_df.to_csv(OutputBed.output / outfile.replace("exon.bed", "gene.bed"), + sep="\t", index=False) if __name__ == "__main__": -- GitLab