Skip to content

Commit

Permalink
adding quantification/magnitude in krona output
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Mar 21, 2018
1 parent 15428ac commit e52b8dd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/centrifuge2krona
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,22 @@ if __name__ == "__main__":
print(cmd)
os.system(cmd)
if not taxo:
cmd = "ktImportTaxonomy -q 2 -t 5 -o "+basename+"_krona.html "+outpath+"/"+basename+"_centriKraken_LCA_minScore_"+minscore+"_minLength_"+minlen+".out"
cmd = "ktImportTaxonomy -q 2 -t 5 -m 3-o "+basename+"_krona.html "+outpath+"/"+basename+"_centriKraken_LCA_minScore_"+minscore+"_minLength_"+minlen+".out"
print(cmd)
os.system(cmd)
else:
cmd = "ktImportTaxonomy -q 2 -t 5 -tax "+taxo+" -o "+basename+"_krona.html "+outpath+"/"+basename+"_centriKraken_LCA_minScore_"+minscore+"_minLength_"+minlen+".out"
cmd = "ktImportTaxonomy -q 2 -t 5 -m 3 -tax "+taxo+" -o "+basename+"_krona.html "+outpath+"/"+basename+"_centriKraken_LCA_minScore_"+minscore+"_minLength_"+minlen+".out"
print(cmd)
os.system(cmd)
else:
cmd = "centrifuge-kreport -x "+index+" --no-lca --min-score "+minscore+" --min-length "+minlen+" "+infile+" > "+basename+"_centriKraken_noLCA_minScore_"+minscore+"_minLength_"+minlen+".out"
print(cmd)
os.system(cmd)
if not taxo:
cmd = "ktImportTaxonomy -q 2 -t 5 -o "+basename+"_krona.html "+outpath+"/"+basename+"_centriKraken_noLCA_minScore_"+minscore+"_minLength_"+minlen+".out"
cmd = "ktImportTaxonomy -q 2 -t 5 -m 3 -o "+basename+"_krona.html "+outpath+"/"+basename+"_centriKraken_noLCA_minScore_"+minscore+"_minLength_"+minlen+".out"
print(cmd)
os.system(cmd)
else:
cmd = "ktImportTaxonomy -q 2 -t 5 -tax "+taxo+" -o "+basename+"_krona.html "+outpath+"/"+basename+"_centriKraken_noLCA_minScore_"+minscore+"_minLength_"+minlen+".out"
cmd = "ktImportTaxonomy -q 2 -t 5 -m 3 -tax "+taxo+" -o "+basename+"_krona.html "+outpath+"/"+basename+"_centriKraken_noLCA_minScore_"+minscore+"_minLength_"+minlen+".out"
print(cmd)
os.system(cmd)

0 comments on commit e52b8dd

Please sign in to comment.