-
Notifications
You must be signed in to change notification settings - Fork 0
/
examples.ts
67 lines (59 loc) · 2.06 KB
/
examples.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
import {
getModelPricing,
PromoterActivityParams,
MeanEmbeddingParams,
MaskedInferenceParams,
DiffusionGenerateParams,
Transforms,
ModelOptions,
} from "./modelPricing";
// Mean Embedding ----------------------------------------------------------------
const mean_embedding_params: MeanEmbeddingParams = {
sequence: "ATGGTGCTGCCACAGTAAATGTAGCCACTATGCCTATCTCCATTCTCAAGATGTGT",
model: ModelOptions.ginkgo_maskedlm_3utr_v1,
transform: Transforms.EMBEDDING,
};
console.log({
scenario: "mean_embedding",
price: getModelPricing(mean_embedding_params),
});
// Masked Inference --------------------------------------------------------------
const masked_inference_params: MaskedInferenceParams = {
sequence:
"ATGG<MASK>TGCTGCCACAGTAAATGTAGCCACTATGCC<MASK>TATCTCCATTCTCAAGATGTGT",
model: ModelOptions.ginkgo_maskedlm_3utr_v1,
transform: Transforms.FILL_MASK,
};
console.log({
scenario: "masked_inference",
price: getModelPricing(masked_inference_params),
});
// Promoter Activity ------------------------------------------------------------
const promoter_activity_params: PromoterActivityParams = {
promoter_sequence:
"GTCCCACTGATGAACTGTGCTGCCACAGTAAATGTAGCCACTATGCCTATCTCCATTCTCAAGATGTGTCACTTCCTGTT",
orf_sequence:
"tgccagccatctgttgtttgcccctcccccgtgccttccttgaccctggaaggtgccactcccactgtcctttcctaat",
tissue_of_interest: {
heart: ["CNhs10608+", "CNhs10612+"],
liver: ["CNhs10608+", "CNhs10612+"],
},
model: ModelOptions.borzoi_human_fold0,
transform: Transforms.PROMOTER_ACTIVITY,
};
console.log({
scenario: "promoter_activity",
price: getModelPricing(promoter_activity_params),
});
// Diffusion Generation ----------------------------------------------------------
const diffusion_generation_params: DiffusionGenerateParams = {
sequence:
"MKLLM<MASK><MASK><MASK><MASK>MKL<MASK><MASK><MASK><MASK><MASK><MASK><MASK>MKL",
model: ModelOptions.abdiffusion,
transform: Transforms.DIFFUSION_GENERATE,
unmaskings_per_step: 3,
};
console.log({
scenario: "diffusion_generation",
price: getModelPricing(diffusion_generation_params),
});