-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3463 from broadinstitute/bulk-load-igv
Bulk load igv
- Loading branch information
Showing
7 changed files
with
229 additions
and
52 deletions.
There are no files selected for viewing
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
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
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,44 @@ | ||
import React from 'react' | ||
import { connect } from 'react-redux' | ||
import { List, Segment } from 'semantic-ui-react' | ||
|
||
import FileUploadField, { validateUploadedFile } from 'shared/components/form/XHRUploaderField' | ||
import UploadFormPage from 'shared/components/page/UploadFormPage' | ||
|
||
import { getIgvUploadStats } from '../selectors' | ||
import { addIgv } from '../reducers' | ||
|
||
const mapStateToProps = state => ({ | ||
fields: [ | ||
{ | ||
name: 'mappingFile', | ||
validate: validateUploadedFile, | ||
component: FileUploadField, | ||
dropzoneLabel: ( | ||
<Segment basic textAlign="left"> | ||
Upload a file with desired IGV tracks. Include one row per track. | ||
For merged RNA tracks, include one row for coverage and one for junctions. | ||
<br /> | ||
Columns are as follows: | ||
<br /> | ||
<List ordered> | ||
<List.Item>Project</List.Item> | ||
<List.Item>Individual ID</List.Item> | ||
<List.Item>IGV Track File Path</List.Item> | ||
<List.Item> | ||
Optional: Sample ID if different from Individual ID. | ||
Used primarily for gCNV files to identify the sample in the batch path | ||
</List.Item> | ||
</List> | ||
</Segment> | ||
), | ||
}, | ||
], | ||
uploadStats: getIgvUploadStats(state), | ||
}) | ||
|
||
const mapDispatchToProps = { | ||
onSubmit: addIgv, | ||
} | ||
|
||
export default connect(mapStateToProps, mapDispatchToProps)(UploadFormPage) |
Oops, something went wrong.