-
Notifications
You must be signed in to change notification settings - Fork 753
allow integer sample names #1421
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
base: dev
Are you sure you want to change the base?
Conversation
Validation of file failed: -> Entry 1: Error for field 'sample' (298098): Sample name must be provided and cannot contain spaces
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 3.0.2. For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation. |
fixes #1419 |
@idot can you confirm that you've tested the workflow with this change? Also, please update the CHANGELOG. |
I have updated the changelog. There was a discussion on slack and the developers wanted a more comprehensive solution however in 3.18.0 the error is still there. I have tested also 3.18 with this change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind that R does not allow purely numeric column names. If you try assigning one, it will be automatically prepended with X:
> example <- data.frame("123345"=LETTERS)
> head(example)
X123345
1 A
2 B
3 C
4 D
5 E
6 F
So you will anyway end up with non-numeric sample names in your quantification and I would want to perform a very careful review of all R scripts, whether some data merging steps fail, e.g. the scaling/normalization just defaults to 1 for each sample etc.
I fear there might be more subtle issues that do not show instantly by a crashing pipeline run.
I did at some point go through and put @idot said that they had test this, so fingers crossed that was effective. |
Yes, in the R part the sample names get an X prepended |
OK, then we need to do some work to address that before this is merged. |
int was not allowed as sample name anymore (since 3.16.0)
Validation of file failed:
-> Entry 1: Error for field 'sample' (298098): Sample name must be provided and cannot contain spaces
PR checklist
[*] This comment contains a description of changes (with reason).
CHANGELOG.md
is updated.