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

Update filter on is_aa_seq_valid #407

Open
LuppovDaniil opened this issue Feb 18, 2025 · 0 comments
Open

Update filter on is_aa_seq_valid #407

LuppovDaniil opened this issue Feb 18, 2025 · 0 comments
Assignees
Labels
vdjdb-build-infrastructure VDJdb aggregation, compilation and proofreading infrastructure development

Comments

@LuppovDaniil
Copy link
Contributor

Filters should include C in the begining and F/W at the end

def is_aa_seq_valid(aa_seq: str) -> bool:
    """
    :param aa_seq: amino acid sequence to be validated
    :return: sequence valid or null
    """
    if pd.isnull(aa_seq):
        return True
    return len(aa_seq) > 3 and bool(re.match(r'^[ARNDCQEGHILKMFPSTWYV]+$', aa_seq))
@LuppovDaniil LuppovDaniil added the vdjdb-build-infrastructure VDJdb aggregation, compilation and proofreading infrastructure development label Feb 18, 2025
@LuppovDaniil LuppovDaniil self-assigned this Feb 18, 2025
LuppovDaniil pushed a commit that referenced this issue Feb 18, 2025
LuppovDaniil pushed a commit that referenced this issue Feb 18, 2025
LuppovDaniil pushed a commit that referenced this issue Feb 18, 2025
LuppovDaniil pushed a commit that referenced this issue Feb 18, 2025
LuppovDaniil added a commit that referenced this issue Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vdjdb-build-infrastructure VDJdb aggregation, compilation and proofreading infrastructure development
Projects
None yet
Development

No branches or pull requests

1 participant