Skip to content

Commit 456da83

Browse files
committed
ASE: only consider genes not filtered
1 parent ff6d7cb commit 456da83

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pyjacker/ase.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def compute_ase_matrix(samples,ase_dir,genes,genes_index=None,prior_coef=2.0,imp
5555

5656
llr = llr_betabinom(df_sample.loc[x,"altCount"], df_sample.loc[x,"altCount"]+df_sample.loc[x,"refCount"])
5757
for g in genes_at_locus(genes_index,df_sample.loc[x,"contig"].lstrip("chr"),int(df_sample.loc[x,"position"])):
58+
if not g.gene_id in genes: continue
5859
if not g.gene_id in geneIDs2llrs: geneIDs2llrs[g.gene_id]=[]
5960
geneIDs2llrs[g.gene_id].append(llr)
6061
for gene_id in geneIDs2llrs:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ packages = ["pyjacker"]
77

88
[project]
99
name = 'pyjacker'
10-
version = "1.1.0"
10+
version = "1.1.1"
1111
description = 'Enhancer hijacking detection from WGS and RNAseq.'
1212
readme = 'README.md'
1313
authors = [

0 commit comments

Comments
 (0)