Traceback (most recent call last):
File "src/make_corrected_vaf.py", line 332, in <module>
main()
File "src/make_corrected_vaf.py", line 329, in main
get_correct_vaf(cnv_regions, vcf, tumor_purity, output)
File "src/make_corrected_vaf.py", line 241, in get_correct_vaf
variants = random.sample(variants, cutoff)
when running with real vcf file, I got the error:
Fixed by adding
import random