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

Would be good to add an error message if the peakfile is not bed file #232

Open
pocession opened this issue Feb 24, 2024 · 0 comments
Open

Comments

@pocession
Copy link

pocession commented Feb 24, 2024

If the input file is a bed format, then column names should be removed. But if the user forgets to remove the column names, then the following error is generated:

Error in peak.df[, 2] + 1 : non-numeric argument to binary operator

It would be easier to understand if some error message is put in isBedFile() to remind user not include column name when the input file is bed format.

e.g.

if (!is.numeric(df[1,2])) {
message("It seems you include the column name in the bed file. Could you remove it?")
}
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