Closed jkalleberg closed 2 years ago
Describe the bug I ran python ~/NEAT/utilities/vcf_compare_OLD.py --help to confirm that downloading the git repo worked. However, I got the following error that seems to indicate a bug in the argument parser of this script.
python ~/NEAT/utilities/vcf_compare_OLD.py --help
(neat_conda) python ~/NEAT/utilities/vcf_compare_OLD.py Traceback (most recent call last): File "/storage/hpc/group/UMAG_test/WORKING/jakth2/deep-variant/scripts/setup/NEAT/utilities/vcf_compare_OLD.py", line 37, in <module> parser = argparse.ArgumentParser('python %prog [options] -r <ref.fa> -g <golden.vcf> -w <workflow.vcf>', TypeError: __init__() got an unexpected keyword argument 'version'
To Reproduce Steps to reproduce the behavior:
cd /path/to/working/directory
conda activate -p /path/to/neat_environment
git clone https://github.com/ncsa/NEAT.git
cd NEAT
pip install .
... Successfully installed NEAT-3.0
Expected behavior
python vcf_compare_OLD.py -r <ref.fa> * Reference Fasta \ -g <golden.vcf> * Golden VCF \ -w <workflow.vcf> * Workflow VCF \ -o <prefix> * Output Prefix \ -m <track.bed> Mappability Track \ -M <int> Maptrack Min Len \ -t <regions.bed> Targetted Regions \ -T <int> Min Region Len \ -c <int> Coverage Filter Threshold [15] \ -a <float> Allele Freq Filter Threshold [0.3] \ --vcf-out Output Match/FN/FP variants [False] \ --no-plot No plotting [False] \ --incl-homs Include homozygous ref calls [False] \ --incl-fail Include calls that failed filters [False] \ --fast No equivalent variant detection [False]
Desktop (please complete the following information):
(neat_conda)[user@remote_machine deep-variant]$ conda list # packages in environment at ~/neat_conda: # # Name Version Build Channel _libgcc_mutex 0.1 conda_forge conda-forge _openmp_mutex 4.5 1_gnu conda-forge biopython 1.79 py39h3811e60_1 conda-forge brotli 1.0.9 h7f98852_6 conda-forge brotli-bin 1.0.9 h7f98852_6 conda-forge bzip2 1.0.8 h7f98852_4 conda-forge c-ares 1.18.1 h7f98852_0 conda-forge ca-certificates 2021.10.8 ha878542_0 conda-forge certifi 2021.10.8 py39hf3d152e_1 conda-forge cycler 0.11.0 pyhd8ed1ab_0 conda-forge dbus 1.13.6 h5008d03_3 conda-forge expat 2.4.3 h9c3ff4c_0 conda-forge fontconfig 2.13.1 hba837de_1005 conda-forge fonttools 4.28.5 py39h3811e60_0 conda-forge freetype 2.10.4 h0708190_1 conda-forge gettext 0.19.8.1 h73d1719_1008 conda-forge glib 2.70.2 h780b84a_1 conda-forge glib-tools 2.70.2 h780b84a_1 conda-forge gst-plugins-base 1.14.0 hbbd80ab_1 gstreamer 1.14.0 h28cd5cc_2 icu 58.2 hf484d3e_1000 conda-forge jpeg 9d h36c2ea0_0 conda-forge kiwisolver 1.3.2 py39h1a9c180_1 conda-forge krb5 1.19.2 hcc1bbae_3 conda-forge lcms2 2.12 hddcbb42_0 conda-forge ld_impl_linux-64 2.36.1 hea4e1c9_2 conda-forge libblas 3.9.0 13_linux64_openblas conda-forge libbrotlicommon 1.0.9 h7f98852_6 conda-forge libbrotlidec 1.0.9 h7f98852_6 conda-forge libbrotlienc 1.0.9 h7f98852_6 conda-forge libcblas 3.9.0 13_linux64_openblas conda-forge libcurl 7.81.0 h2574ce0_0 conda-forge libdeflate 1.9 h7f98852_0 conda-forge libedit 3.1.20191231 he28a2e2_2 conda-forge libev 4.33 h516909a_1 conda-forge libffi 3.4.2 h7f98852_5 conda-forge libgcc-ng 11.2.0 h1d223b6_11 conda-forge libgfortran-ng 11.2.0 h69a702a_11 conda-forge libgfortran5 11.2.0 h5c6108e_11 conda-forge libglib 2.70.2 h174f98d_1 conda-forge libgomp 11.2.0 h1d223b6_11 conda-forge libiconv 1.16 h516909a_0 conda-forge liblapack 3.9.0 13_linux64_openblas conda-forge libnghttp2 1.43.0 h812cca2_1 conda-forge libnsl 2.0.0 h7f98852_0 conda-forge libopenblas 0.3.18 pthreads_h8fe5266_0 conda-forge libpng 1.6.37 h21135ba_2 conda-forge libssh2 1.10.0 ha56f1ee_2 conda-forge libstdcxx-ng 11.2.0 he4da1e4_11 conda-forge libtiff 4.2.0 h85742a9_0 libuuid 2.32.1 h7f98852_1000 conda-forge libwebp-base 1.2.2 h7f98852_0 conda-forge libxcb 1.13 h7f98852_1004 conda-forge libxml2 2.9.12 h03d6c58_0 libzlib 1.2.11 h36c2ea0_1013 conda-forge lz4-c 1.9.3 h9c3ff4c_1 conda-forge matplotlib 3.5.1 py39hf3d152e_0 conda-forge matplotlib-base 3.5.1 py39h2fa2bec_0 conda-forge matplotlib-venn 0.11.6 pyh9f0ad1d_0 conda-forge munkres 1.1.4 pyh9f0ad1d_0 conda-forge ncurses 6.3 h9c3ff4c_0 conda-forge neat 3.0 pypi_0 pypi numpy 1.22.0 py39h91f2184_1 conda-forge olefile 0.46 pyh9f0ad1d_1 conda-forge openssl 1.1.1l h7f98852_0 conda-forge packaging 21.3 pyhd8ed1ab_0 conda-forge pandas 1.3.5 py39hde0f152_0 conda-forge pcre 8.45 h9c3ff4c_0 conda-forge pillow 7.2.0 py39h6f3857e_2 conda-forge pip 21.3.1 pyhd8ed1ab_0 conda-forge pthread-stubs 0.4 h36c2ea0_1001 conda-forge pyparsing 3.0.6 pyhd8ed1ab_0 conda-forge pyqt 5.9.2 py39h2531618_6 pysam 0.17.0 py39h20405f9_1 bioconda python 3.9.9 h62f1059_0_cpython conda-forge python-dateutil 2.8.2 pyhd8ed1ab_0 conda-forge python_abi 3.9 2_cp39 conda-forge pytz 2021.3 pyhd8ed1ab_0 conda-forge qt 5.9.7 h5867ecd_1 readline 8.1 h46c0cb4_0 conda-forge scipy 1.7.3 py39hee8e79c_0 conda-forge setuptools 59.8.0 py39hf3d152e_0 conda-forge sip 4.19.13 py39h2531618_0 six 1.16.0 pyh6c4a22f_0 conda-forge sqlite 3.37.0 h9cd32fc_0 conda-forge tk 8.6.11 h27826a3_1 conda-forge tornado 6.1 py39h3811e60_2 conda-forge tzdata 2021e he74cb21_0 conda-forge wheel 0.37.1 pyhd8ed1ab_0 conda-forge xorg-libxau 1.0.9 h7f98852_0 conda-forge xorg-libxdmcp 1.1.3 h7f98852_0 conda-forge xz 5.2.5 h516909a_1 conda-forge zlib 1.2.11 h36c2ea0_1013 conda-forge zstd 1.4.9 ha95c52a_0 conda-forge
Additional context I'm trying to compare a VCF from a variant calling algorithm against the truth set generated by NEAT, but I am unable to do so.
I pulled in your changes. We're planning to overhaul vcf_compare once we get gen_reads updated.
I figured an overhaul was coming, but thanks for the update!
Describe the bug I ran
python ~/NEAT/utilities/vcf_compare_OLD.py --help
to confirm that downloading the git repo worked. However, I got the following error that seems to indicate a bug in the argument parser of this script.To Reproduce Steps to reproduce the behavior:
cd /path/to/working/directory
conda activate -p /path/to/neat_environment
with packages listed as Requirementsgit clone https://github.com/ncsa/NEAT.git
cd NEAT
pip install .
Expected behavior
Desktop (please complete the following information):
Additional context I'm trying to compare a VCF from a variant calling algorithm against the truth set generated by NEAT, but I am unable to do so.