Giter Club home page Giter Club logo

Comments (4)

ACEnglish avatar ACEnglish commented on September 27, 2024

Funny story, this is the third ticket in a row related to pysam.bcftools.consensus. Luckily, the first ticket required me to replace the haplotype consensus creation step with something more stable. Therefore, you may not see the error if you install directly from develop and try again. Please install from develop and let me know if you still see an error.

git clone https://github.com/spiralgenetics/truvari.git
python3 -m pip install truvari

from truvari.

nate-d-olson avatar nate-d-olson commented on September 27, 2024

Unfortunately, the replacement didn't address this error. Looks like it is an issue with extract_references, specifically the call to pysam.faidx(). Here is the log file.

2024-01-04 17:33:39,857 [INFO] Truvari v4.2.0rc1
2024-01-04 17:33:39,858 [INFO] Command /home/nolson/mambaforge/envs/truvari_eval/bin/truvari refine --threads 1 --align mafft --use-original --reference resources/references/GRCh38_chr21.fa --regions results/evaluations/truvari/eval14_testC/GRCh38_chr21_CMRGv1.00-stvar_asm17aChr21_stvar_dipcall-default/candidate.refine.bed results/evaluations/truvari/eval14_testC/GRCh38_chr21_CMRGv1.00-stvar_asm17aChr21_stvar_dipcall-default
2024-01-04 17:33:39,858 [INFO] Params:
{
    "benchdir": "results/evaluations/truvari/eval14_testC/GRCh38_chr21_CMRGv1.00-stvar_asm17aChr21_stvar_dipcall-default",
    "reference": "resources/references/GRCh38_chr21.fa",
    "regions": "results/evaluations/truvari/eval14_testC/GRCh38_chr21_CMRGv1.00-stvar_asm17aChr21_stvar_dipcall-default/candidate.refine.bed",
    "use_original_vcfs": true,
    "use_region_coords": false,
    "recount": false,
    "threads": 1,
    "align": "mafft",
    "mafft_params": "--auto --thread 1",
    "debug": false
}
2024-01-04 17:33:39,858 [INFO] Setting up regions
2024-01-04 17:33:39,859 [INFO] 26 --includebed reduced to 7 after intersecting with 10 from --regions
2024-01-04 17:33:39,934 [INFO] 0 regions to be refined
2024-01-04 17:33:39,950 [INFO] Preparing regions
2024-01-04 17:33:39,951 [INFO] Extracting haplotypes
Traceback (most recent call last):
  File "/home/nolson/mambaforge/envs/truvari_eval/bin/truvari", line 8, in <module>
    sys.exit(main())
  File "/home/nolson/mambaforge/envs/truvari_eval/lib/python3.9/site-packages/truvari/__main__.py", line 102, in main
    TOOLS[args.cmd](args.options)
  File "/home/nolson/mambaforge/envs/truvari_eval/lib/python3.9/site-packages/truvari/refine.py", line 413, in refine_main
    truvari.phab(to_eval_coords, base_vcf, args.reference, phab_vcf, buffer=PHAB_BUFFER,
  File "/home/nolson/mambaforge/envs/truvari_eval/lib/python3.9/site-packages/truvari/phab.py", line 338, in phab
    ref_haps_fn = extract_reference(region_fn, ref_fn)
  File "/home/nolson/mambaforge/envs/truvari_eval/lib/python3.9/site-packages/truvari/phab.py", line 80, in extract_reference
    fout.write(samtools.faidx(ref_fn, "-r", reg_fn))
  File "/home/nolson/mambaforge/envs/truvari_eval/lib/python3.9/site-packages/pysam/utils.py", line 83, in __call__
    raise SamtoolsError(
pysam.utils.SamtoolsError: 'samtools returned with error 1: stdout=, stderr='```

from truvari.

ACEnglish avatar ACEnglish commented on September 27, 2024

My mistake. I saw pysam and guess I stopped reading the error. I just pushed a guard into develop that should work.

from truvari.

nate-d-olson avatar nate-d-olson commented on September 27, 2024

Thanks! That works. I'll close the issue. Here the log from my run 2024-01-04 17:50:07,230 [INFO] Truvari v4.2.0rc1 2024-01-04 17:50:07,230 [INFO] Command /home/nolson/mambaforge/envs/truvari_eval/bin/truvari refine --threads 1 --align mafft --use-original --reference resources/references/GRCh38_chr21.fa --regions results/evaluations/truvari/eval14_testC/GRCh38_chr21_CMRGv1.00-stvar_asm17aChr21_stvar_dipcall-default/candidate.refine.bed results/evaluations/truvari/eval14_testC/GRCh38_chr21_CMRGv1.00-stvar_asm17aChr21_stvar_dipcall-default 2024-01-04 17:50:07,230 [INFO] Params: { "benchdir": "results/evaluations/truvari/eval14_testC/GRCh38_chr21_CMRGv1.00-stvar_asm17aChr21_stvar_dipcall-default", "reference": "resources/references/GRCh38_chr21.fa", "regions": "results/evaluations/truvari/eval14_testC/GRCh38_chr21_CMRGv1.00-stvar_asm17aChr21_stvar_dipcall-default/candidate.refine.bed", "use_original_vcfs": true, "use_region_coords": false, "recount": false, "threads": 1, "align": "mafft", "mafft_params": "--auto --thread 1", "debug": false } 2024-01-04 17:50:07,230 [INFO] Setting up regions 2024-01-04 17:50:07,231 [INFO] 26 --includebed reduced to 7 after intersecting with 10 from --regions 2024-01-04 17:50:07,280 [INFO] 0 regions to be refined 2024-01-04 17:50:07,293 [INFO] Preparing regions 2024-01-04 17:50:07,294 [CRITICAL] No regions to be refined. Exiting

from truvari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.