Roth-Lab / pyclone

Probabilistic model for inferring clonal population structure from deep NGS sequencing.
https://bitbucket.org/aroth85/pyclone/wiki/Home
Other
98 stars 36 forks source link

Incorrect if statement #2

Open janka2012 opened 6 years ago

janka2012 commented 6 years ago

Hi, I think I found a typo in the config.py in the following if statement. In my opinion there should be if minor_cn > major_cn.

def get_mutation(mutation_id, ref_counts, var_counts, normal_cn, minor_cn, major_cn, prior):
    if minor_cn > minor_cn:
        raise Exception('{} is invalid. Major CN must be greater than minor CN.'.format(mutation_id))