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

Check sampleset ID doesn't include and underscore (_) #272

Closed
smlmbrt opened this issue Apr 2, 2024 · 4 comments · Fixed by #274 or #322
Closed

Check sampleset ID doesn't include and underscore (_) #272

smlmbrt opened this issue Apr 2, 2024 · 4 comments · Fixed by #274 or #322
Assignees
Labels
bug Something isn't working
Milestone

Comments

@smlmbrt
Copy link
Member

smlmbrt commented Apr 2, 2024

private def checkReservedName(samplesheet) {
def samplesets = samplesheet.collect { row -> row.sampleset }
def n_bad_name = samplesets.count { it == "reference" }
if (n_bad_name != 0) {
Nextflow.error("Reserved sampleset name detected. Please don't call your sampleset 'reference'")
}
}

This module needs to check for reserved names as was done in the old sample sheet checking (no 'reference' or '_'): https://github.com/PGScatalog/pgscatalog_utils/blob/6da7eb0e157ba4e73f941233ee8d8ae4fb5e3926/pgscatalog_utils/samplesheet/check.py#L306-L322

@smlmbrt smlmbrt added the bug Something isn't working label Apr 2, 2024
@smlmbrt smlmbrt changed the title Check ID doesn't include and underscore (_) Check sampleset ID doesn't include and underscore (_) Apr 2, 2024
@smlmbrt
Copy link
Member Author

smlmbrt commented Apr 9, 2024

Fixed in 954330a

@smlmbrt smlmbrt linked a pull request Apr 9, 2024 that will close this issue
@nebfield nebfield added this to the v2.0.0-alpha.6 milestone Apr 16, 2024
@Carldeboer
Copy link

I just encountered this bug and it is super confusing to have an error message "Reserved sampleset name detected. Please don't call your sampleset 'reference'" when the issue is actually that the sampleset name contains an underscore character. Took me hours of trial and error to determine that this was the cause. @nebfield

@smlmbrt
Copy link
Member Author

smlmbrt commented Jun 19, 2024

@Carldeboer, we'll fix it to make it more specific. That's an omission on our part.

@smlmbrt smlmbrt reopened this Jun 19, 2024
@Carldeboer
Copy link

thanks!

@smlmbrt smlmbrt linked a pull request Jun 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants