Important fixes on ID cross-referencing, validation of functional ID columns and colormap picking
Validation of input data columns implemented
Four regexes will check if values in columns are valid.
KEGG ID
:^[A-Za-z]{3}:.+$
KO
:^K\d{5}$
EC number
:^(\d+)(\.(\d+|-)){3}$
COG
:^COG\d{4}$
Values can come in comma separated values, but each value between commas must obey the regexes.
Also, several fixes
Fix on adding new ids from API
Merging new IDs with old ones was creating some disconnect between old and new columns, and the new IDs were being placed in new columns disconnected from the rest of the dataframe. It's fixed now.
Differential colormap starts at 0
Before, the colormap was being generated between the maximmum and minimum values of the dataframe. Now, it begins at 0, up to the maximum of the dataframe.
Implemented new parameter for chosing colormap of differential maps
--differential-colormap
allows to chose a new colormap instead of the default (summer
). Valid values can be consulted at matplotlib.