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

rename variants according to changes in paper draft #10

Merged
merged 2 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ This `Sceptr` object will then have the methods: `calc_pdist_vector`, `calc_cdis
|`sceptr.variant.tiny`|smaller variant with model dimensionality 16|
|`sceptr.variant.blosum`|variant using BLOSUM62 embeddings instead of one-hot|
|`sceptr.variant.average_pooling`|variant using the average-pooling method to generate the TCR representation vector|
|`sceptr.variant.unpaired`|variant trained on the Tanno et al. dataset with randomised alpha/beta pairing|
|`sceptr.variant.olga`|variant trained using synthetic TCR sequences generated by OLGA|
|`sceptr.variant.shuffled_data`|variant trained on the Tanno et al. dataset with randomised alpha/beta pairing|
|`sceptr.variant.synthetic_data`|variant trained using synthetic TCR sequences generated by OLGA|
|`sceptr.variant.dropout_noise_only`|variant trained without residue/chain dropping during autocontrastive learning|
|`sceptr.variant.finetuned`|variant fine-tuned using supervised contrastive learning for six pMHCs with peptides GILGFVFTL, NLVPMVATV, SPRWYFYYL, TFEYVSQPFLMDLE, TTDPSFLGRY and YLQPRTFLL (from [VDJdb](https://vdjdb.cdr3.net/))|

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initargs": {}
},
"model": {
"name": "SCEPTR (unpaired)",
"name": "SCEPTR (shuffled data)",
"path_to_pretrained_state_dict": null,
"token_embedder": {
"class": "CdrSimpleEmbedder",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"initargs": {}
},
"model": {
"name": "SCEPTR (OLGA)",
"name": "SCEPTR (synthetic data)",
"path_to_pretrained_state_dict": null,
"token_embedder": {
"class": "CdrSimpleEmbedder",
Expand Down
8 changes: 4 additions & 4 deletions src/sceptr/variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ def average_pooling():
return load_variant("SCEPTR_average_pooling")


def unpaired():
return load_variant("SCEPTR_unpaired")
def shuffled_data():
return load_variant("SCEPTR_shuffled_data")


def olga():
return load_variant("SCEPTR_OLGA")
def synthetic_data():
return load_variant("SCEPTR_synthetic_data")


def dropout_noise_only():
Expand Down
4 changes: 2 additions & 2 deletions tests/test_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def dummy_data():
variant.tiny(),
variant.blosum(),
variant.average_pooling(),
variant.unpaired(),
variant.olga(),
variant.shuffled_data(),
variant.synthetic_data(),
variant.dropout_noise_only(),
variant.finetuned(),
variant.a_sceptr(),
Expand Down