Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -79,11 +79,14 @@ import tarfile
|
|
| 79 |
import os
|
| 80 |
|
| 81 |
# Example: Extracting and reading a file
|
| 82 |
-
with tarfile.open("LucaVirus-OpenVirus-Gene-Prot.tar.
|
| 83 |
-
tar.extractall(path="./
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
# Read a specific CSV from the train set
|
| 86 |
-
df = pd.read_csv("
|
| 87 |
print(df.head())
|
| 88 |
```
|
| 89 |
|
|
|
|
| 79 |
import os
|
| 80 |
|
| 81 |
# Example: Extracting and reading a file
|
| 82 |
+
with tarfile.open("LucaVirus-OpenVirus-Gene-Prot.tar.gz", "r:gz") as tar:
|
| 83 |
+
tar.extractall(path="./LucaVirus-OpenVirus-Gene-Prot/")
|
| 84 |
+
|
| 85 |
+
with tarfile.open("./LucaVirus-OpenVirus-Gene-Prot/dataset.tar.gz", "r:gz") as tar:
|
| 86 |
+
tar.extractall(path="./LucaVirus-OpenVirus-Gene-Prot/dataset/")
|
| 87 |
|
| 88 |
# Read a specific CSV from the train set
|
| 89 |
+
df = pd.read_csv("../LucaVirus-OpenVirus-Gene-Prot/dataset/v1.0/train/3072_train_1.csv")
|
| 90 |
print(df.head())
|
| 91 |
```
|
| 92 |
|