Beispiel #1
0
def generate_control_means(Ct_controls):
    control_means={}
    control_means["bacterial"]=[bmath.calc_mean([Ct_controls["Pan Bacteria 1"][0],Ct_controls["Pan Bacteria 2"][0]]),"NA"] #control mean for "bacterial" is the mean of pan bact 1 and pan bact 2. Because the returned mapping file is expecting two values, also have to store an "NA" val 
    control_means["human"]=[bmath.calc_mean([Ct_controls["Hs/MmGAPDH"][0],Ct_controls["Hs/Mm HBB"][0]]),"NA"] #control mean for "human" is the mean of HBB and GAPDH. Because the returned mapping file is expecting two values, also have to store an "NA" val
    return control_means #The result is bacterial:[mean,"NA"], human:[mean,"NA"]
Beispiel #2
0
def calculate_stats(cts):
    mean=bmath.calc_mean(cts)
    stdev=bmath.calc_stdev(cts)
    return mean,stdev