Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
huyustats committed Jun 2, 2023
1 parent b0811aa commit 047af4d
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 8 deletions.
17 changes: 15 additions & 2 deletions build/lib/liqa_src/liqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def main():
crtAbsPath = os.getcwd()

task = ""
taskList = ["refgene", "quantify", "diff"]
taskList = ["refgene", "quantify", "diff", "novel"]
for i in range(1,len(sys.argv)):
if sys.argv[i] == "-task" and len(sys.argv)!=i+1:
task = sys.argv[i+1]
Expand All @@ -19,7 +19,8 @@ def main():
print("\trefgene: preprocess reference file\n")
print("\tquantify: quantify isoform expression\n")
print("\tdiff: detect differential splicing gene/isoform\n")

print("\tnovel: detect novel isoform\n")

if task == "refgene":
validArgList = ["-task", "-ref", "-format", "-out"]
addAbsPath = [0, 1, 0, 3]
Expand All @@ -38,6 +39,18 @@ def main():
else:
print("Please specify reference file format: gtf/ucsc")

if task == "novel":
validArgList = ["-task", "-ref", "-bamlist", "-out"]
addAbsPath = [0, 1, 1, 3]
message = "liqa -task novel -ref <reference_file> -bamlist <list of bam file> -out <output_file>"
inputs = my.parse_argument(validArgList, addAbsPath, message)
refFile = inputs[1]
bamList = inputs[2]
outFile = inputs[3]

myCommand = "perl " + fileAbsPath + "/detect.pl -r " + refFile + " -o " + outFile + " -b " + bamList
os.system(myCommand)

if task == "quantify":
validArgList = ["-task", "-refgene", "-bam", "-out", "-max_distance", "-f_weight"]
addAbsPath = [0, 1, 1, 3, 0, 0]
Expand Down
Binary file added dist/liqa-1.1.3-py3-none-any.whl
Binary file not shown.
Binary file added dist/liqa-1.1.3.tar.gz
Binary file not shown.
3 changes: 3 additions & 0 deletions example/.pg_xattr
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

example.pgbam:883420:user.PetaGene.internals.decompressed=SF:10100046;M:2229132
example.pgbam:883420:DONE
Binary file removed example/example.bam
Binary file not shown.
1 change: 1 addition & 0 deletions example/example.bam
Binary file removed example/example.bam.bai
Binary file not shown.
1 change: 1 addition & 0 deletions example/example.bam.bai
Binary file added example/example.pgbai
Binary file not shown.
Binary file added example/example.pgbam
Binary file not shown.
5 changes: 1 addition & 4 deletions liqa.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
Metadata-Version: 2.1
Name: liqa
Version: 1.1.22
Version: 1.1.3
Summary: A statistical tool to quantify isoform-specific expression using long-read RNA-seq
Home-page: https://github.com/WGLab/LIQA
Author: Yu Hu
Author-email: [email protected]
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Expand Down Expand Up @@ -44,5 +43,3 @@ If you have any questions/issues/bugs, please post them on [GitHub](https://gith
## Citation

Yu Hu, Li Fang, Xuelian Chen, Jiang F. Zhong, Mingyao Li, Kai Wang. LIQA: Long-read Isoform Quantification and Analysis. 2020. bioRxiv doi: [https://doi.org/10.1101/2020.09.09.289793](https://www.biorxiv.org/content/10.1101/2020.09.09.289793v1)


1 change: 0 additions & 1 deletion liqa.egg-info/entry_points.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[console_scripts]
liqa = liqa_src.liqa:main

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="liqa",
version="1.1.22",
version="1.1.3",
author="Yu Hu",
author_email="[email protected]",
description="A statistical tool to quantify isoform-specific expression using long-read RNA-seq",
Expand Down

0 comments on commit 047af4d

Please sign in to comment.