Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
concepts-processing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
meldb
concepts-processing
Commits
12c11d66
Commit
12c11d66
authored
7 months ago
by
Jakub Dylag
Browse files
Options
Downloads
Patches
Plain Diff
output reproducible - order and uniformity in output files
parent
3ad40be1
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
publish.py
+5
-4
5 additions, 4 deletions
publish.py
run.sh
+2
-2
2 additions, 2 deletions
run.sh
with
7 additions
and
6 deletions
publish.py
+
5
−
4
View file @
12c11d66
...
...
@@ -9,11 +9,12 @@ def main(config):
else
:
raise
Exception
(
"
Concepts file must be
'
.csv
'
filetype
"
)
filename
=
config
[
"
concepts
"
][:
-
4
]
for
name
,
concept
in
df
.
groupby
(
"
MELDB_concept
"
):
concept
.
sort_values
(
by
=
"
code
"
)
concept
.
to_csv
(
os
.
path
.
join
(
config
[
"
output
"
],
str
(
name
)
+
"
.csv
"
),
concept
=
concept
.
sort_values
(
by
=
"
code
"
)
#sort rows
concept
=
concept
.
dropna
(
how
=
'
all
'
,
axis
=
1
)
#remove empty cols
concept
=
concept
.
reindex
(
sorted
(
concept
.
columns
),
axis
=
1
)
#sort cols alphabetically
concept
.
to_csv
(
os
.
path
.
join
(
config
[
"
output
"
],
str
(
name
)
+
"
.csv
"
),
#save to csv
index
=
False
)
...
...
This diff is collapsed.
Click to expand it.
run.sh
+
2
−
2
View file @
12c11d66
#! /usr/bin/bash
version
=
"V3_2_
7
"
previous
=
"V3_2_
6
"
version
=
"V3_2_
10
"
previous
=
"V3_2_
9
"
python main.py
-r2
PHEN_assign_v3.json CONC_summary_working.xlsx
mv
output/MELD_concepts_read.csv output/
${
version
}
_MELD_concepts_readv2.csv
...
...
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