hiyata commited on
Commit
93d6a57
·
verified ·
1 Parent(s): bc5d34b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ class VirusClassifier(nn.Module):
25
  def forward(self, x):
26
  return self.network(x)
27
 
28
- def sequence_to_kmer_vector(sequence: str, k: int = 4) -> np.ndarray:
29
  kmers = [''.join(p) for p in product("ACGT", repeat=k)]
30
  kmer_dict = {kmer: 0 for kmer in kmers}
31
  for i in range(len(sequence) - k + 1):
 
25
  def forward(self, x):
26
  return self.network(x)
27
 
28
+ def sequence_to_kmer_vector(sequence: str, k: int = 6) -> np.ndarray:
29
  kmers = [''.join(p) for p in product("ACGT", repeat=k)]
30
  kmer_dict = {kmer: 0 for kmer in kmers}
31
  for i in range(len(sequence) - k + 1):