-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow URLs to be inputted as BED files #329
Merged
Merged
Changes from 7 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
485c780
allow selection dropdown to have creatable elements
ducku 9df4962
add processing bed URLs
ducku c518ef5
restore progress
ducku 37dd0fc
prepare_chunk now includes chunk file names in chunk directory
ducku 74bb5d9
implement download file
ducku 0718503
let server get chunk path from temp directory
ducku 86739f2
allow tracks to autofill from downloaded chunks
ducku 2ac003e
fetch get wrapper and safer url concatenation
ducku 02575e2
chunks from bedURLs are downloaded as needed, instead of all at once …
ducku 734185c
temporary directories containing downloaded chunk data are now hashed…
ducku 8230ea9
use strict equality
ducku f3ff321
Merge remote-tracking branch 'origin/master' into HEAD
adamnovak f41941f
Centralize BED chunk path logic, and pass URLs/paths around instead o…
adamnovak 69a836a
Restore error handling middleware by eliminating async API handlers
adamnovak b651a29
Switch to a secure hash function
adamnovak b2161ca
Bring back cactus.bed chunk data and fix handling BED regions without…
adamnovak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
chunk-1_0_ref_0_1926.gam | ||
chunk.vg | ||
chunk_0_ref_0_1926.annotate.txt | ||
chunk_0_ref_0_1926.gam | ||
regions.tsv | ||
tracks.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ref 0 1922 chunk-ref-1-20/chunk_0_ref_0_1921.gam chunk-ref-1-20/chunk_0_ref_0_1921.annotate.txt | ||
ref 0 1927 chunk-ref-1-20/chunk_0_ref_0_1926.gam chunk-ref-1-20/chunk_0_ref_0_1926.annotate.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||
---|---|---|---|---|
@@ -1,6 +1,7 @@ | ||||
import React, { Component } from "react"; | ||||
import PropTypes from "prop-types"; | ||||
import Select from "react-select"; | ||||
//import Select from "react-select"; | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||
import CreatableSelect from 'react-select/creatable'; | ||||
|
||||
/** | ||||
* A searchable selection dropdown component. | ||||
|
@@ -63,13 +64,16 @@ export class SelectionDropdown extends Component { | |||
}; | ||||
|
||||
return ( | ||||
<Select | ||||
<CreatableSelect | ||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Has everywhere we use this been updated to cope with/disallow creating novel options? |
||||
getNewOptionData={(inputValue, optionLabel) => ({ | ||||
label: optionLabel, | ||||
value: inputValue, | ||||
})} | ||||
id={this.props.id} | ||||
inputId={this.props.inputId} | ||||
className={this.props.className} | ||||
value={ | ||||
dropdownOptions.find((option) => option.value === this.props.value) || | ||||
{} | ||||
dropdownOptions.find((option) => option.value === this.props.value) || {label: this.props.value , value: this.props.value} | ||||
} | ||||
styles={styles} | ||||
isSearchable={true} | ||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have our own loop just to stop
chunk_contents.txt
from listing itself?