morrislab / TrackSig

A framework to infer mutational signatures in cancer over time
MIT License
53 stars 17 forks source link

Update make_corrected_vaf.py #7

Closed RyogaLi closed 7 years ago

RyogaLi commented 7 years ago

when running with real vcf file, I got the error:

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)

Fixed by adding import random