Skip to content

add skip argument to initializeRecombinationRateFromFile #662

Description

@petrelharp

Currently, initializeRecombinationRateFromFile has

No column header line should be present; the file should start immediately with numerical data.

However, given the many ways to go wrong with intervals and genetic map data (is the "position" column a starting or ending position, for instance?), it's pretty important to have a header in the file. If there was a "skip" argument (that means "skip this many lines before looking for numerical data"), then we could allow headers.

I also see that if there's a row in the file for which the position is the same as the lastPosition argument, then we get an error ("requires ends to be in strictly ascending order"). It's also good practice for files to contain the endpoint, so maybe there can be an exception: if the last position is the same as lastPosition, then the error doesn't occur?

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