EC2 Default User
commited on
Commit
•
0d003d6
1
Parent(s):
387dcad
Add cdr sequences back in
Browse files- oas-paired-sequence-data.py +25 -13
- src/human.zip +3 -0
- src/mouse_BALB_c.zip +3 -0
- src/mouse_C57BL_6.zip +3 -0
- src/{download_and_process_data.py → oas-data-cleaning.py} +11 -10
- src/rat_SD.zip +3 -0
oas-paired-sequence-data.py
CHANGED
@@ -36,7 +36,13 @@ _FEATURES = datasets.Features(
|
|
36 |
{
|
37 |
"pair_id": datasets.Value("string"),
|
38 |
"sequence_alignment_aa_heavy": datasets.Value("string"),
|
|
|
|
|
|
|
39 |
"sequence_alignment_aa_light": datasets.Value("string"),
|
|
|
|
|
|
|
40 |
"cdr1_aa_heavy_start": datasets.Value("int16"),
|
41 |
"cdr1_aa_heavy_end": datasets.Value("int16"),
|
42 |
"cdr1_aa_light_start": datasets.Value("int16"),
|
@@ -99,18 +105,24 @@ class OasPairedSequenceData(datasets.GeneratorBasedBuilder):
|
|
99 |
yield key, {
|
100 |
"pair_id": row[0],
|
101 |
"sequence_alignment_aa_heavy": row[1],
|
102 |
-
"
|
103 |
-
"
|
104 |
-
"
|
105 |
-
"
|
106 |
-
"
|
107 |
-
"
|
108 |
-
"
|
109 |
-
"
|
110 |
-
"
|
111 |
-
"
|
112 |
-
"
|
113 |
-
"
|
114 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
}
|
116 |
|
|
|
36 |
{
|
37 |
"pair_id": datasets.Value("string"),
|
38 |
"sequence_alignment_aa_heavy": datasets.Value("string"),
|
39 |
+
"cdr1_aa_heavy": datasets.Value("string"),
|
40 |
+
"cdr2_aa_heavy": datasets.Value("string"),
|
41 |
+
"cdr3_aa_heavy": datasets.Value("string"),
|
42 |
"sequence_alignment_aa_light": datasets.Value("string"),
|
43 |
+
"cdr1_aa_light": datasets.Value("string"),
|
44 |
+
"cdr2_aa_light": datasets.Value("string"),
|
45 |
+
"cdr3_aa_light": datasets.Value("string"),
|
46 |
"cdr1_aa_heavy_start": datasets.Value("int16"),
|
47 |
"cdr1_aa_heavy_end": datasets.Value("int16"),
|
48 |
"cdr1_aa_light_start": datasets.Value("int16"),
|
|
|
105 |
yield key, {
|
106 |
"pair_id": row[0],
|
107 |
"sequence_alignment_aa_heavy": row[1],
|
108 |
+
"cdr1_aa_heavy": row[2],
|
109 |
+
"cdr2_aa_heavy": row[3],
|
110 |
+
"cdr3_aa_heavy": row[4],
|
111 |
+
"sequence_alignment_aa_light": row[5],
|
112 |
+
"cdr1_aa_light": row[6],
|
113 |
+
"cdr2_aa_light": row[7],
|
114 |
+
"cdr3_aa_light": row[8],
|
115 |
+
"cdr1_aa_heavy_start": row[9],
|
116 |
+
"cdr1_aa_heavy_end": row[10],
|
117 |
+
"cdr1_aa_light_start": row[11],
|
118 |
+
"cdr1_aa_light_end": row[12],
|
119 |
+
"cdr2_aa_heavy_start": row[13],
|
120 |
+
"cdr2_aa_heavy_end": row[14],
|
121 |
+
"cdr2_aa_light_start": row[15],
|
122 |
+
"cdr2_aa_light_end": row[16],
|
123 |
+
"cdr3_aa_heavy_start": row[17],
|
124 |
+
"cdr3_aa_heavy_end": row[18],
|
125 |
+
"cdr3_aa_light_start": row[19],
|
126 |
+
"cdr3_aa_light_end": row[20],
|
127 |
}
|
128 |
|
src/human.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f852475e12a5c09900863036f2f1bac0c7db055bd574baa3ee3e946742574bc8
|
3 |
+
size 99065044
|
src/mouse_BALB_c.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c0581e9d410816d88b03ecbc647ecf60fa4c4f508dce5fc6dc7e57588cba411f
|
3 |
+
size 758218
|
src/mouse_C57BL_6.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bdffac439366acf3043668b2242cfe2e533dd37e2a6fac78fbaea6eb1a45f0ca
|
3 |
+
size 379714
|
src/{download_and_process_data.py → oas-data-cleaning.py}
RENAMED
@@ -22,6 +22,7 @@ for species in species_list:
|
|
22 |
header=1,
|
23 |
compression="gzip",
|
24 |
on_bad_lines="warn",
|
|
|
25 |
)
|
26 |
run_data = run_data[
|
27 |
[
|
@@ -50,16 +51,16 @@ for species in species_list:
|
|
50 |
|
51 |
run_data = run_data.apply(calc_cdr_coordinates, axis=1)
|
52 |
|
53 |
-
run_data = run_data.drop(
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
)
|
63 |
|
64 |
run_data.insert(
|
65 |
0, "pair_id", run_id + "_" + run_data.reset_index().index.map(str)
|
|
|
22 |
header=1,
|
23 |
compression="gzip",
|
24 |
on_bad_lines="warn",
|
25 |
+
low_memory=False
|
26 |
)
|
27 |
run_data = run_data[
|
28 |
[
|
|
|
51 |
|
52 |
run_data = run_data.apply(calc_cdr_coordinates, axis=1)
|
53 |
|
54 |
+
# run_data = run_data.drop(
|
55 |
+
# columns=[
|
56 |
+
# "cdr1_aa_heavy",
|
57 |
+
# "cdr2_aa_heavy",
|
58 |
+
# "cdr3_aa_heavy",
|
59 |
+
# "cdr1_aa_light",
|
60 |
+
# "cdr2_aa_light",
|
61 |
+
# "cdr3_aa_light",
|
62 |
+
# ]
|
63 |
+
# )
|
64 |
|
65 |
run_data.insert(
|
66 |
0, "pair_id", run_id + "_" + run_data.reset_index().index.map(str)
|
src/rat_SD.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:67c37b00298bc67790e32d013891cd36d3e0404aa2d9d4d355395779807a709e
|
3 |
+
size 2694929
|