Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sharepathway/out2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def out2html(*args, **kwargs):
rr = kwargs.get('ratio',args[7])
outfilename = kwargs.get('output', args[8])
pwid2name = dict(kwargs.get('pwid2name', args[9]))
species = kwargs.get('species', args[10])
snum = GenesMat.shape[1]
pnum = pathwayMat.shape[1]
gnum = GenesMat.shape[0]
Expand Down Expand Up @@ -102,7 +103,7 @@ def out2html(*args, **kwargs):
</ul>
</h2>
</div>
""" %('hsa',pnum,snum,str(genelistscount),gnum, localtime))
""" %(species,pnum,snum,str(genelistscount),gnum, localtime))


outfile.write("""
Expand Down
2 changes: 1 addition & 1 deletion sharepathway/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,6 @@ def Run(*args, **kwargs):
# parse KEGG into matrix
[Pathways, pathwaycount, pathwayMat] = linkpath2mat(Genes, data)
enrich = enrichment(GenesMat, pathwayMat)
result = out2html(GenesMat, pathwayMat,enrich,Genes,Pathways,genelists,pathwaycount,ratio,fileout, pwid2name)
result = out2html(GenesMat, pathwayMat,enrich,Genes,Pathways,genelists,pathwaycount,ratio,fileout, pwid2name, species)
return(result)