You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to figure out a way to refactor the higlass code in order to publish smaller packages (e.g., @higlass/core, @higlass/data-fetchers, etc) which will be helpful for other projects that use only a subset of higlass. But I found many cyclic events happening, especially on available-for-plugins.js, which makes it challenging to separate packages.
One example I found is that a getDataFetcher function (from get-data-fetcher.js) uses an AVAILABLE_FOR_PLUGINS object (from available-for-plugins), but AVAILABLE_FOR_PLUGINS itself also stores the getDataFetcher function.
I am unsure if AVAILABLE_FOR_PLUGINS.getDataFetcher() is used at all from plugin tracks or data fetchers, but it is at least not used in the higlass/higlass repo. Several plugin repos under higlass (e.g., higlass/higlass-sequence) do not use it, too. I think we could remove getDataFetcher from AVAILABLE_FOR_PLUGINS if we are certain it is not used, or we will need to restructure them.
I am trying to figure out a way to refactor the higlass code in order to publish smaller packages (e.g.,
@higlass/core
,@higlass/data-fetchers
, etc) which will be helpful for other projects that use only a subset of higlass. But I found many cyclic events happening, especially onavailable-for-plugins.js
, which makes it challenging to separate packages.One example I found is that a
getDataFetcher
function (fromget-data-fetcher.js
) uses anAVAILABLE_FOR_PLUGINS
object (fromavailable-for-plugins
), butAVAILABLE_FOR_PLUGINS
itself also stores thegetDataFetcher
function.I am unsure if
AVAILABLE_FOR_PLUGINS.getDataFetcher()
is used at all from plugin tracks or data fetchers, but it is at least not used in thehiglass/higlass
repo. Several plugin repos underhiglass
(e.g.,higlass/higlass-sequence
) do not use it, too. I think we could removegetDataFetcher
fromAVAILABLE_FOR_PLUGINS
if we are certain it is not used, or we will need to restructure them.cc @manzt
The text was updated successfully, but these errors were encountered: