Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
ukbparse
Commits
8980a3b0
Commit
8980a3b0
authored
Mar 18, 2019
by
Paul McCarthy
🚵
Browse files
Merge branch 'rf/rules' into 'master'
Rf/rules See merge request fsl/ukbparse!109
parents
7a88e206
fcdc2469
Pipeline
#3450
passed with stages
in 7 minutes and 58 seconds
Changes
7
Pipelines
2
Expand all
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.rst
View file @
8980a3b0
...
...
@@ -2,6 +2,19 @@
======================
0.14.7 (Sunday 17th March 2019)
-------------------------------
Changed
^^^^^^^
* Changes to default cleaning rules - negative values for integer/categorical
types are no longer discarded.
0.14.6 (Saturday 16th March 2019)
---------------------------------
...
...
ukbparse/__init__.py
View file @
8980a3b0
...
...
@@ -6,7 +6,7 @@
#
__version__
=
'0.14.
6
'
__version__
=
'0.14.
7
'
"""The ``ukbparse`` versioning scheme roughly follows Semantic Versioning
conventions.
"""
...
...
ukbparse/data/datacodings_recoding.tsv
View file @
8980a3b0
...
...
@@ -14,6 +14,7 @@ ID RawLevels NewLevels
100013
100011 10,3060,1030,12,24,600 1,2,3,4,5,6
100012 0,13,35,57,79,912,1200 2,3,4,5,6,7
100290 -10 0.5
488 -1001 0
493 0,-131,-141 1,2,3
494 -1520,-2030,-3040,-4000 1,2,3,4
...
...
ukbparse/data/types.tsv
View file @
8980a3b0
Type Clean
Integer makeNa('< 0')
Categorical (single) makeNa('< 0')
Categorical (multiple) makeNa('< 0')
\ No newline at end of file
ukbparse/data/variables_parentvalues.tsv
View file @
8980a3b0
ID ParentValues ChildValues
757 v6142 == 1 0
767 v6142 == 1 0
777 v6142 == 1 0
796 v6142 == 1 || v777 == 0 0
...
...
ukbparse/loadtables.py
View file @
8980a3b0
...
...
@@ -421,7 +421,7 @@ def loadVariableTable(datafiles,
warnings
.
filterwarnings
(
'ignore'
,
category
=
pd
.
errors
.
ParserWarning
)
if
fname
is
not
None
:
log
.
debug
(
'Loading %s table from %s'
,
what
,
varfil
e
)
log
.
debug
(
'Loading %s table from %s'
,
what
,
fnam
e
)
table
=
pd
.
read_csv
(
fname
,
'
\t
'
,
index_col
=
0
,
dtype
=
dtypes
,
...
...
ukbparse/tests/ukbparse_demonstration_with_outputs.ipynb
View file @
8980a3b0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment