Spaces:
Running
Running
Update app.py
Browse files
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 =
|
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):
|