diff --git a/package-lock.json b/package-lock.json index ef0deff..78ba7b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "localzoom", - "version": "0.9.2", + "version": "0.9.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 040196b..f536cc8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "localzoom", - "version": "0.9.2", + "version": "0.9.3", "license": "MIT", "engines": { "node": ">=10.13.0" diff --git a/src/App.vue b/src/App.vue index 3cceab0..d893f76 100644 --- a/src/App.vue +++ b/src/App.vue @@ -42,6 +42,11 @@ export default { has_credible_sets: true, }; }, + computed: { + show_instructions() { + return window.location.hash.includes('instructions'); + }, + }, methods: { receiveTrackOptions(data_type, filename, display_name, source_configs, panel_configs, extra_plot_state) { if (!this.known_tracks.length) { @@ -95,6 +100,7 @@ export default { class="btn btn-link">Instructions
@@ -122,9 +128,9 @@ export default {
  • The data is hosted in a place that is reachable by web browser (eg local files or a service such as S3)
  • -
  • If using a remote URL, the host location must support byte range requests. (If using a remote URL, the host location must support cross-origin byte range requests. (how - to check) + to check) (how to configure cloud storage)
  • Your file contains all of the information required to draw a plot (see individual file format instructions for details).
  • diff --git a/src/components/GwasToolbar.vue b/src/components/GwasToolbar.vue index bf12fe6..4e418a4 100644 --- a/src/components/GwasToolbar.vue +++ b/src/components/GwasToolbar.vue @@ -22,7 +22,6 @@ export default { TabixAdder, }, props: { - // These two fields are sync bindings (this component notifies its parent of changes) genome_build: { type: String, default: 'GRCh37', @@ -37,11 +36,13 @@ export default { default: 6, }, // Track a list of studies that were added to the plot. Useful to prevent duplicates. - // TODO: move to live-binding provide/inject to support export widget / my.locuszoom.org ? known_tracks: { type: Array, default: () => [], // Each item is object of form { type, filename, display_name } }, + // Get a list of suggested entries for batch mode (useful in my.locuszoom.org, which pre-calculates top loci genome wide) + // Should fetch pre-computed top loci, and return list of [ {chr, start, end} ] entries + batch_region_getter: { type: Function, default: null }, }, data() { return { @@ -146,8 +147,6 @@ export default { @ready="receiveTabixReader" @fail="showMessage" /> - -
    + @ready="activateBatchMode"> + +
    + +
    @@ -295,7 +300,7 @@ export default { name="data-type" value="plink_ld" > - PLINK 1.9 LD (overlay on GWAS; see guide above) + PLINK 1.9 LD (overlay on GWAS; see instructions)