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

feat(sscheck): Sample_Name Check #890

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

williamputraintan
Copy link
Member

Resolve #883

@williamputraintan williamputraintan self-assigned this Mar 6, 2025
@@ -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"
Copy link
Member Author

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})

@@ -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)
Copy link
Member

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.

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

Successfully merging this pull request may close these issues.

feat(sscheck): Better Error Response
2 participants