Open tashrifbillah opened 1 year ago
This block caused problem for ampscz_lapes01
:
https://github.com/AMP-SCZ/utility/blob/d5537ce5d5d58532bca3884f65929290305f3239/nda-transform/ampscz_lapes01.py#L92-L93
The input data are floats instead of integers. It is not our fault though as the above block is designed for integers. I believe we designed it that way because some variables had options W.1
, M.1
, etc. The block is designed to extract trailing integers from such options.
A different observation:
chrfigs_fam
chrfigs_numsib
chrfigs_numchild
variables are without chrfigs_fam_
string in them.
Case-1: Definitions that can be used as they are: (Variables to share is obtained from
_template.csv
)Most generic script for the above purpose now is
assist01.py
.Case-2: Definitions where AMP-SCZ variables exist in alias and aliases can be split by one-single-prefix: (Variables to share is obtained from
_definitions.csv
)wais_iv_part101
andwisc_v01
have the same variables to shareampscz_pss01
, remember the 77/88 custom codesNOTE
tbi01
is programmed to useElementName
column from_definitions.csv
to obtain variables to share. The following note onbprs01
is old and can be ignored as of 6/22/2023.One script for the above purpose now is
bprs01.py
. We can use this script and make a yaml file where all the variables are interest can be indexed by prefixCase-3: Definitions where AMP-SCZ variables exist in alias and aliases cannot be split by one-single-prefix:
Once we replace the first column in definition with aliases, this case reduces to Case-2.
Case-4: Fully custom definition:
chrsofas_session_type
makes it custom)_fu
string needs to be added to five variables) , coded with sofas_baseline scriptchrgfr
for scores andchrgfrs
for interview_date, missing and missing spec)chrgfrs
as a prefix while hard-codingchrgfr
inside the scriptUse unique script
rawdata program: