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

changed pre.py params to work with single gvcf #113

Merged
merged 1 commit into from
Mar 1, 2021

Conversation

hguturu
Copy link
Contributor

@hguturu hguturu commented Feb 27, 2020

Closes #106

pre.py was crashing since it was expecting two args convert_gvcf_truth and convert_gvcf_query but referencing convert_gvcf since running pre.py directly only has one input. Updated the code and the documentation to use a single arg convert_gvcf_to_vcf.

@johanneskoester
Copy link

Can we get this merged and released, or another kind of fix for this issue? Fixing this would also have a high priority for the GIAB project.

Copy link
Contributor

@dskola dskola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@dskola dskola merged commit 214ec68 into Illumina:master Mar 1, 2021
@hguturu hguturu deleted the hg-fix-pre-convert-gvcf branch March 1, 2021 18:36
@johanneskoester
Copy link

@dskola, could you also release a new version?

@dskola
Copy link
Contributor

dskola commented Mar 2, 2021

Done!

@johanneskoester
Copy link

Thank you!

@nate-d-olson
Copy link

I tried running the hap.py command after this update, hap.py {TRUTH}.vcf.gz {QUERY}.vcf.gz -f {TRUTH REGIONS}.bed -r {REF}.fa --engine=vcfeval --stratification {STRATIFICATIONS}.tsv -o {OUTDIR}, using the updated bioconda package and the snakemake/snakemake docker container and get the following error. Which I think is due to changes made as part of this update.

2021-03-03 16:37:26,577 WARNING  No reference file found at default locations. You can set the environment variable 'HGREF' or 'HG19' to point to a suitable Fasta file.
Hap.py 
2021-03-03 16:37:26,700 ERROR    'Namespace' object has no attribute 'convert_gvcf_truth'
2021-03-03 16:37:26,700 ERROR    Traceback (most recent call last):
2021-03-03 16:37:26,701 ERROR      File "/opt/conda/envs/happy/bin/hap.py", line 529, in <module>
2021-03-03 16:37:26,701 ERROR        main()
2021-03-03 16:37:26,701 ERROR      File "/opt/conda/envs/happy/bin/hap.py", line 286, in main
2021-03-03 16:37:26,701 ERROR        if args.convert_gvcf_truth:
2021-03-03 16:37:26,701 ERROR    AttributeError: 'Namespace' object has no attribute 'convert_gvcf_truth'

@hguturu
Copy link
Contributor Author

hguturu commented Mar 9, 2021

I think this can be resolved if references to args.convert_gvcf_truth in hap.py are replaced by args.convert_gvcf_to_vcf. Since the parameters used by pre.py have been changed.

@nate-d-olson
Copy link

Thanks! I submitted a pull request.

