Atkinson-Lab / Tractor

Scripts for implementing the Tractor pipeline
MIT License
44 stars 5 forks source link

Error message in the tutorial #15

Closed ZikunY closed 1 year ago

ZikunY commented 1 year ago

Hi,

I was following the tutorial with the example dataset, and I got the error message when I was running the following code,

python Tractor/ExtractTracts.py --msp ADMIX_COHORT/ASW.deconvoluted --vcf ADMIX_COHORT/ASW.phased --zipped --num-ancs 2

The error message is

File "Tractor/ExtractTracts.py", line 24 def extract_tracts(msp: str, vcf_prefix: str, zipped: bool, zip_output:bool, output_path:str, num_ancs: int = 2): ^ SyntaxError: invalid syntax

Could you let me know where I got wrong? Thanks!

mike-w-wilson commented 1 year ago

Hi @ZikunY,

This looks like an error message from python2. Can you try to running the script with python3?

ZikunY commented 1 year ago

Thanks, Mike! It works.