@@ -58,11 +58,11 @@ Parameters for ```getIMGT()```
5858
5959Here, we will use the ``` getIMGT() ``` function to get the amino acid sequences for the TRBV region to get all the sequences by V gene allele.
6060
61- ``` {r, eval=knitr::is_html_output() }
61+ ``` {r}
6262# Function to check IMGT website availability
6363is_imgt_available <- function() {
6464 tryCatch({
65- r <- httr::HEAD("https://www.imgt.org", timeout(5))
65+ r <- httr::HEAD("https://www.imgt.org", httr:: timeout(5))
6666 httr::status_code(r) == 200
6767 }, error = function(e) {
6868 FALSE
@@ -121,7 +121,7 @@ Parameters for ```inferCDR```
121121* ** sequence.type** Type of sequence - "aa" for amino acid or "nt" for nucleotide
122122* ** sequences** The specific regions of the CDR loop to get from the data.
123123
124- ``` {r }
124+ ``` {r}
125125if (is_imgt_available()) {
126126 Adaptive_example <- inferCDR(Adaptive_example,
127127 chain = "TRB",
@@ -155,7 +155,7 @@ Parameters for ```generateSequences()```
155155``` {r }
156156sequences <- generateSequences(prefix.motif = "CAS",
157157 suffix.motif = "YF",
158- number.of.sequences = 1000 ,
158+ number.of.sequences = 200 ,
159159 min.length = 8,
160160 max.length = 16)
161161sequences <- unique(sequences)
@@ -165,7 +165,7 @@ head(sequences)
165165If we want to generate nucleotide sequences instead of amino acids, we must to change the ** sequence.dictionary** .
166166
167167``` {r }
168- nucleotide.sequences <- generateSequences(number.of.sequences = 1000 ,
168+ nucleotide.sequences <- generateSequences(number.of.sequences = 200 ,
169169 min.length = 8,
170170 max.length = 16,
171171 sequence.dictionary = c("A", "C", "T", "G"))
@@ -575,15 +575,15 @@ First, we'll simulate two distinct classes of sequences using ```generateSequenc
575575# Step 1a: Generate two distinct classes of sequences
576576class1.sequences <- generateSequences(prefix.motif = "CAS",
577577 min.length = 3,
578- number.of.sequences = 500 )
578+ number.of.sequences = 250 )
579579
580580class2.sequences <- generateSequences(prefix.motif = "CSG",
581581 min.length = 3,
582- number.of.sequences = 500 )
582+ number.of.sequences = 250 )
583583
584584# Combine sequences and create labels
585585all.sequences <- c(class1.sequences, class2.sequences)
586- labels <- as.factor(c(rep("Class1", 500 ), rep("Class2", 500 )))
586+ labels <- as.factor(c(rep("Class1", 250 ), rep("Class2", 250 )))
587587
588588# Step 1b: Use propertyEncoder to create a feature matrix from Atchley factors
589589feature.matrix <- propertyEncoder(all.sequences,
0 commit comments