{"action":"created","comment":{"url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/comments/199546984","pull_request_review_id":133687184,"id":199546984,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTU0Njk4NA==","diff_hunk":"@@ -0,0 +1,872 @@\n+import React from 'react';\n+import ReactDOM from 'react-dom';\n+import PropTypes from 'prop-types';\n+import _ from 'underscore';\n+import { isServerSide, ajax, console } from './../../util';\n+import { requestAnimationFrame } from './../../viz/utilities';\n+\n+let HiGlassComponent = null; // Loaded after componentDidMount as not supported server-side.\n+\n+/* To be deleted (probably)\n+function loadJS(src){\n+    return new Promise(function(resolve, reject){\n+        var script = document.createElement('script');\n+        script.src = src;\n+        script.addEventListener('load', function () {\n+            resolve();\n+        });\n+        script.addEventListener('error', function (e) {\n+            reject(e);\n+        });\n+        document.body.appendChild(script);\n+    });\n+}\n+*/\n+\n+\n+/**\n+ * Singleton class used for communicating with LocalStorage\n+ */\n+export class HiGlassLocalStorage {\n+\n+    static instances = {}\n+\n+    static DEFAULT_PREFIX = \"higlass_4dn_data_\";\n+\n+    static validators = {\n+        'domains' : function(val){\n+            if (!val || !Array.isArray(val.x) || !Array.isArray(val.y)) return false;\n+            if (val.x.length != 2) return false;\n+            if (val.y.length != 2) return false;\n+            return true;\n+        }\n+    }\n+\n+    constructor(prefix = HiGlassLocalStorage.DEFAULT_PREFIX){\n+        if (HiGlassLocalStorage.instances[prefix]){\n+            return HiGlassLocalStorage.instances[prefix];\n+        }\n+\n+        if (!this.doesLocalStorageExist()){\n+            return null;\n+        }\n+\n+        this.prefix = prefix;\n+        HiGlassLocalStorage.instances[prefix] = this;\n+\n+        return HiGlassLocalStorage.instances[prefix];\n+    }\n+\n+    doesLocalStorageExist(){\n+        var someVariable = 'helloworld';\n+        try {\n+            localStorage.setItem(someVariable, someVariable);\n+            localStorage.removeItem(someVariable);\n+            return true;\n+        } catch(e) {\n+            return false;\n+        }\n+    }\n+\n+    getDomains(){\n+        var localStorageKey = this.prefix + 'domains';\n+        var domains = localStorage.getItem(localStorageKey);\n+        if (domains) domains = JSON.parse(domains);\n+        if (!HiGlassLocalStorage.validators.domains(domains)){\n+            localStorage.removeItem(localStorageKey);\n+            console.error('Domains failed validation, removing key & value - ' + localStorageKey, domains);\n+            return null;\n+        }\n+        return domains || null;\n+    }\n+\n+    /**\n+     * Save domain range location to localStorage.\n+     *\n+     * @param {{ 'x' : number[], 'y' : number[] }} domains - Domains to save from viewConfig.\n+     */\n+    saveDomains(domains){\n+        if (!HiGlassLocalStorage.validators.domains(domains)){\n+            console.error('Invalid value for domains passed in', domains);\n+            return false;\n+        }\n+        localStorage.setItem(this.prefix + 'domains', JSON.stringify(domains));\n+        return true;\n+    }\n+}\n+\n+export const DEFAULT_GEN_VIEW_CONFIG_OPTIONS = {\n+    'height' : 600,\n+    'baseUrl' : \"https://higlass.4dnucleome.org\",\n+    'supplementaryTracksBaseUrl' : \"https://higlass.io\",\n+    'initialDomains' : {\n+        'x' : [31056455, 31254944],\n+        'y' : [31114340, 31201073]\n+    },\n+    'extraViewProps' : [],\n+    //'genomeAssembly' : 'GRCh38',\n+    'index' : 0,\n+    'storagePrefix' : HiGlassLocalStorage.DEFAULT_PREFIX,\n+    'groupID' : null,\n+    'baseViewProps' : null,\n+    'excludeAnnotationTracks' : false\n+};\n+\n+/** Dictionary (Object) of functions for building out a viewConfig. Uses common 'options' dictionary. */\n+export const HiGlassConfigurator = {\n+\n+    /**\n+     * AJAX request tilesetUid from higlass server then call either successCallback or fallbackCallback param.\n+     *\n+     * @async\n+     */\n+    validateTilesetUid : function(tilesetUid, successCallback, failureCallback = null, server = null){\n+        if (!failureCallback) failureCallback = function(){ console.error('Failed to validate tilesetUid:', tilesetUid, server); };\n+        if (!server) server = DEFAULT_GEN_VIEW_CONFIG_OPTIONS.baseUrl;\n+\n+        if (!tilesetUid || !server) {\n+            failureCallback();\n+            return false;\n+        }\n+\n+        if (Array.isArray(tilesetUid)){\n+            successCallback = _.after(tilesetUid.length - 1, successCallback);\n+        }\n+\n+        function doValidation(currTilesetUid){\n+            ajax.load(server + '/api/v1/tileset_info/?d=' + currTilesetUid, (resp)=>{\n+                if (resp[tilesetUid] && resp[tilesetUid].name && Array.isArray(resp[tilesetUid].min_pos) && Array.isArray(resp[tilesetUid].max_pos) && resp[tilesetUid].min_pos.length > 0 && resp[tilesetUid].max_pos.length > 0) {\n+                    successCallback();\n+                } else {\n+                    failureCallback();\n+                }\n+            }, 'GET', failureCallback);\n+        }\n+\n+        if (Array.isArray(tilesetUid)){\n+            if (tilesetUid.length === 0) {\n+                failureCallback();\n+                return;\n+            } else if (tilesetUid[0] && typeof tilesetUid[0] === 'object' && tilesetUid[0].tilesetUid){\n+                tilesetUid = _.pluck(tilesetUid, 'tilesetUid');\n+            }\n+            if (!_.every(tilesetUid, function(tuid){ return typeof tuid === 'string'; })) {\n+                failureCallback();\n+                return;\n+            }\n+            _.forEach(tilesetUid, doValidation);\n+        }\n+        doValidation(tilesetUid);\n+    },\n+\n+    getInitialDomainsFromStorage : function(options){\n+        var storagePrefix = options.storagePrefix || HiGlassLocalStorage.DEFAULT_PREFIX,\n+            initialDomains = options.initialDomains || DEFAULT_GEN_VIEW_CONFIG_OPTIONS.initialDomains;\n+\n+        if (typeof options.groupID === 'string'){ // Handle groupID w/o needing to rename/transform prior to this function.\n+            storagePrefix = HiGlassLocalStorage.DEFAULT_PREFIX + options.groupID + '_';\n+        }\n+\n+        // Grab existing singleton HiGlassLocalStorage instance via constructor (or create new) in order to grab domains.\n+        var storage = new HiGlassLocalStorage(storagePrefix);\n+        return (storage && storage.getDomains()) || initialDomains;\n+    },\n+\n+    generateViewConfigBase : function(options = DEFAULT_GEN_VIEW_CONFIG_OPTIONS){\n+        return _.extend({\n+            \"editable\"  : true,\n+            \"zoomFixed\" : false,\n+            \"exportViewUrl\": \"/api/v1/viewconfs\",\n+            \"zoomLocks\" : {\n+                \"locksByViewUid\" : {},\n+                \"locksDict\" : {}\n+            },\n+            \"locationLocks\" : {\n+                \"locksByViewUid\" : {},\n+                \"locksDict\" : {}\n+            },\n+            \"trackSourceServers\": [\n+                options.supplementaryTracksBaseUrl + \"/api/v1\" // Needs to be higlass currently for searchbox to work (until have some coord/search tracks or something in 54.86.. server?).\n+            ]\n+        }, options.viewConfigBase || {});\n+    },\n+\n+    chromosomeAndAnnotationFromGenomeAssembly : function(genomeAssembly = 'GRCh38'){\n+        if (genomeAssembly === 'GRCh38'){ // Human\n+            return {\n+                'annotation' : {\n+                    'name':         'Gene Annotations (hg38)',\n+                    'tilesetUid':   'P0PLbQMwTYGy-5uPIQid7A'\n+                },\n+                'chromosome' : {\n+                    'name':         'Chromosome Axis',\n+                    'tilesetUid':   'NyITQvZsS_mOFNlz5C2LJg',\n+                    'infoid':       'hg38'\n+                }\n+            };\n+        } else if (genomeAssembly == 'GRCm38') { // Mouse\n+            return {\n+                'annotation' : {\n+                    'name':         'Gene Annotations (mm10)',\n+                    'tilesetUid':   'QDutvmyiSrec5nX4pA5WGQ'\n+                },\n+                'chromosome' : {\n+                    'name':         'Chromosome Axis',\n+                    'tilesetUid':   'EtrWT0VtScixmsmwFSd7zg',\n+                    'infoid':       'mm10'\n+                }\n+            };\n+        } else {\n+            throw new Error(\"No genome assembly supplied.\");\n+        }\n+    },\n+\n+    generateDefaultLayoutForViewItem(viewItemID, extraLayout = {}){\n+        return _.extend({\n+            'moved' : false,\n+            'static' : true,\n+            'i' : viewItemID,\n+            'w' : 12, 'h' : 12,\n+            'x' : 0,  'y' : 0\n+        }, extraLayout);\n+    },\n+\n+\n+    // ViewConfig\n+\n+    isTilesetUidAValidListOfObjects : function(tilesetUid){\n+        return (Array.isArray(tilesetUid) && _.every(tilesetUid, function(uidObj){  return (uidObj && typeof uidObj === 'object' && typeof uidObj.tilesetUid === 'string'); })) || false;\n+    },\n+\n+    generateViewConfigForMultipleViews : function(viewConfigGenFxn = HiGlassConfigurator.mcool.generateViewConfig, files, options = DEFAULT_GEN_VIEW_CONFIG_OPTIONS){\n+\n+        // Generate all configs normally\n+        var allConfigs = _.map(files, function(file, idx){\n+            return viewConfigGenFxn([file], _.extend({}, options, { 'index' : idx }));\n+        });\n+\n+        // Then merge them into one primary config, locking their views/zooms together\n+        var primaryConf = allConfigs[0];\n+        var locationLockID = 'LOCATION_LOCK_ID';    // Arbitrary unique ID.\n+        var zoomLockID = 'ZOOM_LOCK_ID';            // Arbitrary unique ID.\n+\n+        primaryConf.locationLocks.locksByViewUid[primaryConf.views[0].uid] = locationLockID;\n+        primaryConf.zoomLocks.locksByViewUid[primaryConf.views[0].uid] = zoomLockID;\n+\n+        for (var i = 1; i < allConfigs.length; i++){ // Skip first one (== primaryConf), merge into it\n+            primaryConf.views.push(allConfigs[i].views[0]);\n+            primaryConf.locationLocks.locksByViewUid[allConfigs[i].views[0].uid] = locationLockID;\n+            primaryConf.zoomLocks.locksByViewUid[allConfigs[i].views[0].uid] = zoomLockID;\n+        }\n+\n+        // Forgot what this is for but is in viewConfigs after UI-initiated locking\n+        primaryConf.locationLocks.locksDict[locationLockID] = _.extend(_.object(_.map(_.pluck(primaryConf.views, 'uid'), function(uid){\n+            return [uid, [1550000000, 1550000000, 3030000]]; // TODO: Put somewhere else, figure out what these values should be.\n+        })), { 'uid' : locationLockID });\n+\n+        primaryConf.zoomLocks.locksDict[zoomLockID] = _.extend(_.object(_.map(_.pluck(primaryConf.views, 'uid'), function(uid){\n+            return [uid, [1550000000, 1550000000, 3030000]]; // TODO: Put somewhere else, figure out what these values should be.\n+        })), { 'uid' : zoomLockID });\n+\n+        return primaryConf;\n+    },\n+\n+    generateTopAnnotationTrack : function(trackBaseServer, { chromosome, annotation }){\n+        return {\n+            \"name\": annotation.name,\n+            //\"created\": \"2017-07-14T15:27:46.989053Z\",\n+            \"server\": trackBaseServer + \"/api/v1\",\n+            \"tilesetUid\": annotation.tilesetUid,\n+            \"type\": \"horizontal-gene-annotations\",\n+            \"options\": {\n+                \"labelColor\": \"black\",\n+                \"labelPosition\": \"hidden\",\n+                \"plusStrandColor\": \"blue\",\n+                \"minusStrandColor\": \"red\",\n+                \"trackBorderWidth\": 0,\n+                \"trackBorderColor\": \"black\",\n+                \"name\": \"Gene Annotations (hg38)\"\n+            },\n+            //\"width\": 20,\n+            \"height\": 55,\n+            \"header\": \"1\\t2\\t3\\t4\\t5\\t6\\t7\\t8\\t9\\t10\\t11\\t12\\t13\\t14\",\n+            \"position\": \"top\",\n+            \"orientation\": \"1d-horizontal\",\n+            \"uid\" : \"top-annotation-track\"\n+        };\n+    },\n+\n+    generateTopChromosomeTrack : function(trackBaseServer, { chromosome, annotation }){\n+        return {\n+            \"name\": chromosome.name,\n+            //\"created\": \"2017-07-17T14:16:45.346835Z\",\n+            \"server\": trackBaseServer + \"/api/v1\",\n+            \"tilesetUid\": chromosome.tilesetUid,\n+            \"type\": \"horizontal-chromosome-labels\",\n+            \"local\": true,\n+            \"minHeight\": 30,\n+            \"thumbnail\": null,\n+            \"options\": {},\n+            //\"width\": 20,\n+            \"height\": 30,\n+            \"position\": \"top\",\n+            \"orientation\": \"1d-horizontal\",\n+            \"uid\" : \"top-chromosome-track\"\n+        };\n+    },\n+\n+    // The following sub-objects' 'generateViewConfig' functions take in a tilesetUid (str or list of objects) + and options object (super-set of 'props' passed to HiGlassContainer).\n+\n+    mcool : {\n+\n+        generateCenterTrack : function(file, height, trackBaseServer){\n+            /*\n+            var tilesetUidStr;\n+            if (typeof file.higlass_uid !== 'string') {\n+                console.warn('File does not have higlass_uid, attempting to use its UUID instead.', file.uuid, file);\n+                tilesetUidStr = file.uuid;\n+                if (!tilesetUidStr) throw new Error(\"No UUID or higlass_uid available on file.\");\n+            } else {\n+                tilesetUidStr = file.higlass_uid;\n+            }\n+            */\n+            return {\n+                \"uid\": \"center-mcool-track\",\n+                \"type\": \"combined\",\n+                \"height\": height,\n+                \"contents\": [\n+                    {\n+                        \"server\": trackBaseServer + \"/api/v1\",\n+                        \"tilesetUid\": file.higlass_uid,\n+                        \"type\": \"heatmap\",\n+                        \"position\": \"center\",\n+                        \"uid\": \"GjuZed1ySGW1IzZZqFB9BA\", // ? Unnecessary?\n+                        \"name\" : file.display_title\n+                    }\n+                ],\n+                \"position\": \"center\"\n+            };\n+        },\n+\n+        generateLeftAnnotationTrack : function(trackBaseServer, { chromosome, annotation }){\n+            return {\n+                \"name\": annotation.name,\n+                //\"created\": \"2017-07-14T15:27:46.989053Z\",\n+                \"server\": trackBaseServer + \"/api/v1\",\n+                \"tilesetUid\": annotation.tilesetUid,\n+                \"uid\": \"left-annotation-track\",\n+                \"type\": \"vertical-gene-annotations\",\n+                \"options\": {\n+                    \"labelColor\": \"black\",\n+                    \"labelPosition\": \"hidden\",\n+                    \"plusStrandColor\": \"blue\",\n+                    \"minusStrandColor\": \"red\",\n+                    \"trackBorderWidth\": 0,\n+                    \"trackBorderColor\": \"black\",\n+                    \"name\": annotation.name\n+                },\n+                \"width\": 55,\n+                //\"height\": 20,\n+                \"header\": \"1\\t2\\t3\\t4\\t5\\t6\\t7\\t8\\t9\\t10\\t11\\t12\\t13\\t14\",\n+                \"position\": \"left\"\n+            };\n+        },\n+\n+        generateLeftChromosomeTrack : function(trackBaseServer, { chromosome, annotation }){\n+            return {\n+                \"name\": chromosome.name,\n+                //\"created\": \"2017-07-17T14:16:45.346835Z\",\n+                \"server\": trackBaseServer + \"/api/v1\",\n+                \"tilesetUid\": chromosome.tilesetUid,\n+                \"uid\": \"left-chromosome-track\",\n+                \"type\": \"vertical-chromosome-labels\",\n+                \"options\": {},\n+                \"width\": 20,\n+                //\"height\": 30,\n+                \"position\": \"left\"\n+            };\n+        },\n+\n+        generateView : function(file, options){\n+            var { height, baseUrl, supplementaryTracksBaseUrl, extraViewProps, index } = options;\n+\n+            if (Array.isArray(extraViewProps)){\n+                extraViewProps = extraViewProps[index];\n+            }\n+\n+            // Track definitions, default to human.\n+            \n+            var chromosomeAndAnnotation = HiGlassConfigurator.chromosomeAndAnnotationFromGenomeAssembly(file.genome_assembly);\n+\n+            var genomeSearchUrl = supplementaryTracksBaseUrl || baseUrl; // Currently available on HiGlass servers.\n+\n+            var initialDomains = HiGlassConfigurator.getInitialDomainsFromStorage(options);\n+\n+            const viewUid = \"view-4dn-mcool-\" + index;\n+            return {\n+                \"uid\": viewUid,\n+                \"initialXDomain\": initialDomains.x,\n+                \"initialYDomain\" : initialDomains.y,\n+                \"autocompleteSource\": \"/api/v1/suggest/?d=P0PLbQMwTYGy-5uPIQid7A&\",\n+                // TODO: Make this werk -- works if 'trackSourceServers' at top is set to higlass.io not 54.86.58.34\n+                \"genomePositionSearchBox\": {\n+                    \"autocompleteServer\": genomeSearchUrl + \"/api/v1\",\n+                    \"autocompleteId\": \"P0PLbQMwTYGy-5uPIQid7A\",\n+                    \"chromInfoServer\": genomeSearchUrl + \"/api/v1\",\n+                    \"chromInfoId\": (chromosomeAndAnnotation && chromosomeAndAnnotation.chromosome && chromosomeAndAnnotation.chromosome.infoid) || \"NOT SET\",\n+                    \"visible\": true\n+                },\n+                \"tracks\": {\n+                    \"top\" : [\n+                        HiGlassConfigurator.generateTopAnnotationTrack(genomeSearchUrl, chromosomeAndAnnotation),\n+                        HiGlassConfigurator.generateTopChromosomeTrack(genomeSearchUrl, chromosomeAndAnnotation)\n+                    ],\n+                    \"left\" : [\n+                        HiGlassConfigurator.mcool.generateLeftAnnotationTrack(genomeSearchUrl, chromosomeAndAnnotation),\n+                        HiGlassConfigurator.mcool.generateLeftChromosomeTrack(genomeSearchUrl, chromosomeAndAnnotation)\n+                    ],\n+                    \"center\": [ HiGlassConfigurator.mcool.generateCenterTrack(file, height - 50, baseUrl) ],\n+                    \"right\": [],\n+                    \"bottom\": []\n+                },\n+                \"layout\": HiGlassConfigurator.generateDefaultLayoutForViewItem(viewUid, (extraViewProps && extraViewProps.layout) || null)\n+            };\n+        },\n+\n+        /**\n+         * This function is used to generate a full viewConfig for the HiGlassComponent.\n+         * Only the \"center\" view/track is dynamically generated, with other tracks currently being hard-coded to higlass.io data (e.g. hg38 tracks).\n+         * ","path":"src/encoded/static/components/item-pages/components/HiGlassContainer.js","position":439,"original_position":439,"commit_id":"dbfdb14ca3efb08398cb1934068a4cebfa24ecbb","original_commit_id":"dbfdb14ca3efb08398cb1934068a4cebfa24ecbb","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Trailing spaces not allowed. (no-trailing-spaces)](https://app.codacy.com/app/4dn/fourfront/pullRequest?prid=1851759)","created_at":"2018-07-02T16:05:50Z","updated_at":"2018-07-02T16:05:50Z","html_url":"https://github.com/4dn-dcic/fourfront/pull/818#discussion_r199546984","pull_request_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/818","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/comments/199546984"},"html":{"href":"https://github.com/4dn-dcic/fourfront/pull/818#discussion_r199546984"},"pull_request":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/818"}}},"pull_request":{"url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/818","id":198723853,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4NzIzODUz","html_url":"https://github.com/4dn-dcic/fourfront/pull/818","diff_url":"https://github.com/4dn-dcic/fourfront/pull/818.diff","patch_url":"https://github.com/4dn-dcic/fourfront/pull/818.patch","issue_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/818","number":818,"state":"open","locked":false,"title":"Simplifying HiGlassContainer usage, initial setup of frontend BigWig files for ExpSet[.experiments_in_set] processed files.","user":{"login":"alexkb0009","id":10673737,"node_id":"MDQ6VXNlcjEwNjczNzM3","avatar_url":"https://avatars2.githubusercontent.com/u/10673737?v=4","gravatar_id":"","url":"https://api.github.com/users/alexkb0009","html_url":"https://github.com/alexkb0009","followers_url":"https://api.github.com/users/alexkb0009/followers","following_url":"https://api.github.com/users/alexkb0009/following{/other_user}","gists_url":"https://api.github.com/users/alexkb0009/gists{/gist_id}","starred_url":"https://api.github.com/users/alexkb0009/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexkb0009/subscriptions","organizations_url":"https://api.github.com/users/alexkb0009/orgs","repos_url":"https://api.github.com/users/alexkb0009/repos","events_url":"https://api.github.com/users/alexkb0009/events{/privacy}","received_events_url":"https://api.github.com/users/alexkb0009/received_events","type":"User","site_admin":false},"body":"- Simplifies JavaScript code / usage surrounding the \"HiGlassContainer\" (entry point / interface between our portal & data-structures and [HiGlassComponent.js](https://github.com/hms-dbmi/higlass/blob/develop/app/scripts/HiGlassComponent.js), which accepts a 'viewConfig' (JSON))\r\n  - **Old:** Required feeding in a `tilesetUid` (which could either be a string or list of objects with `tilesetUid` : string + per-file variables) + extra variables (`genomeAssembly`, `fileFormat`, etc.), out of which a viewConfig was auto-generated.\r\n   - Alternatively could always feed in a custom/completed viewConfig from elsewhere to `HiGlassContainer.props.viewConfig` which will override other props.\r\n  - **Now:** Feed in a list of files, each file must contain 'file_format', 'genome_assembly', 'display_title' (or accession), etc. out of which viewConfig is auto-generated.\r\n    - HiGlassContainer.js works by analyzing the `props.files` passed in and selecting a 'viewConfig generator function' to use based on file format of those files. viewConfig generator functions exist/support only a single mcool file (in a list) or many bigwig files; other cases will currently throw an exception.\r\n    - More files-to-viewConfig generator functions will be added, including perhaps a 'mcool file + many bigwig files' generator.\r\n\r\n---\r\n\r\n- BigWig files support *(front-end only; temp. disabled)*\r\n  - A 'bigwig files to viewConfig' generator function has been created, which adds a chromosome track to `top` position, and then a 1D track for each bigwig file into the `top` position as well. This generator function is automatically used if feed a list of files with `file_format` === \"bw\" or \"bg\" to `HiGlassContainer.props.files`.\r\n  - Currently supports only **one view of many bigwig files**, but will be able to support multiple views of multiple bigwig files at some point in future by allowing `HiGlassContainer.props.files` to accept nested arrays, e.g. `[[file1, file2, file3], [file4, file5, file6, file7]]`. (The MCOOL generator function will, however, generate a different view for each file passed in.)\r\n  - Currently BigWig files may only be fed from `ExperimentSetView.js` -> `ProcessedFilesStackedTableSection` component; once BigWig files working from back-end will refactor supplementary files table to be able to show BigWig files as well.","created_at":"2018-07-02T16:01:44Z","updated_at":"2018-07-02T16:05:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3bca535acd4caa14430a2b41ea4b032d4edadc8","assignee":null,"assignees":[],"requested_reviewers":[{"login":"carlvitzthum","id":19821645,"node_id":"MDQ6VXNlcjE5ODIxNjQ1","avatar_url":"https://avatars2.githubusercontent.com/u/19821645?v=4","gravatar_id":"","url":"https://api.github.com/users/carlvitzthum","html_url":"https://github.com/carlvitzthum","followers_url":"https://api.github.com/users/carlvitzthum/followers","following_url":"https://api.github.com/users/carlvitzthum/following{/other_user}","gists_url":"https://api.github.com/users/carlvitzthum/gists{/gist_id}","starred_url":"https://api.github.com/users/carlvitzthum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlvitzthum/subscriptions","organizations_url":"https://api.github.com/users/carlvitzthum/orgs","repos_url":"https://api.github.com/users/carlvitzthum/repos","events_url":"https://api.github.com/users/carlvitzthum/events{/privacy}","received_events_url":"https://api.github.com/users/carlvitzthum/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/818/commits","review_comments_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/818/comments","review_comment_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/comments{/number}","comments_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/818/comments","statuses_url":"https://api.github.com/repos/4dn-dcic/fourfront/statuses/dbfdb14ca3efb08398cb1934068a4cebfa24ecbb","head":{"label":"4dn-dcic:higlass_bw_1","ref":"higlass_bw_1","sha":"dbfdb14ca3efb08398cb1934068a4cebfa24ecbb","user":{"login":"4dn-dcic","id":23222469,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIyNDY5","avatar_url":"https://avatars3.githubusercontent.com/u/23222469?v=4","gravatar_id":"","url":"https://api.github.com/users/4dn-dcic","html_url":"https://github.com/4dn-dcic","followers_url":"https://api.github.com/users/4dn-dcic/followers","following_url":"https://api.github.com/users/4dn-dcic/following{/other_user}","gists_url":"https://api.github.com/users/4dn-dcic/gists{/gist_id}","starred_url":"https://api.github.com/users/4dn-dcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4dn-dcic/subscriptions","organizations_url":"https://api.github.com/users/4dn-dcic/orgs","repos_url":"https://api.github.com/users/4dn-dcic/repos","events_url":"https://api.github.com/users/4dn-dcic/events{/privacy}","received_events_url":"https://api.github.com/users/4dn-dcic/received_events","type":"Organization","site_admin":false},"repo":{"id":58398322,"node_id":"MDEwOlJlcG9zaXRvcnk1ODM5ODMyMg==","name":"fourfront","full_name":"4dn-dcic/fourfront","owner":{"login":"4dn-dcic","id":23222469,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIyNDY5","avatar_url":"https://avatars3.githubusercontent.com/u/23222469?v=4","gravatar_id":"","url":"https://api.github.com/users/4dn-dcic","html_url":"https://github.com/4dn-dcic","followers_url":"https://api.github.com/users/4dn-dcic/followers","following_url":"https://api.github.com/users/4dn-dcic/following{/other_user}","gists_url":"https://api.github.com/users/4dn-dcic/gists{/gist_id}","starred_url":"https://api.github.com/users/4dn-dcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4dn-dcic/subscriptions","organizations_url":"https://api.github.com/users/4dn-dcic/orgs","repos_url":"https://api.github.com/users/4dn-dcic/repos","events_url":"https://api.github.com/users/4dn-dcic/events{/privacy}","received_events_url":"https://api.github.com/users/4dn-dcic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/4dn-dcic/fourfront","description":"website for submitting and viewing genomic data","fork":false,"url":"https://api.github.com/repos/4dn-dcic/fourfront","forks_url":"https://api.github.com/repos/4dn-dcic/fourfront/forks","keys_url":"https://api.github.com/repos/4dn-dcic/fourfront/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4dn-dcic/fourfront/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4dn-dcic/fourfront/teams","hooks_url":"https://api.github.com/repos/4dn-dcic/fourfront/hooks","issue_events_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/events{/number}","events_url":"https://api.github.com/repos/4dn-dcic/fourfront/events","assignees_url":"https://api.github.com/repos/4dn-dcic/fourfront/assignees{/user}","branches_url":"https://api.github.com/repos/4dn-dcic/fourfront/branches{/branch}","tags_url":"https://api.github.com/repos/4dn-dcic/fourfront/tags","blobs_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/refs{/sha}","trees_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4dn-dcic/fourfront/statuses/{sha}","languages_url":"https://api.github.com/repos/4dn-dcic/fourfront/languages","stargazers_url":"https://api.github.com/repos/4dn-dcic/fourfront/stargazers","contributors_url":"https://api.github.com/repos/4dn-dcic/fourfront/contributors","subscribers_url":"https://api.github.com/repos/4dn-dcic/fourfront/subscribers","subscription_url":"https://api.github.com/repos/4dn-dcic/fourfront/subscription","commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/commits{/sha}","git_commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/commits{/sha}","comments_url":"https://api.github.com/repos/4dn-dcic/fourfront/comments{/number}","issue_comment_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/comments{/number}","contents_url":"https://api.github.com/repos/4dn-dcic/fourfront/contents/{+path}","compare_url":"https://api.github.com/repos/4dn-dcic/fourfront/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4dn-dcic/fourfront/merges","archive_url":"https://api.github.com/repos/4dn-dcic/fourfront/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4dn-dcic/fourfront/downloads","issues_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues{/number}","pulls_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls{/number}","milestones_url":"https://api.github.com/repos/4dn-dcic/fourfront/milestones{/number}","notifications_url":"https://api.github.com/repos/4dn-dcic/fourfront/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4dn-dcic/fourfront/labels{/name}","releases_url":"https://api.github.com/repos/4dn-dcic/fourfront/releases{/id}","deployments_url":"https://api.github.com/repos/4dn-dcic/fourfront/deployments","created_at":"2016-05-09T18:19:56Z","updated_at":"2018-07-02T02:46:55Z","pushed_at":"2018-07-02T16:01:44Z","git_url":"git://github.com/4dn-dcic/fourfront.git","ssh_url":"git@github.com:4dn-dcic/fourfront.git","clone_url":"https://github.com/4dn-dcic/fourfront.git","svn_url":"https://github.com/4dn-dcic/fourfront","homepage":null,"size":197465,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":5,"default_branch":"master"}},"base":{"label":"4dn-dcic:master","ref":"master","sha":"f77683f117531e0785c7425b4e69eefdcfa9dcf1","user":{"login":"4dn-dcic","id":23222469,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIyNDY5","avatar_url":"https://avatars3.githubusercontent.com/u/23222469?v=4","gravatar_id":"","url":"https://api.github.com/users/4dn-dcic","html_url":"https://github.com/4dn-dcic","followers_url":"https://api.github.com/users/4dn-dcic/followers","following_url":"https://api.github.com/users/4dn-dcic/following{/other_user}","gists_url":"https://api.github.com/users/4dn-dcic/gists{/gist_id}","starred_url":"https://api.github.com/users/4dn-dcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4dn-dcic/subscriptions","organizations_url":"https://api.github.com/users/4dn-dcic/orgs","repos_url":"https://api.github.com/users/4dn-dcic/repos","events_url":"https://api.github.com/users/4dn-dcic/events{/privacy}","received_events_url":"https://api.github.com/users/4dn-dcic/received_events","type":"Organization","site_admin":false},"repo":{"id":58398322,"node_id":"MDEwOlJlcG9zaXRvcnk1ODM5ODMyMg==","name":"fourfront","full_name":"4dn-dcic/fourfront","owner":{"login":"4dn-dcic","id":23222469,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIyNDY5","avatar_url":"https://avatars3.githubusercontent.com/u/23222469?v=4","gravatar_id":"","url":"https://api.github.com/users/4dn-dcic","html_url":"https://github.com/4dn-dcic","followers_url":"https://api.github.com/users/4dn-dcic/followers","following_url":"https://api.github.com/users/4dn-dcic/following{/other_user}","gists_url":"https://api.github.com/users/4dn-dcic/gists{/gist_id}","starred_url":"https://api.github.com/users/4dn-dcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/4dn-dcic/subscriptions","organizations_url":"https://api.github.com/users/4dn-dcic/orgs","repos_url":"https://api.github.com/users/4dn-dcic/repos","events_url":"https://api.github.com/users/4dn-dcic/events{/privacy}","received_events_url":"https://api.github.com/users/4dn-dcic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/4dn-dcic/fourfront","description":"website for submitting and viewing genomic data","fork":false,"url":"https://api.github.com/repos/4dn-dcic/fourfront","forks_url":"https://api.github.com/repos/4dn-dcic/fourfront/forks","keys_url":"https://api.github.com/repos/4dn-dcic/fourfront/keys{/key_id}","collaborators_url":"https://api.github.com/repos/4dn-dcic/fourfront/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/4dn-dcic/fourfront/teams","hooks_url":"https://api.github.com/repos/4dn-dcic/fourfront/hooks","issue_events_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/events{/number}","events_url":"https://api.github.com/repos/4dn-dcic/fourfront/events","assignees_url":"https://api.github.com/repos/4dn-dcic/fourfront/assignees{/user}","branches_url":"https://api.github.com/repos/4dn-dcic/fourfront/branches{/branch}","tags_url":"https://api.github.com/repos/4dn-dcic/fourfront/tags","blobs_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/refs{/sha}","trees_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/trees{/sha}","statuses_url":"https://api.github.com/repos/4dn-dcic/fourfront/statuses/{sha}","languages_url":"https://api.github.com/repos/4dn-dcic/fourfront/languages","stargazers_url":"https://api.github.com/repos/4dn-dcic/fourfront/stargazers","contributors_url":"https://api.github.com/repos/4dn-dcic/fourfront/contributors","subscribers_url":"https://api.github.com/repos/4dn-dcic/fourfront/subscribers","subscription_url":"https://api.github.com/repos/4dn-dcic/fourfront/subscription","commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/commits{/sha}","git_commits_url":"https://api.github.com/repos/4dn-dcic/fourfront/git/commits{/sha}","comments_url":"https://api.github.com/repos/4dn-dcic/fourfront/comments{/number}","issue_comment_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues/comments{/number}","contents_url":"https://api.github.com/repos/4dn-dcic/fourfront/contents/{+path}","compare_url":"https://api.github.com/repos/4dn-dcic/fourfront/compare/{base}...{head}","merges_url":"https://api.github.com/repos/4dn-dcic/fourfront/merges","archive_url":"https://api.github.com/repos/4dn-dcic/fourfront/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/4dn-dcic/fourfront/downloads","issues_url":"https://api.github.com/repos/4dn-dcic/fourfront/issues{/number}","pulls_url":"https://api.github.com/repos/4dn-dcic/fourfront/pulls{/number}","milestones_url":"https://api.github.com/repos/4dn-dcic/fourfront/milestones{/number}","notifications_url":"https://api.github.com/repos/4dn-dcic/fourfront/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/4dn-dcic/fourfront/labels{/name}","releases_url":"https://api.github.com/repos/4dn-dcic/fourfront/releases{/id}","deployments_url":"https://api.github.com/repos/4dn-dcic/fourfront/deployments","created_at":"2016-05-09T18:19:56Z","updated_at":"2018-07-02T02:46:55Z","pushed_at":"2018-07-02T16:01:44Z","git_url":"git://github.com/4dn-dcic/fourfront.git","ssh_url":"git@github.com:4dn-dcic/fourfront.git","clone_url":"https://github.com/4dn-dcic/fourfront.git","svn_url":"https://github.com/4dn-dcic/fourfront","homepage":null,"size":197465,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/818"},"html":{"href":"https://github.com/4dn-dcic/fourfront/pull/818"},"issue":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/issues/818"},"comments":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/issues/818/comments"},"review_comments":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/818/comments"},"review_comment":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/pulls/818/commits"},"statuses":{"href":"https://api.github.com/repos/4dn-dcic/fourfront/statuses/dbfdb14ca3efb08398cb1934068a4cebfa24ecbb"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"codacy-bot"}}