diff --git a/modules/genomic_browser/jsx/tabs_content/methylation.js b/modules/genomic_browser/jsx/tabs_content/methylation.js index 9ed7fe53f6..0ef30186e7 100644 --- a/modules/genomic_browser/jsx/tabs_content/methylation.js +++ b/modules/genomic_browser/jsx/tabs_content/methylation.js @@ -87,13 +87,42 @@ class Methylation extends Component { const url = `${this.props.baseURL}/${rowData.DCCID}/`; reactElement = {rowData.PSCID}; break; + + case 'CPG Name': + case 'Gene': + case 'Accession number': + case 'Island Loc': + reactElement = ( + + {String(cell || '') + .split(',') + .map((v) => v.trim()) + .filter(Boolean) + .map((val, i, arr) => ( + + + {val} + + {i < arr.length - 1 ? ', ' : ''} + + ))} + + ); + break; + default: reactElement = {cell}; break; } return reactElement; } - /** * @return {DOMRect} */ @@ -162,7 +191,7 @@ class Methylation extends Component { }, { label: t('CPG Name', {ns: 'genomic_browser'}), - show: false, + show: true, filter: { name: 'File', type: 'text', diff --git a/modules/genomic_browser/php/models/methylationdto.class.inc b/modules/genomic_browser/php/models/methylationdto.class.inc index 1b5d329084..9ed835c896 100644 --- a/modules/genomic_browser/php/models/methylationdto.class.inc +++ b/modules/genomic_browser/php/models/methylationdto.class.inc @@ -273,6 +273,7 @@ class MethylationDTO implements DataInstance, SiteHaver 'PSCID' => $this->_PSCID, 'Sex' => $this->_Sex, 'Cohort' => $this->_Cohort, + 'Date_of_Birth' => "", // Added to fix alignment 'Sample' => $this->_Sample, 'cpg_name' => $this->_cpg_name, 'Beta_value' => $this->_Beta_value,