Skip to content

Instantly share code, notes, and snippets.

@yeemey
yeemey / tidy_breseq.py
Last active September 2, 2019 20:08
Functions to tidy data from breseq's annotated.gd output file
import numpy as np
import pandas as pd
import re
def sum_cov(cov_str):
cov_ints = cov_str.split('/')
total_cov = 0
for cov in cov_ints:
total_cov += int(cov)
return total_cov