Commit bd7efed6 authored by Marc Duez's avatar Marc Duez
parents 8a5116c4 e7827f5e
......@@ -158,8 +158,11 @@ class Window:
return obj
def latex(self, point=0):
return r" & & %7d & %-50s \\ %% %s" % (self.d["reads"][0], self.d["name"] if 'name' in self.d else self.d["id"], self.d["id"])
def latex(self, point=0, base=10000):
reads = self.d["reads"][point]
ratio = float(reads)/base
return r" & & %7d & %5.2f%% & %-50s \\ %% %s" % (reads, ratio * 100,
self.d["name"] if 'name' in self.d else self.d["id"], self.d["id"])
### print essential info about Window
def __str__(self):
......
......@@ -17,13 +17,14 @@ parser.add_argument('file', nargs='+', help='''.vidjil files''')
def main():
print '%%%%', ' '.join(sys.argv)
args = parser.parse_args()
datas = []
for i in args.file:
data = fuse.ListWindows()
data.load(i, False, verbose = args.verbose)
print ' ', i
print '%% ', i
out = []
for w in data:
if w.d['reads'][0] >= args.min:
......
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