Skip to content

Commit

Permalink
fix ase in case no DNA data is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
e-sollier committed Nov 20, 2024
1 parent bcbdf46 commit 14b904a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion figeno/ase.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ def read_SNPs_RNA(ase_file,gene=None,chr=None,start=None,end=None,exons=None,min
if "refCount_DNA" in df.columns: variables_selected+=["refCount_DNA","altCount_DNA"]
df = df[variables_selected]
df["VAF"] = [min(df.loc[i,"refCount"],df.loc[i,"altCount"]) / (df.loc[i,"refCount"]+df.loc[i,"altCount"]) for i in df.index]
df["VAF_DNA"] = [min(df.loc[i,"refCount_DNA"],df.loc[i,"altCount_DNA"]) / (df.loc[i,"refCount_DNA"]+df.loc[i,"altCount_DNA"]) for i in df.index]
if "refCount_DNA" in df.columns:
df["VAF_DNA"] = [min(df.loc[i,"refCount_DNA"],df.loc[i,"altCount_DNA"]) / (df.loc[i,"refCount_DNA"]+df.loc[i,"altCount_DNA"]) for i in df.index]
in_exons=[]
if exons is not None:
for i in df.index:
Expand Down
2 changes: 1 addition & 1 deletion figeno/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from figeno.cli import gui, init,make

__version__ = "1.6.3"
__version__ = "1.6.4"

def main():
parser = ArgumentParser("figeno",formatter_class=ArgumentDefaultsHelpFormatter)
Expand Down
2 changes: 1 addition & 1 deletion figeno/gui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "figeno",
"version": "1.6.3",
"version": "1.6.4",
"private": true,
"homepage": "./",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ packages = ["figeno", "figeno.data", "figeno.cli", "figeno.gui"]

[project]
name = 'figeno'
version = "1.6.3"
version = "1.6.4"
description = 'Package for generating genomics figures.'
readme = 'README.md'
authors = [
Expand Down

0 comments on commit 14b904a

Please sign in to comment.