nicholas-owen pushed a commit to nicholas-owen/hap.py that referenced this pull request Mar 17, 2022
* Documentation updates for 0.3.12 release (Illumina#110)

* Update RELEASES.md (Illumina#87)

* Updated RELASES.md and normalization.md (Illumina#109)

* Merge doc changes from dev (Illumina#112)

* Update RELEASES.md (Illumina#87)

* Updated RELASES.md and normalization.md (Illumina#109)

* Update more docs (Illumina#111)

* Update happy.md

* Cleaned up normalisation.md

* Update happy.md

* Created a new section for working with genome VCFs
  * Added description of --filter-nonref
  * Updated description of --convert-gvcf-xxxx options
  * Added note toward beginning of document calling attention to genome VCF section
* Fixed broken links in TOC
* Fixed inconsistent case in headings
nicholas-owen pushed a commit to nicholas-owen/hap.py that referenced this pull request Mar 17, 2022
* fix bold GFM rendering

Without a space between the *** and the : , Github won't render *** as bold.

* typos?

* Clarify that INFO.VQSLOD is required for --roc

* Update read me with GCC/G++ 4.9.2+ requirement

See Illumina#66

* Remove regex dependency + fix test error with gcc 7.3

* Fix Docker build

* Update rtg-tools to work with new Java

* Updated RELASES.md and normalization.md (Illumina#109)

* Documentation updates for 0.3.12 release (Illumina#110)

* Update RELEASES.md (Illumina#87)

* Updated RELASES.md and normalization.md (Illumina#109)

* Update more docs (Illumina#111)

* Update happy.md

* Cleaned up normalisation.md

* Update happy.md

* Created a new section for working with genome VCFs
  * Added description of --filter-nonref
  * Updated description of --convert-gvcf-xxxx options
  * Added note toward beginning of document calling attention to genome VCF section
* Fixed broken links in TOC
* Fixed inconsistent case in headings

* Merge doc changes from dev (Illumina#112)

* Update RELEASES.md (Illumina#87)

* Updated RELASES.md and normalization.md (Illumina#109)

* Update more docs (Illumina#111)

* Update happy.md

* Cleaned up normalisation.md

* Update happy.md

* Created a new section for working with genome VCFs
  * Added description of --filter-nonref
  * Updated description of --convert-gvcf-xxxx options
  * Added note toward beginning of document calling attention to genome VCF section
* Fixed broken links in TOC
* Fixed inconsistent case in headings

* Remove tag (Illumina#113)

* Documentation updates for 0.3.12 release (Illumina#110)

* Update RELEASES.md (Illumina#87)

* Updated RELASES.md and normalization.md (Illumina#109)

* Merge doc changes from dev (Illumina#112)

* Update RELEASES.md (Illumina#87)

* Updated RELASES.md and normalization.md (Illumina#109)

* Update more docs (Illumina#111)

* Update happy.md

* Cleaned up normalisation.md

* Update happy.md

* Created a new section for working with genome VCFs
  * Added description of --filter-nonref
  * Updated description of --convert-gvcf-xxxx options
  * Added note toward beginning of document calling attention to genome VCF section
* Fixed broken links in TOC
* Fixed inconsistent case in headings

* Resolved merge conflict

* Remove seemingly-unused ENV command

* Restore ENV DEBIAN_FRONTEND=noninteractive
nicholas-owen pushed a commit to nicholas-owen/hap.py that referenced this pull request Mar 17, 2022
* Updated RELASES.md and normalization.md (Illumina#109)

* Update more docs (Illumina#111)

* Update happy.md

* Cleaned up normalisation.md

* Update happy.md

* Created a new section for working with genome VCFs
  * Added description of --filter-nonref
  * Updated description of --convert-gvcf-xxxx options
  * Added note toward beginning of document calling attention to genome VCF section
* Fixed broken links in TOC
* Fixed inconsistent case in headings

* Remove tag (Illumina#113)

* Documentation updates for 0.3.12 release (Illumina#110)

* Update RELEASES.md (Illumina#87)

* Updated RELASES.md and normalization.md (Illumina#109)

* Merge doc changes from dev (Illumina#112)

* Update RELEASES.md (Illumina#87)

* Updated RELASES.md and normalization.md (Illumina#109)

* Update more docs (Illumina#111)

* Update happy.md

* Cleaned up normalisation.md

* Update happy.md

* Created a new section for working with genome VCFs
  * Added description of --filter-nonref
  * Updated description of --convert-gvcf-xxxx options
  * Added note toward beginning of document calling attention to genome VCF section
* Fixed broken links in TOC
* Fixed inconsistent case in headings

* Clean merge (Illumina#115)

* fix bold GFM rendering

Without a space between the *** and the : , Github won't render *** as bold.

* typos?

* Clarify that INFO.VQSLOD is required for --roc

* Update read me with GCC/G++ 4.9.2+ requirement

See Illumina#66

* Remove regex dependency + fix test error with gcc 7.3

* Fix Docker build

* Update rtg-tools to work with new Java

* Documentation updates for 0.3.12 release (Illumina#110)

* Update RELEASES.md (Illumina#87)

* Updated RELASES.md and normalization.md (Illumina#109)

* Merge doc changes from dev (Illumina#112)

* Update RELEASES.md (Illumina#87)

* Updated RELASES.md and normalization.md (Illumina#109)

* Update more docs (Illumina#111)

* Update happy.md

* Cleaned up normalisation.md

* Update happy.md

* Created a new section for working with genome VCFs
  * Added description of --filter-nonref
  * Updated description of --convert-gvcf-xxxx options
  * Added note toward beginning of document calling attention to genome VCF section
* Fixed broken links in TOC
* Fixed inconsistent case in headings

* Resolved merge conflict

* Remove seemingly-unused ENV command

* Restore ENV DEBIAN_FRONTEND=noninteractive
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

Successfully merging this pull request may close these issues.

AttributeError when running pre.py directly
4 participants