Skip to content

blank row crashes R - read.vcfR() #141

@TomJamesW

Description

@TomJamesW

Hello Brian,

I'm using SLiM 3 to generate vcf files which I am analysing in R, however occasionally read.vcfR() was causing my R session to 'encounter a fatal error' and abort. I followed your advice to determine the problem and it seems it is crashing because the vcf file has two completely blank lines in it. I appreciate this may be more of an issue with SLiM but I was hoping it might be possible for vcfR to accommodate this, or if you have any other suggestions?

I have attached two files - blankrow346.vcf contains blank lines before POS=346 and causes R to abort when read.vcfR() is run, and clean.vcf is of a similar size and style but works fine. The files are being automatically generated so unfortunately I can't manually edit them. I'm using the most recent GitHub version of vcfR.

Blanklineex.zip

Many thanks,
Tom

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions