Closed pjvandehaar closed 3 years ago
In pheweb phenolist glob <pattern> ...,
pheweb phenolist glob <pattern> ...
if user supplies --phenocode-regex="", use that.
--phenocode-regex=""
elif pattern contains #:
pattern
#
glob.glob(pattern.replace('#', '*'))
phenocode
else:
glob.glob(pattern)
\.chr(?:[1-9][0-9]?|X|Y|M?)
In
pheweb phenolist glob <pattern> ...
,if user supplies
--phenocode-regex=""
, use that.elif
pattern
contains#
:glob.glob(pattern.replace('#', '*'))
#
and they disagree, drop the match. (print num dropped)phenocode
to whatever#
matched. (but error if#
matched a literal#
)else:
glob.glob(pattern)
\.chr(?:[1-9][0-9]?|X|Y|M?)
to get the phenocode.