Skip to content

Reading pvar file with comments #14

@olivierlabayle

Description

@olivierlabayle

Hi,

plink2 writes comments at the top of pvar/psam files when performing various operations. At the moment, the package does:

CSV.read(pvar_filename, DataFrame; header=pvar_header_lines))

which means that Pgen(pgen_file) breaks on those. The solution is to set the pvar_header_lines but it has to be inferred by the user. I think a simpler alternative could be to do:

CSV.read(pvar_filename, DataFrame; comment="##"))

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions