Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Hu committed Jan 26, 2021
1 parent ef6d066 commit 5a893b8
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions build/lib/liqa_src/PreProcess_gtf.pl
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@
}
}

my $number_genes = scalar keys %knownGene;
print "$number_genes genes are being processed...\n";

#open(REF, $ref
open (RRR, ">$output");

Expand Down
6 changes: 4 additions & 2 deletions build/lib/liqa_src/quantify.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def auto_dict():
tmpisolength[iii] = tmpisolength[iii]/2566
#print(gene+"\t"+str(tmpisolength[iii]))
else:
genelength = 1
genelength = 100
tmpisolength = tmpisoinf[0].split(",")
for iii in range(len(tmpisolength)-1):
tmpisolength[iii] = 0
Expand Down Expand Up @@ -525,11 +525,13 @@ def auto_dict():

print(gene+"\t"+str(iterCount)+" iterations\tDone!")

rpg_lengthcorrected = readCount/genelength*100
#rpg_lengthcorrected = readCount/genelength*100
for i in range(len(Alpha)):
#isoformRelativeAbundances[i] = (Alpha[i]/isoformLength[isoformNames[i]]+tmpisolength[i]*weightF) /(sumTheta)
isoformRelativeAbundances[i] = (Alpha[i] + tmpisolength[i]*weightF) /(sumTheta)
#print(gene+"\t"+str(geneCount)+"\t"+str(iterCount)+"\t"+isoformNames[i]+"\t"+str(isoformRelativeAbundances[i])+"\t"+str(tmpTime))

rpg_lengthcorrected = readCount/genelength*100*isoformRelativeAbundances[i]

#OUT.write(gene+"\t"+isoformNames[i]+"\t"+str(readCount)+"\t"+str(isoformRelativeAbundances[i])+"\t"+str(rpg_lengthcorrected)+"\n") ## write results into specified file
OUT.write(gene+"\t"+isoformNames[i]+"\t"+str(isoformRelativeAbundances[i])+"\t"+str(rpg_lengthcorrected)+"\n")
Expand Down
3 changes: 3 additions & 0 deletions build/scripts-3.7/PreProcess_gtf.pl
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@
}
}

my $number_genes = scalar keys %knownGene;
print "$number_genes genes are being processed...\n";

#open(REF, $ref
open (RRR, ">$output");

Expand Down
Binary file added dist/liqa-1.1.15-py3-none-any.whl
Binary file not shown.
Binary file added dist/liqa-1.1.15.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion liqa.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: liqa
Version: 1.1.13
Version: 1.1.15
Summary: A statistical tool to quantify isoform-specific expression using long-read RNA-seq
Home-page: https://github.com/WGLab/LIQA
Author: Yu Hu
Expand Down
4 changes: 2 additions & 2 deletions liqa_src/quantify.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def auto_dict():
startTime = time.time()

#OUT.write("GeneName\tIsoformName\tNumberOfReads\tRelativeAbundance\n") ## Header of Results
OUT.write("GeneName\tIsoformName\tRelativeAbundance\tReadPerGene_corrected\n")
OUT.write("GeneName\tIsoformName\tReadPerGene_corrected\tRelativeAbundance\n")

for gene in geneStructureInformation:

Expand Down Expand Up @@ -534,7 +534,7 @@ def auto_dict():
rpg_lengthcorrected = readCount/genelength*100*isoformRelativeAbundances[i]

#OUT.write(gene+"\t"+isoformNames[i]+"\t"+str(readCount)+"\t"+str(isoformRelativeAbundances[i])+"\t"+str(rpg_lengthcorrected)+"\n") ## write results into specified file
OUT.write(gene+"\t"+isoformNames[i]+"\t"+str(isoformRelativeAbundances[i])+"\t"+str(rpg_lengthcorrected)+"\n")
OUT.write(gene+"\t"+isoformNames[i]+"\t"+str(rpg_lengthcorrected)+"\t"+str(isoformRelativeAbundances[i])+"\n")

OUT.close()

Expand Down
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.13",
version="1.1.15",
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 5a893b8

Please sign in to comment.