Skip to content

Commit

Permalink
Update to use figeno 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
e-sollier committed Oct 31, 2024
1 parent d56ab64 commit d9e560d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyjacker/html_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion pyjacker/pyjacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -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]
Expand Down

0 comments on commit d9e560d

Please sign in to comment.