Skip to content

Instantly share code, notes, and snippets.

@yeemey
yeemey / tidy_breseq.py
Last active Sep 2, 2019
Functions to tidy data from breseq's annotated.gd output file
View tidy_breseq.py
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