jass_preprocessing.map_gwas

Map GWAS

A set of functions to find GWAS files in subfolder and to map columns

Functions

convert_missing_values(df)

Convert all missing value strings to a standart np.nan value

gwas_internal_link(GWAS_table, GWAS_path)

Walk the GWAS path to find the GWAS tables

map_columns_position(gwas_internal_link, ...)

Find column position for each specific Gwas

read_gwas(gwas_internal_link, column_map[, ...])

Read gwas raw data, fetch columns thanks to position stored in column_map and rename columns according to column_map.index

walkfs(startdir, findfile)

Go through the folder and subfolder to find the specified file