-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat(sscheck): Sample_Name Check #890
base: main
Are you sure you want to change the base?
Conversation
@@ -108,6 +108,14 @@ def check_sample_name_format(self): | |||
logger.error("Sample ID {} did not have corresponding Sample_Name".format(self.sample_id)) | |||
raise SampleNameFormatError | |||
|
|||
# Check if the Sample_Name column is the library_id from the Sample_ID column ignoring the "_topup" / "_rerun" |
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.
Mainly this, where it checks if the Sample_Name (which should be the library_id) is the same Sample_ID format (which is {sampleID}_{library_ID}
)
lib/workload/stateless/stacks/sample-sheet-check/sample-sheet-check-lambda/handler.py
Outdated
Show resolved
Hide resolved
@@ -108,6 +108,14 @@ def check_sample_name_format(self): | |||
logger.error("Sample ID {} did not have corresponding Sample_Name".format(self.sample_id)) | |||
raise SampleNameFormatError | |||
|
|||
# Check if the Sample_Name column is the library_id from the Sample_ID column ignoring the "_topup" / "_rerun" | |||
clean_unique_id = SAMPLE_REGEX_OBJS["topup"].sub('', self.unique_id) |
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.
I think there's a better way to regex this, will have a closer look in the morning.
Resolve #883