EC2 Default User commited on
Commit
58411c1
1 Parent(s): 2059e42

Add train test data

Browse files
Files changed (5) hide show
  1. .gitattributes +2 -0
  2. download_oas_data.py +23 -0
  3. oas_uri_list.txt +63 -0
  4. test.parquet +3 -0
  5. train.parquet +3 -0
.gitattributes CHANGED
@@ -54,3 +54,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
56
  data.parquet filter=lfs diff=lfs merge=lfs -text
 
 
 
54
  *.jpeg filter=lfs diff=lfs merge=lfs -text
55
  *.webp filter=lfs diff=lfs merge=lfs -text
56
  data.parquet filter=lfs diff=lfs merge=lfs -text
57
+ test.parquet filter=lfs diff=lfs merge=lfs -text
58
+ train.parquet filter=lfs diff=lfs merge=lfs -text
download_oas_data.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import pandas as pd
2
+
3
+ # Download data from OAS
4
+ list_of_df = []
5
+ with open("scripts/oas_uri_list.txt", "r") as f:
6
+ for url in f:
7
+ print(url)
8
+ df = pd.read_csv(url, skiprows=1, compression="gzip")
9
+ df = df[df["complete_vdj_heavy"] == "T"]
10
+ df = df[df["complete_vdj_light"] == "T"]
11
+ df = df[["sequence_alignment_aa_heavy", "sequence_alignment_aa_light"]]
12
+ df["sequence_alignment_aa_joint"] = (
13
+ df["sequence_alignment_aa_heavy"]
14
+ + "-" * 25
15
+ + df["sequence_alignment_aa_light"]
16
+ )
17
+ list_of_df.append(df)
18
+ df = pd.concat(list_of_df, ignore_index=True)
19
+ train = df.sample(frac=0.8)
20
+ test = df.drop(train.index)
21
+
22
+ train.to_parquet("data/train.parquet")
23
+ test.to_parquet("data/test.parquet")
oas_uri_list.txt ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279049_1_Paired_All.csv.gz
2
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279050_1_Paired_All.csv.gz
3
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279051_1_Paired_All.csv.gz
4
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279052_1_Paired_All.csv.gz
5
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279053_1_Paired_All.csv.gz
6
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279054_1_Paired_All.csv.gz
7
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279055_1_Paired_All.csv.gz
8
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279057_1_Paired_All.csv.gz
9
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279058_1_Paired_All.csv.gz
10
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279059_1_Paired_All.csv.gz
11
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279060_1_Paired_All.csv.gz
12
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279061_1_Paired_All.csv.gz
13
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279062_1_Paired_All.csv.gz
14
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1279063_1_Paired_All.csv.gz
15
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287176_1_Paired_All.csv.gz
16
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287177_1_Paired_All.csv.gz
17
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287178_1_Paired_All.csv.gz
18
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287179_1_Paired_All.csv.gz
19
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287180_1_Paired_All.csv.gz
20
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287181_1_Paired_All.csv.gz
21
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287182_1_Paired_All.csv.gz
22
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287183_1_Paired_All.csv.gz
23
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287184_1_Paired_All.csv.gz
24
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287185_1_Paired_All.csv.gz
25
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287186_1_Paired_All.csv.gz
26
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287187_1_Paired_All.csv.gz
27
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287188_1_Paired_All.csv.gz
28
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287189_1_Paired_All.csv.gz
29
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287190_1_Paired_All.csv.gz
30
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287191_1_Paired_All.csv.gz
31
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287192_1_Paired_All.csv.gz
32
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287193_1_Paired_All.csv.gz
33
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287194_1_Paired_All.csv.gz
34
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287195_1_Paired_All.csv.gz
35
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287196_1_Paired_All.csv.gz
36
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287197_1_Paired_All.csv.gz
37
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287198_1_Paired_All.csv.gz
38
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287199_1_Paired_All.csv.gz
39
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287200_1_Paired_All.csv.gz
40
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287201_1_Paired_All.csv.gz
41
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287202_1_Paired_All.csv.gz
42
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287203_1_Paired_All.csv.gz
43
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287204_1_Paired_All.csv.gz
44
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287205_1_Paired_All.csv.gz
45
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287206_1_Paired_All.csv.gz
46
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Jaffe_2022/csv/1287207_1_Paired_All.csv.gz
47
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875348_1_Paired_All.csv.gz
48
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875349_1_Paired_All.csv.gz
49
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875350_1_Paired_All.csv.gz
50
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875351_1_Paired_All.csv.gz
51
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875352_1_Paired_All.csv.gz
52
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875353_1_Paired_All.csv.gz
53
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875354_1_Paired_All.csv.gz
54
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875355_1_Paired_All.csv.gz
55
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875356_1_Paired_All.csv.gz
56
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875357_1_Paired_All.csv.gz
57
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875358_1_Paired_All.csv.gz
58
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875359_1_Paired_All.csv.gz
59
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875360_1_Paired_All.csv.gz
60
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875361_1_Paired_All.csv.gz
61
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Mor_2021/csv/SRR12875362_1_Paired_All.csv.gz
62
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Woodruff_2020/csv/SRR12113363_1_Paired_All.csv.gz
63
+ https://opig.stats.ox.ac.uk/webapps/ngsdb/paired/Woodruff_2020/csv/SRR12113364_1_Paired_All.csv.gz
test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ded8ea22cff609bdb3c454e48a2da50e9b1ae77718b576efa437e24f75abcc04
3
+ size 19670975
train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d347c7f68820847fa6bfa590baf4c5b22a5b1686634caea00d7407b6796b01b
3
+ size 80668749