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

why target_feat is with shape (N,22), not same as alphafold2 paper (N,21) #460

Open
Paulie-ai opened this issue Jun 13, 2024 · 0 comments
Open

Comments

@Paulie-ai
Copy link

In data_transforms.py, the function make_msa_feat make protein's target_feat, and add has_beak is cat to target_feat, why?
if i only want get the (N,21), can i get ride of first columns datas, thanks.

def make_msa_feat(protein):
"""Create and concatenate MSA features."""
# Whether there is a domain break. Always zero for chains, but keeping for
# compatibility with domain datasets.
has_break = torch.clip(
protein["between_segment_residues"].to(torch.float32), 0, 1
)
aatype_1hot = make_one_hot(protein["aatype"], 21)

target_feat = [
    torch.unsqueeze(has_break, dim=-1),
    aatype_1hot,  # Everyone gets the original sequence.
]
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

No branches or pull requests

1 participant