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

Error when running conda version #55

Open
fgvieira opened this issue Feb 14, 2025 · 0 comments
Open

Error when running conda version #55

fgvieira opened this issue Feb 14, 2025 · 0 comments

Comments

@fgvieira
Copy link

I've installed NGSCheckMate through conda but, when running it, I get these errors:

$ NCM_REF=small_genome.fasta ncm_fastq.py --depth 5 --pt small_pt.pt  --maxthread 1  --list /tmp/tmp_sdhdeky/list_file.txt  --outdir /tmp/tmp_sdhdeky -N snake_out

Traceback (most recent call last):
  File "/home/lnc113/appz/snakemake-wrappers/bio/ngscheckmate/ncm/test/.snakemake/conda/2f08aab77343104890272f54db2eac3c_/NGSCheckMate/ncm_fastq.py", line 869, in <module>
    for line in F.xreadlines():
                ^^^^^^^^^^^^
AttributeError: '_io.TextIOWrapper' object has no attribute 'xreadlines'. Did you mean: 'readlines'?
$ NCM_REF=small_genome.fasta ncm.py --nonzero --bedfile small.bed  --BAM --bedfile small.bed  --list /tmp/tmphi86f_gs/list_file.txt  --outdir /tmp/tmphi86f_gs -N snake_out

Set the path to your reference file with the NCM_REF environment variable
eg. export NCM_REF=/<path>/<to>/<reference>

Traceback (most recent call last):
  File "/home/lnc113/appz/snakemake-wrappers/bio/ngscheckmate/ncm/test/.snakemake/conda/8213eee5d2ff0fda1fa40b2051ca024e_/NGSCheckMate/ncm.py", line 1444, in <module>
    run_mpileup()
  File "/home/lnc113/appz/snakemake-wrappers/bio/ngscheckmate/ncm/test/.snakemake/conda/8213eee5d2ff0fda1fa40b2051ca024e_/NGSCheckMate/ncm.py", line 1199, in run_mpileup
    if samtool_line.find("Version") != -1:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument should be integer or bytes-like object, not 'str'
$ NCM_REF=small_genome.fasta ncm.py --nonzero --bedfile small.bed --VCF --bedfile small.bed  --list /tmp/tmpgftp5cwn/list_file.txt  --outdir /tmp/tmpgftp5cwn -N snake_out

Set the path to your reference file with the NCM_REF environment variable
eg. export NCM_REF=/<path>/<to>/<reference>

Generate Data Set from /tmp/tmpiwprad4g/list_file.txt
using this bed file : small.bed
Traceback (most recent call last):
  File "/home/lnc113/appz/snakemake-wrappers/bio/ngscheckmate/ncm/test/.snakemake/conda/8213eee5d2ff0fda1fa40b2051ca024e_/NGSCheckMate/ncm.py", line 1474, in <module>
    createDataSetFromList(base_list,bedFile)
  File "/home/lnc113/appz/snakemake-wrappers/bio/ngscheckmate/ncm/test/.snakemake/conda/8213eee5d2ff0fda1fa40b2051ca024e_/NGSCheckMate/ncm.py", line 409, in createDataSetFromList
    if glob_scores.has_key(file):
       ^^^^^^^^^^^^^^^^^^^
AttributeError: 'dict' object has no attribute 'has_key'

Is the conda recipe lacking some dependencies?
thanks,

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

1 participant