-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompute_repitope_features_CoV2.R
30 lines (26 loc) · 1.13 KB
/
compute_repitope_features_CoV2.R
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
# Title : TODO
# Objective : TODO
# Created by: paulbuckley
options(java.parameters="-Xmx60G") ## allow JAVA to use large memory space
library(tidyverse)
library(data.table)
library(Repitope)
# Create fragment library using default settings
fragLibDT <- CPP_FragmentLibrary(TCRSet_Public, fragLenSet=3:11, maxFragDepth=100000, seedSet=1:5)
fst::write_fst(fragLibDT, "FragLibrary_2021.fst", compress=0)
# Read in the epitope dataset
FullDataset = Epitope_Import(OtherFileNames = list("CoV2_TestData_ForRepitope.csv"))
# Compute the features of our test peptides using default settings
# # Features [MHC-I]
featureDFList_MHCI_COV2_EPS <- Features(
peptideSet=unique(c(FullDataset$Peptide)),
fragLib="FragLibrary_2021.fst",
aaIndexIDSet="all",
fragLenSet=3:8,
fragDepth=10000,
fragLibType="Weighted",
seedSet=1:5, ## must be the same random seeds used for preparing the fragment library
coreN=parallel::detectCores()-2, ## parallelization
tmpDir="REPITOPE_OTB/temp_v5" ## where intermediate files are stored
)
saveFeatureDFList(featureDFList_MHCI_COV2_EPS, "FeatureDF_COV2_EPs")