Skip to content

readVcf does not recognize my vcf file? #82

@igrabski

Description

@igrabski

Hi, when I use the readVcf command, I encounter an error that my input file is not recognized as a VCF. The specific command I am using and error is as follows:

> vcf <- readVcf('../../Downloads/dkfz_groebner_2018_exonic(1)/snvs_ICGC_MB64_somatic.vcf','hg19')
[E::COMPAT_bcf_hdr_read] Input is not detected as bcf or vcf format
Error in scanBcfHeader(bf) : no 'header' line "#CHROM POS ID..."?

The VCF files I am trying to read are downloaded from here; the error occurs with any of the files beginning with snvs_ that I have tested.

I am wondering if these VCF files are older / in a non-standard format that readVcf does not recognize? Please let me know what the issue may be or how I can solve it. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions