Hi,
I was trying to run the extract_tracks.py script, but it threw an error
$ python3 /u/home/b/biona001/Tractor/scripts/extract_tracts.py \
--vcf /u/home/b/biona001/project-loes/ForBen_genotypes_subset/LAI/vcf_phased/chr22.vcf.gz \
--msp /u/home/b/biona001/project-loes/ForBen_genotypes_subset/LAI/output/chr22.msp.tsv \
--num-ancs 3 \
--output-dir /u/home/b/biona001/project-loes/ForBen_genotypes_subset/LAI/tracks
INFO (__main__ 90): # VCF File : /u/home/b/biona001/project-loes/ForBen_genotypes_subset/LAI/vcf_phased/chr22.vcf.gz
INFO (__main__ 91): # Prefix of output file names : chr22
INFO (__main__ 92): # VCF File is compressed? : True
INFO (__main__ 93): # Number of Ancestries in VCF : 3
INFO (__main__ 94): # Output Directory : /u/home/b/biona001/project-loes/ForBen_genotypes_subset/LAI/tracks
INFO (__main__ 100): Creating output files for 3 ancestries
Traceback (most recent call last):
File "/u/home/b/biona001/Tractor/scripts/extract_tracts.py", line 239, in <module>
extract_tracts(**vars(args))
File "/u/home/b/biona001/Tractor/scripts/extract_tracts.py", line 102, in extract_tracts
output_files[f"dos{i}"] = f"{output_path}anc{i}.dosage.txt{file_extension}"
NameError: name 'output_files' is not defined
Any tips/suggestions would be highly appreciated.
Hi,
I was trying to run the
extract_tracks.pyscript, but it threw an errorAny tips/suggestions would be highly appreciated.