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

-T option not working: "unknown file type" #117

Closed
ElisabetThomsen opened this issue Apr 24, 2020 · 1 comment
Closed

-T option not working: "unknown file type" #117

ElisabetThomsen opened this issue Apr 24, 2020 · 1 comment

Comments

@ElisabetThomsen
Copy link

ElisabetThomsen commented Apr 24, 2020

Dear developers,

I am running hap.py on exome data. When I run hap.py with the -T option it gives error:

Exception: Command line bcftools view --threads 96 -O v /home/resources/GiaB/HG001_GRCh38_GIAB_highconf_CG-IllFB-IllGATKHC-Ion-10X-SOLID_CHROM1-X_v.3.3.2_highconf_PGandRTGphasetransfer.vcf.gz | bcftools view -O v -f PASS,. -T /home/resources/sureselect_human_all_exon_v6_utr_grch38/S07604624_Padded.bed | bcftools view -o /tmp/truth.pppzG_4f.vcf.gz -O z got return code 255.STDOUT: STDERR: [E::bcf_sr_regions_init] Could not parse the file /home/resources/sureselect_human_all_exon_v6_utr_grch38/S07604624_Padded.bed, using the columns 1,2[,-1]Failed to read the targets: /home/resources/sureselect_human_all_exon_v6_utr_grch38/S07604624_Padded.bedFailed to open -: unknown file type

When I run hap.py without the -T option it works with no error.

I am using hap.py 0.3.12 ( https://anaconda.org/bioconda/hap.py ) in a conda environment.

This is the command I used:

time hap.py /home/resources/GiaB/HG001_GRCh38_GIAB_highconf_CG-IllFB-IllGATKHC-Ion-10X-SOLID_CHROM1-X_v.3.3.2_highconf_PGandRTGphasetransfer.vcf.gz /home/run_exolink/phase/test_outs/phased_vcf/phased.vcf.gz -f /home//resources/GiaB/HG001_GRCh38_GIAB_highconf_CG-IllFB-IllGATKHC-Ion-10X-SOLID_CHROM1-X_v.3.3.2_highconf_nosomaticdel_noCENorHET7.bed -o test_happy_out/NA12878test -r /home/resources/gatk_bundle/Homo_sapiens_assembly38/Homo_sapiens_assembly38.fasta -T /home/resources/sureselect_human_all_exon_v6_utr_grch38/S07604624_Padded.bed

Kind Regards
Elisabet

@ElisabetThomsen
Copy link
Author

Hi,

I fixed this by modifying the BED file in this way:

awk 'BEGIN{OFS="\t"}{ if(NR <= 2) { print "#"$0 } else { print $1,$2,$3,$4,0,"." } }' S07604624_Padded.bed > S07604624_Padded_modified.bed

Commenting out the header lines and adding field 5 (with 0) and 6 (with ".").

nicholas-owen pushed a commit to nicholas-owen/hap.py that referenced this issue 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

No branches or pull requests

1 participant