Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot-vcfstats invalid syntax error #1035

Closed
rbutleriii opened this issue Jun 1, 2019 · 1 comment
Closed

Plot-vcfstats invalid syntax error #1035

rbutleriii opened this issue Jun 1, 2019 · 1 comment

Comments

@rbutleriii
Copy link

Encountered an error in plot-vcfstats as compiled in #1033 (with LD_LIBRARY_PATH set). Precompiled release version 1.9 works correctly with script:

# variables
infile="clinotator.ambry.dbSNP151.anno.vcf.gz"
outname="all"

# first some overall ClinVar variant stats
bcftools stats \
  -e 'INFO/CVCS ~ ""' \
  $infile > CV_${outname}.vchk
plot-vcfstats -p CV_${outname} CV_${outname}.vchk

With the compiled 1.9dev version I get the following error:

Parsing bcftools stats output: CV_all.vchk
Use of uninitialized value $xmin in concatenation (.) or string at /data/software/bcftools-1.9dev/bin/plot-vcfstats line 1625.
Use of uninitialized value $xmax in concatenation (.) or string at /data/software/bcftools-1.9dev/bin/plot-vcfstats line 1625.
Plotting graphs: python3 plot.py
  File "plot.py", line 223
    ax1.plot([,], [0.5,0.5],color='#c5c5c5')
              ^
SyntaxError: invalid syntax
The command exited with non-zero status 256:
        python3 plot.py

 at /data/software/bcftools-1.9dev/bin/plot-vcfstats line 111.
        main::error("The command exited with non-zero status 256:\x{a}\x{9}python3 plot.py\x{a}\x{a}") called at /data/software/bcftools-1.9dev/bin/plot-vcfstats line 300
        main::plot(HASH(0xdda050)) called at /data/software/bcftools-1.9dev/bin/plot-vcfstats line 7

Environment details:
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"
pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019)
conda environment.yml

name: clinotator
channels:
  - bioconda
  - defaults
  - conda-forge
dependencies:
  - biopython=1.73=py36h14c3975_0
  - blas=1.0=mkl
  - ca-certificates=2019.1.23=0
  - certifi=2019.3.9=py36_0
  - cycler=0.10.0=py36_0
  - dbus=1.13.6=h746ee38_0
  - expat=2.2.6=he6710b0_0
  - fontconfig=2.13.0=h9420a91_0
  - freetype=2.9.1=h8a8886c_1
  - glib=2.56.2=hd408876_0
  - gst-plugins-base=1.14.0=hbbd80ab_1
  - gstreamer=1.14.0=hb453b48_1
  - icu=58.2=h9c2bf20_1
  - intel-openmp=2019.3=199
  - jpeg=9b=h024ee3a_2
  - kiwisolver=1.1.0=py36he6710b0_0
  - libedit=3.1.20181209=hc058e9b_0
  - libffi=3.2.1=hd88cf55_4
  - libgcc-ng=8.2.0=hdf63c60_1
  - libgfortran-ng=7.3.0=hdf63c60_0
  - libpng=1.6.37=hbc83047_0
  - libstdcxx-ng=8.2.0=hdf63c60_1
  - libtiff=4.0.10=h2733197_2
  - libuuid=1.0.3=h1bed415_2
  - libxcb=1.13=h1bed415_1
  - libxml2=2.9.9=he19cac6_0
  - matplotlib=3.1.0=py36h5429711_0
  - mkl=2018.0.3=1
  - mmtf-python=1.1.2=py_0
  - msgpack-python=0.6.1=py36hfd86e86_1
  - ncurses=6.1=he6710b0_1
  - numpy=1.12.1=py36he24570b_1
  - olefile=0.46=py36_0
  - openssl=1.1.1c=h7b6447c_1
  - pandas=0.24.2=py36he6710b0_0
  - pcre=8.43=he6710b0_0
  - pillow=6.0.0=py36h34e0f95_0
  - pip=19.1.1=py36_0
  - pyparsing=2.4.0=py_0
  - pyqt=5.9.2=py36h05f1152_2
  - python=3.6.8=h0371630_0
  - python-dateutil=2.8.0=py36_0
  - pytz=2019.1=py_0
  - qt=5.9.7=h5867ecd_1
  - readline=7.0=h7b6447c_5
  - reportlab=3.5.19=py36he686d34_0
  - setuptools=41.0.1=py36_0
  - sip=4.19.8=py36hf484d3e_0
  - six=1.12.0=py36_0
  - sqlite=3.28.0=h7b6447c_0
  - tk=8.6.8=hbc83047_0
  - tornado=6.0.2=py36h7b6447c_0
  - wheel=0.33.2=py36_0
  - xz=5.2.4=h14c3975_4
  - zlib=1.2.11=h7b6447c_3
  - zstd=1.3.7=h0b5b093_0
@pd3 pd3 closed this as completed in 934cbb5 Jun 3, 2019
@pd3
Copy link
Member

pd3 commented Jun 3, 2019

Thank you for the bug report. This is now fixed by 934cbb5 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants