add data and script
Browse files- README.md +17 -0
- test.csv +1 -1
- train.csv +1 -1
- vep_clinvar_chr1_split.py +6 -6
README.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# vep_clinvar_chr1_split
|
| 2 |
|
| 3 |
- 字段: ref, alt, label, chromosome, position
|
|
|
|
| 1 |
+
---
|
| 2 |
+
annotations_creators:
|
| 3 |
+
- found
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
license: mit
|
| 7 |
+
multilinguality: monolingual
|
| 8 |
+
pretty_name: vep_clinvar_chr1_split
|
| 9 |
+
size_categories:
|
| 10 |
+
- 10K<n<100K
|
| 11 |
+
source_datasets:
|
| 12 |
+
- original
|
| 13 |
+
task_categories:
|
| 14 |
+
- sequence-modeling
|
| 15 |
+
task_ids:
|
| 16 |
+
- sequence-classification
|
| 17 |
+
---
|
| 18 |
# vep_clinvar_chr1_split
|
| 19 |
|
| 20 |
- 字段: ref, alt, label, chromosome, position
|
test.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
1,69511,A,G,False
|
| 3 |
1,953279,T,C,False
|
| 4 |
1,973858,G,C,False
|
|
|
|
| 1 |
+
chromosome,position,ref,alt,label
|
| 2 |
1,69511,A,G,False
|
| 3 |
1,953279,T,C,False
|
| 4 |
1,973858,G,C,False
|
train.csv
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
|
| 2 |
2,45695,C,G,True
|
| 3 |
2,45696,C,G,True
|
| 4 |
2,272203,C,T,False
|
|
|
|
| 1 |
+
chromosome,position,ref,alt,label
|
| 2 |
2,45695,C,G,True
|
| 3 |
2,45696,C,G,True
|
| 4 |
2,272203,C,T,False
|
vep_clinvar_chr1_split.py
CHANGED
|
@@ -22,8 +22,8 @@ class VepClinvarChr1Split(GeneratorBasedBuilder):
|
|
| 22 |
"ref_forward_sequence": Value("string"),
|
| 23 |
"alt_forward_sequence": Value("string"),
|
| 24 |
"label": Value("int64"),
|
| 25 |
-
"
|
| 26 |
-
"
|
| 27 |
"ref": Value("string"),
|
| 28 |
"alt": Value("string"),
|
| 29 |
}
|
|
@@ -44,10 +44,10 @@ class VepClinvarChr1Split(GeneratorBasedBuilder):
|
|
| 44 |
raise ValueError("You must provide fasta_path when loading the dataset!")
|
| 45 |
fasta = Fasta(fasta_path)
|
| 46 |
for idx, row in df.iterrows():
|
| 47 |
-
chrom = str(row['
|
| 48 |
if not chrom.startswith('chr'):
|
| 49 |
chrom = 'chr' + chrom
|
| 50 |
-
pos = row['
|
| 51 |
ref = row['ref']
|
| 52 |
alt = row['alt']
|
| 53 |
half = seq_len // 2
|
|
@@ -66,8 +66,8 @@ class VepClinvarChr1Split(GeneratorBasedBuilder):
|
|
| 66 |
"ref_forward_sequence": ref_seq,
|
| 67 |
"alt_forward_sequence": alt_seq,
|
| 68 |
"label": row["label"],
|
| 69 |
-
"
|
| 70 |
-
"
|
| 71 |
"ref": row["ref"],
|
| 72 |
"alt": row["alt"]
|
| 73 |
}
|
|
|
|
| 22 |
"ref_forward_sequence": Value("string"),
|
| 23 |
"alt_forward_sequence": Value("string"),
|
| 24 |
"label": Value("int64"),
|
| 25 |
+
"chromosome": Value("string"),
|
| 26 |
+
"position": Value("int64"),
|
| 27 |
"ref": Value("string"),
|
| 28 |
"alt": Value("string"),
|
| 29 |
}
|
|
|
|
| 44 |
raise ValueError("You must provide fasta_path when loading the dataset!")
|
| 45 |
fasta = Fasta(fasta_path)
|
| 46 |
for idx, row in df.iterrows():
|
| 47 |
+
chrom = str(row['chromosome'])
|
| 48 |
if not chrom.startswith('chr'):
|
| 49 |
chrom = 'chr' + chrom
|
| 50 |
+
pos = row['position']
|
| 51 |
ref = row['ref']
|
| 52 |
alt = row['alt']
|
| 53 |
half = seq_len // 2
|
|
|
|
| 66 |
"ref_forward_sequence": ref_seq,
|
| 67 |
"alt_forward_sequence": alt_seq,
|
| 68 |
"label": row["label"],
|
| 69 |
+
"chromosome": row["chromosome"],
|
| 70 |
+
"position": row["position"],
|
| 71 |
"ref": row["ref"],
|
| 72 |
"alt": row["alt"]
|
| 73 |
}
|