Roth-Lab / pyclone-vi

Fast method for inferring cancer clonal population structure from SNV data.
GNU General Public License v3.0
50 stars 11 forks source link

Non-integer copy numbers #38

Open Pranav-Garg opened 6 months ago

Pranav-Garg commented 6 months ago

In the input, the columns major_cn and minor_cn are expected to be integers but some copy number callers like PURPLE output decimal places. Does the algorithm of pyclone-vi still make sense if used with non-integer copy numbers?

If so, I found that changing just one line of code gets the program working. Line 115 in data.py should be changed from for x in range(1, major_cn + 1): to for x in range(1, int(np.ceil(major_cn))+1):