From d9e560d770af30853f1a090ce53b4ae5d67181c1 Mon Sep 17 00:00:00 2001 From: e-sollier Date: Thu, 31 Oct 2024 12:58:51 +0100 Subject: [PATCH] Update to use figeno 1.6.0 --- pyjacker/html_reports.py | 2 +- pyjacker/pyjacker.py | 3 ++- pyproject.toml | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pyjacker/html_reports.py b/pyjacker/html_reports.py index b7eadce..81c17db 100644 --- a/pyjacker/html_reports.py +++ b/pyjacker/html_reports.py @@ -145,7 +145,7 @@ def generate_individual_reports(df_result,df_TPM,breakpoints,CNAs,genes,ase_dir, config_ase={"general":{"reference":"custom","layout":"horizontal","genes_file":gtf_file}} config_ase["output"] = {"file":os.path.join(outdir,"Data/Figures/ASE/"+gene_name+"_"+sample+"."+image_format),"dpi":image_dpi,"width":100.0} config_ase["regions"] = [{"chr":chr,"start":gene_full.start,"end":gene_full.end}] - config_ase["tracks"] = [{"type":"ase","height":60,"margin_above":1.5,"ase_file":ase_file,"vcf_DNA":vcf_DNA,"grid":False}, + config_ase["tracks"] = [{"type":"ase","height":60,"margin_above":1.5,"file":ase_file,"vcf_DNA":vcf_DNA,"grid":False}, {"type":"genes","height":12.0,"margin_above":-2,"bounding_box": False,"genes":gene_name}, {"type":"chr_axis","height": 10.0}] figeno_make(config_ase) diff --git a/pyjacker/pyjacker.py b/pyjacker/pyjacker.py index be63ccd..2d5565c 100644 --- a/pyjacker/pyjacker.py +++ b/pyjacker/pyjacker.py @@ -25,7 +25,8 @@ def __init__(self,config_file): self.output_dir = data_yaml["output_dir"] if "image_format" in data_yaml: self.image_format=data_yaml["image_format"] else: self.image_format="svg" - if "image_dpi" in data_yaml: self.image_dpi=data_yaml["image_dpi"] + if "image_dpi" in data_yaml: self.image_dpi= float(data_yaml["image_dpi"]) + else: self.image_dpi=300 self.cache_dir = os.path.join( self.output_dir,"cache") os.makedirs( self.cache_dir,exist_ok=True) diff --git a/pyproject.toml b/pyproject.toml index 7c7cf00..4e44c8c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ packages = ["pyjacker"] [project] name = 'pyjacker' -version = "1.0.1" +version = "1.0.2" description = 'Enhancer hijacking detection from WGS and RNAseq.' readme = 'README.md' authors = [ @@ -27,7 +27,7 @@ dependencies = [ "statsmodels>=0.13.5", "pyyaml>=6.0", "matplotlib>=3.4.3", - "figeno>=1.5.1" + "figeno>=1.6.0" ] [project.scripts]