Skip to content

Commit

Permalink
REGD-91 genome browser fix target display (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
shengchd authored Feb 6, 2023
1 parent 37b2b54 commit 4857630
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/encoded/static/components/regulome_search.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,14 +737,21 @@ export class RegulomeSearch extends React.Component {
let filesForGenomeBrowser = [];
experimentDatasets.forEach((dataset) => {
const files = dataset.files_for_genome_browser;
let target = '';
// use target labels instead of gene symbols for histone ChIP-seq targets
if (dataset.method === 'Histone ChIP-seq') {
target = dataset.target_label ? dataset.target_label : '';
} else {
target = dataset.targets ? dataset.targets.join(', ') : '';
}
// eslint-disable-next-line no-plusplus
for (let i = 0; i < files.length; i++) {
files[i].assay_term_name = dataset.method;
files[i].biosample_ontology = dataset.biosample_ontology;
files[i].file_format = files[i].href.split('.')[1];
files[i].dataset = dataset.dataset_rel;
files[i].title = files[i].accession;
files[i].target = dataset.targets ? dataset.targets.join(', ') : '';
files[i].target = target;
files[i].biosample = dataset.biosample_ontology.term_name || '';
files[i].assay = dataset.method || '';
files[i].organ = (dataset.biosample_ontology.classification === 'tissue') ? dataset.biosample_ontology.organ_slims.join(', ') : dataset.biosample_ontology.cell_slims.join(', ');
Expand Down

0 comments on commit 4857630

Please sign in to comment.