Commit 6e88d312 authored by Yan's avatar Yan
Browse files

New autoparams version implemented

* support for LCQ advantage max ms^n
parent 27f110ac
......@@ -385,12 +385,16 @@ def legendize(rawlegend, chrom_data):
text = "{}ms^{} {:.2f}@{:.1f}V; m/z = {:.1f}-{:.1f}".format(
marks[int(wut[0])], *wut[1:])
elif chrom_data['machtype'] == 57:
text = "ms; m/z = {:.2f}@{:.1f}V; m/z = {:.1f}-{:.1f}".format(*wut)
if int(wut[0]) == 1:
text = "ms; m/z = {:.1f}-{:.1f}".format(*wut[1:])
else:
text = ("ms^{:.0f};"+"".join([" {:.2f}/{:.1f}@{:.1f}V" for _ in
range(int(wut[0])-1)])+"; m/z = {:.1f}-{:.1f}").format(*wut)
else:
text = "unknown header type"
return text
strdata = [translate(i) for i in np.unique(np.array(rawlegend), axis=0)]
strtext = " and ".join(strdata) + "; t = {:.2f}-{:.2f} min".format(
strtext = " and\n".join(strdata) + "; t = {:.2f}-{:.2f} min".format(
chrom_data['t_start'], chrom_data['t_end'])
return strtext
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment