Skip to content

Commit ba34d95

Browse files
committed
v3.2
1 parent 2afdaa2 commit ba34d95

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

JGA_metadata.xlsx

-28 Bytes
Binary file not shown.

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## 日本語
44

55
* 生命情報・DDBJ センター
6-
* 公開日: 2024-10-23
7-
* version: v3.1
6+
* 公開日: 2025-01-16
7+
* version: v3.2
88

99
[Bioinformation and DDBJ Center](https://www.ddbj.nig.ac.jp/index-e.html) のデータベースに登録するためのメタデータ XML を生成、チェックするツール。
1010
* [DDBJ Sequence Read Archive (DRA)](https://www.ddbj.nig.ac.jp/dra/submission.html): Submission、Experiment、Run と Analysis (任意) XML を生成・チェックするためのエクセルとスクリプト
@@ -13,6 +13,7 @@
1313

1414
## 履歴
1515

16+
* 2025-01-16: v3.2 TEL 削除
1617
* 2024-10-23: v3.1 Library Source SINGLE CELL
1718
* 2024-07-05: v3.0 シート名に DB prefix を付加
1819
* 2024-07-04: v2.9.1 Sample 属性を全て ATTRIBUTE に格納
@@ -328,8 +329,8 @@ TBD
328329
## English
329330

330331
* Bioinformation and DDBJ Center
331-
* release: 2024-10-23
332-
* version: v3.1
332+
* release: 2025-01-16
333+
* version: v3.2
333334

334335
These files are Excel, container images and tools for generation and validation of metadata XML files for databases of [Bioinformation and DDBJ Center](https://www.ddbj.nig.ac.jp/index-e.html).
335336
* [DDBJ Sequence Read Archive (DRA)](https://www.ddbj.nig.ac.jp/dra/submission-e.html): generate and check Submission, Experiment and Run XML files.
@@ -338,6 +339,7 @@ These files are Excel, container images and tools for generation and validation
338339

339340
## History
340341

342+
* 2025-01-16: v3.2 TEL removed
341343
* 2024-10-23: v3.1 Library Source SINGLE CELL
342344
* 2024-07-05: v3.0 DB prefix added to sheet name
343345
* 2024-07-04: v2.9.1 Store all sample attributes in SAMPLE_ATTRIBUTE
-80 Bytes
Binary file not shown.

exe/excel2xml_jga

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ require 'optparse'
1111
#
1212

1313
# Update history
14+
# 2025-01-16 phone removed
1415
# 2024-07-05 DB prefix added to sheet name
1516
# 2024-07-04 Record all sample attributes in the sample attribute elements
1617
# 2024-05-17 Change the way of describing Sample attributes
@@ -151,17 +152,17 @@ for num, line in submission_a
151152
j = num
152153
contact_a = Array.new
153154
pi_a = Array.new
154-
while submission_a[j][1][0] && /\d/ =~ submission_a[j][1][0].to_s && submission_a[j][1][3] # if there is a number and mail address
155+
while submission_a[j][1][0] && /\d/ =~ submission_a[j][1][0].to_s && submission_a[j][1][3] # if there is a mail address
155156

156157
# PI
157158
if /Principal Investigator/ =~ submission_a[j][1][0].to_s
158159
# center name is fixed to Individual
159160
submission_h.store("center_name", "Individual")
160-
submission_h.store("organization", submission_a[j][1][5])
161-
pi_a.push(submission_a[j][1][1..5])
161+
submission_h.store("organization", submission_a[j][1][4])
162+
pi_a.push(submission_a[j][1][1..4])
162163
end
163164

164-
contact_a.push(submission_a[j][1][1..5])
165+
contact_a.push(submission_a[j][1][1..4])
165166
j += 1
166167

167168
end

0 commit comments

Comments
 (0)