Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sra
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UNLOCK
sra
Commits
ff9b6a25
Commit
ff9b6a25
authored
3 years ago
by
Jasper Koehorst
Browse files
Options
Downloads
Patches
Plain Diff
sync including new/old illumina machine
parent
e62ccb96
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
study_creator.py
+62
-66
62 additions, 66 deletions
study_creator.py
with
62 additions
and
66 deletions
study_creator.py
+
62
−
66
View file @
ff9b6a25
...
...
@@ -55,7 +55,7 @@ error = 0
machines
=
set
()
illumina_machines
=
set
([
"
Illumina HiSeq 1000
"
,
"
Illumina HiSeq 1500
"
,
"
Illumina HiSeq 2000
"
,
"
Illumina HiSeq 2500
"
,
"
Illumina HiSeq 3000
"
,
"
Illumina HiSeq 4000
"
,
"
Illumina HiSeq x ten
"
,
"
Illumina MiSeq
"
,
"
NextSeq 500
"
])
"
Illumina HiSeq 3000
"
,
"
Illumina HiSeq 4000
"
,
"
Illumina HiSeq x ten
"
,
"
Illumina MiSeq
"
,
"
NextSeq 500
"
,
"
Illumina NovaSeq 6000
"
])
def
machine_filter
(
doc
):
...
...
@@ -120,22 +120,22 @@ def paired_check(doc):
def
setup_project
(
content
):
project
=
{
"
Project
I
dentifier
"
:
"
UNLOCK
"
,
"
Project
T
itle
"
:
"
UNLOCK Microbial Potential
"
,
"
Project
D
escription
"
:
"
An open infrastructure for exploring new horizons for research on microbial communities.
"
"
Project
i
dentifier
"
:
"
UNLOCK
"
,
"
Project
t
itle
"
:
"
UNLOCK Microbial Potential
"
,
"
Project
d
escription
"
:
"
An open infrastructure for exploring new horizons for research on microbial communities.
"
}
return
project
def
setup_investigation
(
content
):
investigation
=
{
"
Investigation
I
dentifier
"
:
"
SRA_Amplicon
"
,
"
Investigation
T
itle
"
:
"
SRA amplicon data from various studies
"
,
"
Investigation
D
escription
"
:
"
Automatically generated metadata from SRA information
"
,
"
Project
I
dentifier
"
:
"
UNLOCK
"
,
"
First
N
ame
"
:
"
Jasper
"
,
"
Last
N
ame
"
:
"
Koehorst
"
,
"
Email
"
:
"
jasper.koehorst@wur.nl
"
,
"
Investigation
i
dentifier
"
:
"
SRA_Amplicon
"
,
"
Investigation
t
itle
"
:
"
SRA amplicon data from various studies
"
,
"
Investigation
d
escription
"
:
"
Automatically generated metadata from SRA information
"
,
"
Project
i
dentifier
"
:
"
UNLOCK
"
,
"
First
n
ame
"
:
"
Jasper
"
,
"
Last
n
ame
"
:
"
Koehorst
"
,
"
Email
address
"
:
"
jasper.koehorst@wur.nl
"
,
"
ORCID
"
:
"
0000-0001-8172-8981
"
,
"
Organization
"
:
"
Wageningen University
"
,
"
Department
"
:
"
UNLOCK
"
,
...
...
@@ -145,7 +145,7 @@ def setup_investigation(content):
def
setup_study
(
content
):
study
=
{
"
Investigation
I
dentifier
"
:
"
SRA_Amplicon
"
}
study
=
{
"
Investigation
i
dentifier
"
:
"
SRA_Amplicon
"
}
# ORIGINAL RESEARCHER INFORMATION
...
...
@@ -188,7 +188,7 @@ def setup_study(content):
# STUDY INFORMATION
study_object
=
content
[
'
STUDY
'
]
study
[
'
Study
I
dentifier
'
]
=
study_object
[
'
@accession
'
]
study
[
'
Study
i
dentifier
'
]
=
study_object
[
'
@accession
'
]
study
[
'
alias
'
]
=
study_object
[
'
@alias
'
]
study
[
'
StudyTitle
'
]
=
study_object
[
'
DESCRIPTOR
'
][
'
STUDY_TITLE
'
]
if
'
STUDY_ABSTRACT
'
in
study_object
[
'
DESCRIPTOR
'
]:
...
...
@@ -214,9 +214,9 @@ def setup_observation_unit(content):
experiment
=
content
[
'
EXPERIMENT
'
]
sample
=
content
[
'
SAMPLE
'
]
observation_unit
[
'
Observation
U
nit
I
dentifier
'
]
=
"
X
"
+
sample
[
'
@accession
'
]
observation_unit
[
'
Observation
al u
nit
i
dentifier
'
]
=
"
X
"
+
sample
[
'
@accession
'
]
observation_unit
[
'
alias
'
]
=
"
X
"
+
sample
[
'
@alias
'
]
observation_unit
[
'
Study
I
dentifier
'
]
=
experiment
[
'
STUDY_REF
'
][
'
@accession
'
]
observation_unit
[
'
Study
i
dentifier
'
]
=
experiment
[
'
STUDY_REF
'
][
'
@accession
'
]
if
"
TITLE
"
in
sample
:
observation_unit
[
'
ObservationUnitDescription
'
]
=
sample
[
'
TITLE
'
]
...
...
@@ -231,16 +231,16 @@ def setup_sample(content):
sample
=
{}
sample_object
=
content
[
'
SAMPLE
'
]
sample
[
'
alias
'
]
=
sample_object
[
'
@alias
'
]
sample
[
'
Sample
I
dentifier
'
]
=
sample_object
[
'
@accession
'
]
sample
[
'
Bio
S
afety
L
evel
'
]
=
"
0
"
sample
[
'
collection
_
date
'
]
=
"
1900-01-01T00:00:00
"
sample
[
'
Sample
i
dentifier
'
]
=
sample_object
[
'
@accession
'
]
sample
[
'
Bio
s
afety
l
evel
'
]
=
"
0
"
sample
[
'
collection
date
'
]
=
"
1900-01-01T00:00:00
"
if
type
(
sample_object
[
'
IDENTIFIERS
'
][
'
EXTERNAL_ID
'
])
==
list
:
for
entry
in
sample_object
[
'
IDENTIFIERS
'
][
'
EXTERNAL_ID
'
]:
if
entry
[
'
@namespace
'
]
==
'
BioSample
'
:
sample_object
[
'
IDENTIFIERS
'
][
'
EXTERNAL_ID
'
]
=
entry
sample
[
'
Observation
U
nit
I
dentifier
'
]
=
"
X
"
+
sample_object
[
'
@accession
'
]
sample
[
'
Observation
al u
nit
i
dentifier
'
]
=
"
X
"
+
sample_object
[
'
@accession
'
]
sample
[
'
namespace
'
]
=
sample_object
[
'
IDENTIFIERS
'
][
'
EXTERNAL_ID
'
][
'
@namespace
'
]
sample
[
'
text
'
]
=
sample_object
[
'
IDENTIFIERS
'
][
'
EXTERNAL_ID
'
][
'
#text
'
]
...
...
@@ -249,8 +249,8 @@ def setup_sample(content):
sample
[
'
SampleTitle
'
]
=
sample_object
[
'
TITLE
'
]
sample
[
'
SampleName
'
]
=
sample_object
[
'
TITLE
'
]
else
:
sample
[
'
SampleTitle
'
]
=
'
Automatic sample title from SRA
'
+
sample
[
'
Sample
I
dentifier
'
]
sample
[
'
SampleName
'
]
=
'
Automatic sample title from SRA
'
+
sample
[
'
Sample
I
dentifier
'
]
sample
[
'
SampleTitle
'
]
=
'
Automatic sample title from SRA
'
+
sample
[
'
Sample
i
dentifier
'
]
sample
[
'
SampleName
'
]
=
'
Automatic sample title from SRA
'
+
sample
[
'
Sample
i
dentifier
'
]
sample
[
'
NCBI taxonomy ID
'
]
=
sample_object
[
'
SAMPLE_NAME
'
][
'
TAXON_ID
'
]
...
...
@@ -262,7 +262,7 @@ def setup_sample(content):
if
"
DESCRIPTION
"
in
sample_object
:
sample
[
'
SampleDescription
'
]
=
sample_object
[
'
DESCRIPTION
'
]
else
:
sample
[
'
SampleDescription
'
]
=
'
Automatic sample description from SRA
'
+
sample
[
'
Sample
I
dentifier
'
]
sample
[
'
SampleDescription
'
]
=
'
Automatic sample description from SRA
'
+
sample
[
'
Sample
i
dentifier
'
]
sample
[
'
attributes
'
]
=
{}
if
'
SAMPLE_ATTRIBUTES
'
in
sample_object
:
...
...
@@ -281,21 +281,21 @@ def setup_assay(content):
assay
[
'
Facility
'
]
=
'
Unknown
'
assay
[
'
Method
'
]
=
'
Unknown
'
# assay['Date'] = 'Unknown'
assay
[
'
t
arget
_
subfragment
'
]
=
""
assay
[
'
Isolation
P
rotocol
'
]
=
"
Unknown
"
assay
[
'
T
arget
subfragment
'
]
=
""
assay
[
'
Isolation
p
rotocol
'
]
=
"
Unknown
"
run
=
content
[
'
RUN_SET
'
][
'
RUN
'
]
assay
[
'
Assay
I
dentifier
'
]
=
run
[
'
@accession
'
]
assay
[
'
Assay
i
dentifier
'
]
=
run
[
'
@accession
'
]
assay
[
'
alias
'
]
=
run
[
'
@alias
'
]
assay
[
'
total_spots
'
]
=
run
[
'
@total_spots
'
]
assay
[
'
total_bases
'
]
=
run
[
'
@total_bases
'
]
assay
[
'
size
'
]
=
run
[
'
@size
'
]
assay
[
'
load_done
'
]
=
run
[
'
@load_done
'
]
assay
[
'
published
'
]
=
run
[
'
@published
'
]
assay
[
'
Sample
I
dentifier
'
]
=
content
[
'
SAMPLE
'
][
'
@accession
'
]
assay
[
'
Study
I
dentifier
'
]
=
content
[
'
STUDY
'
][
'
@accession
'
]
assay
[
'
Assay
N
ame
'
]
=
'
Automatic assay title from SRA
'
+
assay
[
'
Assay
I
dentifier
'
]
assay
[
'
Assay
D
escription
'
]
=
'
Automatic assay description from SRA
'
+
assay
[
'
Assay
I
dentifier
'
]
assay
[
'
Sample
i
dentifier
'
]
=
content
[
'
SAMPLE
'
][
'
@accession
'
]
assay
[
'
Study
i
dentifier
'
]
=
content
[
'
STUDY
'
][
'
@accession
'
]
assay
[
'
Assay
n
ame
'
]
=
'
Automatic assay title from SRA
'
+
assay
[
'
Assay
i
dentifier
'
]
assay
[
'
Assay
d
escription
'
]
=
'
Automatic assay description from SRA
'
+
assay
[
'
Assay
i
dentifier
'
]
assay
[
'
experiment
'
]
=
content
[
'
EXPERIMENT
'
][
'
@accession
'
]
# Files
...
...
@@ -314,8 +314,8 @@ def setup_assay(content):
print
(
sra
[
'
@filename
'
])
print
(
"
SOMETHING WENT WRONG!
"
)
assay
[
'
File
N
ame
Forward
'
]
=
sra_file
[
'
@filename
'
]
+
"
_1.fastq.gz
"
assay
[
'
FileNameRevers
e
'
]
=
sra_file
[
'
@filename
'
]
+
"
_2.fastq.gz
"
assay
[
'
F
orward f
ile
n
ame
'
]
=
sra_file
[
'
@filename
'
]
+
"
_1.fastq.gz
"
assay
[
'
Reverse filenam
e
'
]
=
sra_file
[
'
@filename
'
]
+
"
_2.fastq.gz
"
assay
[
'
Date
'
]
=
sra_file
[
'
@date
'
]
assay
[
'
super_type
'
]
=
sra_file
[
'
@supertype
'
]
assay
[
'
sratoolkit
'
]
=
sra_file
[
'
@sratoolkit
'
]
...
...
@@ -324,23 +324,23 @@ def setup_assay(content):
library
=
content
[
'
EXPERIMENT
'
][
'
DESIGN
'
][
'
LIBRARY_DESCRIPTOR
'
]
if
'
LIBRARY_NAME
'
in
library
:
assay
[
'
l
ibrary
_
name
'
]
=
library
[
'
LIBRARY_NAME
'
]
assay
[
'
L
ibrary
name
'
]
=
library
[
'
LIBRARY_NAME
'
]
assay
[
'
l
ibrary
_
strategy
'
]
=
library
[
'
LIBRARY_STRATEGY
'
]
assay
[
'
l
ibrary
_
source
'
]
=
library
[
'
LIBRARY_SOURCE
'
]
assay
[
'
l
ibrary
_
selection
'
]
=
library
[
'
LIBRARY_SELECTION
'
]
assay
[
'
l
ibrary
_
layout
'
]
=
list
(
dict
(
library
[
'
LIBRARY_LAYOUT
'
]).
keys
())
assay
[
'
L
ibrary
strategy
'
]
=
library
[
'
LIBRARY_STRATEGY
'
]
assay
[
'
L
ibrary
source
'
]
=
library
[
'
LIBRARY_SOURCE
'
]
assay
[
'
L
ibrary
selection
'
]
=
library
[
'
LIBRARY_SELECTION
'
]
assay
[
'
L
ibrary
layout
'
]
=
list
(
dict
(
library
[
'
LIBRARY_LAYOUT
'
]).
keys
())
# Machine
assay
[
'
Inst
r
ument
M
odel
'
]
=
content
[
'
EXPERIMENT
'
][
'
PLATFORM
'
][
'
ILLUMINA
'
][
'
INSTRUMENT_MODEL
'
]
assay
[
'
Instument
m
odel
'
]
=
content
[
'
EXPERIMENT
'
][
'
PLATFORM
'
][
'
ILLUMINA
'
][
'
INSTRUMENT_MODEL
'
]
if
'
ILLUMINA
'
in
content
[
'
EXPERIMENT
'
][
'
PLATFORM
'
]:
assay
[
'
Platform
'
]
=
'
Illumina
'
else
:
print
(
"
NEW SEQUENCING PLATFORM DETECTED!!!
"
)
if
len
(
assay
[
'
l
ibrary
_
layout
'
])
==
1
:
assay
[
'
l
ibrary
_
layout
'
]
=
assay
[
'
l
ibrary
_
layout
'
][
0
]
if
len
(
assay
[
'
L
ibrary
layout
'
])
==
1
:
assay
[
'
L
ibrary
layout
'
]
=
assay
[
'
L
ibrary
layout
'
][
0
]
return
assay
...
...
@@ -396,13 +396,9 @@ def filtering(TAG, VALUE):
else
:
print
(
"
New parser needed for
"
+
[
VALUE
])
# if "+00:00" in VALUE:
# print("STOP!")
return
VALUE
def
create_xlsx
(
pickle_list
):
# Prepocessing of picke list
project_keys
=
set
()
...
...
@@ -439,25 +435,25 @@ def create_xlsx(pickle_list):
assay_keys
.
update
(
assay
.
keys
())
# Creating the headers
project_header
=
[
"
Project
I
dentifier
"
,
"
Project
D
escription
"
,
"
Project
T
itle
"
]
project_header
=
[
"
Project
i
dentifier
"
,
"
Project
d
escription
"
,
"
Project
t
itle
"
]
project_header
=
create_header
(
project_header
,
project_keys
)
investigation_header
=
[
"
Investigation
I
dentifier
"
,
"
Investigation
D
escription
"
,
"
Investigation
T
itle
"
,
"
Project
I
dentifier
"
,
"
First
N
ame
"
,
"
Last
N
ame
"
,
"
Email
"
,
"
ORCID
"
,
"
Organization
"
,
investigation_header
=
[
"
Investigation
i
dentifier
"
,
"
Investigation
d
escription
"
,
"
Investigation
t
itle
"
,
"
Project
i
dentifier
"
,
"
First
n
ame
"
,
"
Last
n
ame
"
,
"
Email
address
"
,
"
ORCID
"
,
"
Organization
"
,
"
Department
"
,
"
Role
"
]
investigation_header
=
create_header
(
investigation_header
,
investigation_keys
)
study_header
=
[
"
Study
I
dentifier
"
,
"
Study
D
escription
"
,
"
Study
T
itle
"
,
"
Investigation
I
dentifier
"
]
study_header
=
[
"
Study
i
dentifier
"
,
"
Study
d
escription
"
,
"
Study
t
itle
"
,
"
Investigation
i
dentifier
"
]
study_header
=
create_header
(
study_header
,
study_keys
)
observation_unit_header
=
[
"
Observation
U
nit
I
dentifier
"
,
"
Observation
U
nit
D
escription
"
,
"
Observation
U
nit
N
ame
"
,
"
Study
I
dentifier
"
]
observation_unit_header
=
[
"
Observation
al u
nit
i
dentifier
"
,
"
Observation
al u
nit
d
escription
"
,
"
Observation
al u
nit
n
ame
"
,
"
Study
i
dentifier
"
]
observation_unit_header
=
create_header
(
observation_unit_header
,
observation_unit_keys
)
sample_header
=
[
"
Sample
I
dentifier
"
,
"
Sample
D
escription
"
,
"
S
ample
N
ame
"
,
"
Observation
U
nit
I
dentifier
"
,
"
NCBI taxonomy ID
"
,
"
Sample
O
rganism
"
]
sample_header
=
[
"
Sample
i
dentifier
"
,
"
Sample
d
escription
"
,
"
s
ample
n
ame
"
,
"
Observation
al u
nit
i
dentifier
"
,
"
NCBI taxonomy ID
"
,
"
Sample
o
rganism
"
]
sample_header
=
create_header
(
sample_header
,
sample_keys
)
assay_header
=
[
"
Assay
I
dentifier
"
,
"
Sample
I
dentifier
"
,
"
Assay
Title
"
,
"
AssayD
escription
"
,
"
File
N
ame
Forward
"
,
"
FileNameRevers
e
"
,
"
Forward
P
rimer
"
,
"
Reverse
P
rimer
"
,
"
Primer
N
ames
"
,
"
Isolation
P
rotocol
"
,
"
Sequencing
C
enter
"
,
"
Sequencing
Platform
"
,
"
Sequencing
Date
"
]
assay_header
=
[
"
Assay
i
dentifier
"
,
"
Sample
i
dentifier
"
,
"
Assay
d
escription
"
,
"
F
orward f
ile
n
ame
"
,
"
Reverse filenam
e
"
,
"
Forward
p
rimer
"
,
"
Reverse
p
rimer
"
,
"
Primer
n
ames
"
,
"
Isolation
p
rotocol
"
,
"
Sequencing
c
enter
"
,
"
Platform
"
,
"
Date
"
]
assay_header
=
create_header
(
assay_header
,
assay_keys
)
...
...
@@ -494,11 +490,11 @@ def create_xlsx(pickle_list):
assay
=
pickle
.
load
(
pkl
)
# Skip studies that are already parsed from other pickles
if
project
[
'
Project
I
dentifier
'
]
in
project_identifier
:
continue
if
project
[
'
Project
i
dentifier
'
]
in
project_identifier
:
continue
for
key
in
project
:
column
=
project_header
.
index
(
key
)
project_worksheet
.
write
(
row_number
,
column
,
project
[
key
])
project_identifier
.
add
(
project
[
'
Project
I
dentifier
'
])
project_identifier
.
add
(
project
[
'
Project
i
dentifier
'
])
row_number
=
row_number
+
1
###############################################################
...
...
@@ -516,11 +512,11 @@ def create_xlsx(pickle_list):
assay
=
pickle
.
load
(
pkl
)
# Skip studies that are already parsed from other pickles
if
investigation
[
'
Investigation
I
dentifier
'
]
in
investigation_identifier
:
continue
if
investigation
[
'
Investigation
i
dentifier
'
]
in
investigation_identifier
:
continue
for
key
in
investigation
:
column
=
investigation_header
.
index
(
key
)
investigation_worksheet
.
write
(
row
,
column
,
investigation
[
key
])
investigation_identifier
.
add
(
investigation
[
'
Investigation
I
dentifier
'
])
investigation_identifier
.
add
(
investigation
[
'
Investigation
i
dentifier
'
])
row_number
=
row_number
+
1
###############################################################
...
...
@@ -538,11 +534,11 @@ def create_xlsx(pickle_list):
assay
=
pickle
.
load
(
pkl
)
# Skip studies that are already parsed from other assay pickles
if
study
[
'
Study
I
dentifier
'
]
in
study_identifier
:
continue
if
study
[
'
Study
i
dentifier
'
]
in
study_identifier
:
continue
for
key
in
study
:
column
=
study_header
.
index
(
key
)
study_worksheet
.
write
(
row_number
,
column
,
study
[
key
])
study_identifier
.
add
(
study
[
'
Study
I
dentifier
'
])
study_identifier
.
add
(
study
[
'
Study
i
dentifier
'
])
row_number
=
row_number
+
1
###############################################################
...
...
@@ -560,11 +556,11 @@ def create_xlsx(pickle_list):
assay
=
pickle
.
load
(
pkl
)
# Skip studies that are already parsed from other pickles
if
observation_unit
[
'
Observation
U
nit
I
dentifier
'
]
in
ou_identifier
:
continue
if
observation_unit
[
'
Observation
al u
nit
i
dentifier
'
]
in
ou_identifier
:
continue
for
key
in
observation_unit
:
column
=
observation_unit_header
.
index
(
key
)
ou_worksheet
.
write
(
row_number
,
column
,
observation_unit
[
key
])
ou_identifier
.
add
(
observation_unit
[
'
Observation
U
nit
I
dentifier
'
])
ou_identifier
.
add
(
observation_unit
[
'
Observation
al u
nit
i
dentifier
'
])
row_number
=
row_number
+
1
###############################################################
# Filling the sample sheet
...
...
@@ -581,14 +577,14 @@ def create_xlsx(pickle_list):
assay
=
pickle
.
load
(
pkl
)
# Skip studies that are already parsed from other pickles
if
sample
[
'
Sample
I
dentifier
'
]
in
sample_identifier
:
continue
if
sample
[
'
Sample
i
dentifier
'
]
in
sample_identifier
:
continue
attributes
=
sample
.
pop
(
"
attributes
"
)
sample
=
{
**
sample
,
**
attributes
}
for
key
in
sample
:
column
=
sample_header
.
index
(
key
)
sample_worksheet
.
write
(
row_number
,
column
,
sample
[
key
])
sample_identifier
.
add
(
sample
[
'
Sample
I
dentifier
'
])
sample_identifier
.
add
(
sample
[
'
Sample
i
dentifier
'
])
row_number
=
row_number
+
1
###############################################################
...
...
@@ -606,11 +602,11 @@ def create_xlsx(pickle_list):
assay
=
pickle
.
load
(
pkl
)
# Skip studies that are already parsed from other pickles
if
assay
[
'
Assay
I
dentifier
'
]
in
assay_identifier
:
continue
if
assay
[
'
Assay
i
dentifier
'
]
in
assay_identifier
:
continue
for
key
in
assay
:
column
=
assay_header
.
index
(
key
)
assay_worksheet
.
write
(
row_number
,
column
,
assay
[
key
])
assay_identifier
.
add
(
assay
[
'
Assay
I
dentifier
'
])
assay_identifier
.
add
(
assay
[
'
Assay
i
dentifier
'
])
row_number
=
row_number
+
1
workbook
.
close
()
...
...
@@ -669,7 +665,6 @@ def selection(content):
def
main
(
identifiers
):
pickle_list
=
set
()
for
xml
in
identifiers
.
values
():
if
not
xml
.
endswith
(
"
.xml
"
):
continue
with
open
(
xml
)
as
fd
:
...
...
@@ -714,6 +709,7 @@ if __name__ == '__main__':
identifiers
=
{}
for
index
,
identifier
in
enumerate
(
record
[
'
IdList
'
]):
print
(
"
>>>
"
,
identifier
)
folder
=
make_folder
(
identifier
)
path
=
folder
+
"
/
"
+
identifier
+
"
.xml
"
identifiers
[
identifier
]
=
path
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment