@sjcrh/proteinpaint-server 2.30.4 → 2.30.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/genome/hg19.js +3 -3
  2. package/genome/hg38.js +3 -3
  3. package/genome/hg38.test.js +3 -3
  4. package/package.json +1 -1
  5. package/routes/burden.ts +5 -2
  6. package/routes/gdc.maf.ts +39 -26
  7. package/routes/gdc.mafBuild.ts +5 -5
  8. package/routes/hicdata.ts +113 -0
  9. package/routes/hicstat.ts +55 -0
  10. package/routes/termdb.categories.ts +30 -6
  11. package/routes/termdb.getpercentile.ts +117 -0
  12. package/routes/termdb.termbyid.ts +5 -1
  13. package/server.js +1 -1
  14. package/src/serverconfig.js +0 -19
  15. package/cards/2dmaf.json +0 -37
  16. package/cards/README.md +0 -15
  17. package/cards/ai.json +0 -37
  18. package/cards/arc.json +0 -34
  19. package/cards/ase.json +0 -99
  20. package/cards/bam.json +0 -264
  21. package/cards/bampile.json +0 -22
  22. package/cards/bedj.json +0 -304
  23. package/cards/bigwig.json +0 -70
  24. package/cards/citations.json +0 -39
  25. package/cards/civicBtn.json +0 -15
  26. package/cards/databrowser.json +0 -276
  27. package/cards/disco.json +0 -69
  28. package/cards/dnanexusTips.txt +0 -221
  29. package/cards/exprank.json +0 -64
  30. package/cards/featuredDatasets.json +0 -84
  31. package/cards/fusioneditor.json +0 -34
  32. package/cards/gdcbam.json +0 -23
  33. package/cards/genefusion.json +0 -57
  34. package/cards/genomepaint.json +0 -122
  35. package/cards/hic.json +0 -79
  36. package/cards/index.json +0 -327
  37. package/cards/junction.json +0 -98
  38. package/cards/lollipop.json +0 -327
  39. package/cards/maf.timeline.json +0 -19
  40. package/cards/mavb.json +0 -47
  41. package/cards/nciGdcBtn.json +0 -21
  42. package/cards/pcmBtn.json +0 -16
  43. package/cards/ped2Btn.json +0 -16
  44. package/cards/pgv.json +0 -59
  45. package/cards/scatterplot.json +0 -31
  46. package/cards/singlecell.json +0 -25
  47. package/cards/study.json +0 -34
  48. package/cards/survivorBtn.json +0 -18
  49. package/cards/svview.txt +0 -101
  50. package/cards/tkFeatures.json +0 -92
  51. package/cards/tklist.json +0 -27
@@ -1,18 +0,0 @@
1
- {
2
- "button": {
3
- "name": "Survivorship Study",
4
- "intro": "The survivorship dataset contains clinical, genomic, and patient-reported data from the <a href='https://sjlife.stjude.org/' target='sjlife'>St. Jude Life study</a> (SJLife) and <a href='https://ccss.stjude.org/' target='CCSS'> Childhood Cancer Survivor Study</a> (CCSS). The interface offers data analysis tools like regression analysis (linear, logistic, and Cox) and interactive statistical plots.",
5
- "searchBar": "none",
6
- "availableGenomes": ["hg38"],
7
- "runargs": {
8
- "nobox":true,
9
- "noheader": true,
10
- "mass": {
11
- "state": {
12
- "dslabel": "SJLife",
13
- "genome": "hg38"
14
- }
15
- }
16
- }
17
- }
18
- }
package/cards/svview.txt DELETED
@@ -1,101 +0,0 @@
1
- <style></style>
2
- <div style="line-height: 1.5;">
3
- <h1>Review Structural Variations with Sequencing Coverage</h1>
4
- <p style="font-style:oblique; font-weight: 300; margin: 0vw 5vw; text-align:center; color: #403f3f;">
5
- Starting with a SV file from a set of samples and a file declaring the BigWig files for the same set of samples, a Python script generates a JSON file, zip file, and a results table in the csv file for ProteinPaint. The JSON file and zip files support the SV views for the left and right breakpoints, viewable from two URLs in the results table.
6
- </p>
7
- <br>
8
- <div style="margin:0vw 2vw; display: flex; justify-content: center; padding: 10px;">
9
- <button type="button" onclick="window.open('https://proteinpaint.stjude.org/ppdemo/usecases/svview/svViewPyScript.tar.gz','_self', 'download')" style="background-color: #d0e3ff; padding: 8px; border-radius: 3px; border: none; display: inline-block;margin: 0px 10px; font-size: 1.1em;">Download Script</button>
10
-
11
- <button type="button" onclick="window.open('https://proteinpaint.stjude.org/ppdemo/usecases/svview/svViewDemoFiles.tar.gz','_self', 'download')" style="background-color: #d0e3ff; padding: 8px; border-radius: 3px; border: none; display: inline-block;margin: 0px 10px; font-size: 1.1em;">Download Example Files</button>
12
- </div>
13
- <div margin: 2vw;">
14
- <h2 style="font-size: 1.2em;">ProteinPaint</h2>
15
- <p style="margin-left: 2vw;">
16
- A local ProteinPaint instance or access to St. Jude internal servers is required. For external users, please contact the <a href="https://www.stjude.org/research/why-st-jude/shared-resources/technology-licensing.html?vgo_ee=hLWJYBlzZntKof%2BseczFn7cjnEkk7LmxyEtgY0F64l8%3D" target="_blank">Office of Technology Licensing</a> for assistance. St. Jude internal users, please use this <a href="https://wiki.stjude.org/display/compbio/Displaying+custom+tracks+on+internal+ProteinPaint+server" target="_blank">wiki page</a> for instructions.
17
- </p>
18
-
19
- <h2 style="font-size: 1.2em";">Input Files</h2>
20
- <p style="margin-left: 2vw; font-size: 1em;">
21
- To recreate this use case, download the example files from the blue <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> Download Example Files</span> button above. <br><br>The script requires two <em>tab delimited</em> files.
22
- </p>
23
- <div style="margin: 0vw 2vw;">
24
- <ul style="list-style-type: none;">
25
- <li>
26
- <strong>SV varient table:</strong> with the following columns: <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;">sample, chr_a, position_a, strand_a, chr_b, position_b, strand_b</span>. Here is an example of a SV varient table:<br><br>
27
- <pre style="margin: 0vw 1vw; font-size: 0.9em; opacity: 0.6; white-space:pre-wrap;">
28
- sample chr_a position_a strand_a chr_b position_b strand_b
29
- SJALL011121_D1 chr10 81841249 + chr10 81845838 +
30
- </pre>
31
- </li>
32
- <li>
33
- <strong>BigWig track table (<em>no header</em>):</strong> with the following columns: sample, assay (e.g. WGS, WES, or RNA), and relative file path under the tp directory. Here is an example of a BigWig table:<br><br>
34
- <pre style="margin: 0vw 1vw; font-size: 0.9em; opacity: 0.6; white-space:pre-wrap;">
35
- SJALL011121_D1 WGS proteinpaint_demo/usecase/svview/SJALL011121_D1.bw
36
- SJALL011121_G1 WGS proteinpaint_demo/usecase/svview/SJALL011121_G1.bw
37
- SJALL011121_R1 WGS proteinpaint_demo/usecase/svview/SJALL011121_R1.bw
38
- SJALL011121_D1 RNA proteinpaint_demo/usecase/svview/SJALL011121_D1_RNA.bw
39
- </pre>
40
- </li>
41
- </ul>
42
- </div>
43
-
44
- <h2 style="font-size: 1.2em;">Run Script</h2>
45
- <p style="margin-left: 2vw;font-size: 1em;">
46
- Download the <a href="https://proteinpaint.stjude.org/ppdemo/usecases/svview/svViewPyScript.tar.gz" target="_self" download>SV view script</a>. Run the script from the command line with the following arguments:
47
- </p>
48
- <ul style="margin-left: 2vw;">
49
- <li>
50
- SV table (<span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> --sv</span> or <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> -v</span>)
51
- </li>
52
- <li>
53
- BigWig table (<span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> --tracks</span> or <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> -t</span>)
54
- </li>
55
- <li>
56
- Directory for the output files (<span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> --outDir</span> or <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> -d</span>) - <em>Must be a relative file path under the tp directory</em>
57
- </li>
58
- <li>
59
- File name for results (<span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> --out</span> or <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> -o</span>) - <em>Will appear in the working directory unless a full file path is provided</em>
60
- </li>
61
- <li>
62
- Genome (<span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> --genome</span> or <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> -g</span>)
63
- </li>
64
- </ul>
65
- <p style="margin-left: 2vw;font-size: 1em;">
66
- Below are usage examples.
67
- </p>
68
-
69
- <pre style="margin: 0vw 3vw; font-size: 0.9em; opacity: 0.6; white-space:pre-wrap;">
70
- python3 sv_review.py --sv sv.example --track bx.example --outDir ~/tp/proteinpaint_demo/usecases/svview --out myResults --genome hg19
71
- </pre>
72
- <p style="margin-left: 3vw;font-size: 1em;">
73
- A file path for the results is provided in this example:
74
- </p>
75
- <pre style="margin: 0vw 3vw; font-size: 0.9em; opacity: 0.6; white-space:pre-wrap;">
76
- python3 sv_review.py -v sv.example -t bx.example -d ~/tp/proteinpaint_demo/usecases/svview -o ~/tp/proteinpaint_demo/usecases/svview/myResults -g hg19
77
- </pre>
78
-
79
- <h2 style="font-size: 1.2em;">Output and Results</h2>
80
- <p style="margin-left: 2vw;font-size: 1em;">
81
- Support files for the SV view, <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> SV.gz</span> file and <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> SV.gz.tbi</span> with the SV data as well as a <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> mds.json</span> (see code example below) will appear in the output directory (i.e. from the <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> --outDir</span> or <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> -d</span> argument).
82
- </p>
83
- <pre style="margin: 0vw 3vw; font-size: 0.9em; opacity: 0.6; white-space:pre-wrap;">
84
- {
85
- "name": "SV review",
86
- "svcnvfile": "proteinpaint_demo/usecases/svview/SV.gz",
87
- "type": "mdssvcnv"
88
- }
89
- </pre>
90
- <p style="margin-left: 2vw;font-size: 1em;">
91
- The results table is found in the csv file, named from the <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> --out</span> or <span style="font-family:monospace; font-size:1.25em; opacity: 0.6;"> -o</span> argument.
92
- </p>
93
- <img style="width: 63vw; margin: 0vw 2vw;" src="https://proteinpaint.stjude.org/ppdemo/usecases/svview/svview_images/output.png">
94
-
95
- <h2 style="font-size: 1.2em;">SV View Example</h2>
96
- <p style="margin-left: 2vw;font-size: 1em;">
97
- Open the results from the csv file. Click on the links to review the SV views for both the left and right breakpoints. Shown below is the URL for the left position from the example data.
98
- </p>
99
- <img style="width: 60vw; margin: 0vw 2vw;" src="https://proteinpaint.stjude.org/ppdemo/usecases/svview/svview_images/leftURL.png">
100
- </div>
101
- </div>
@@ -1,92 +0,0 @@
1
- {
2
- "intro": "<b>The examples below demonstrate optional track arguments with a bigwig track. Apply these arguments to <em>any</em> track.</b>",
3
- "ppcalls": [
4
- {
5
- "label": "Add a Legend Image",
6
- "message": "<div style='line-height:1.5em;'>Include the <span style='font-family: Courier; opacity: 0.6;'>legendimg</span> argument to show an image in the legend under the track. <span style='font-family: Courier; opacity: 0.6;'>legendimg</span> may appear in the track object to annotate individual tracks or outside of <span style='font-family: Courier; opacity: 0.6;'>tracks</span> for images descripting the entire visualization. Clicking on the image expands and contracts the size.</div>",
7
- "runargs": {
8
- "parseurl": true,
9
- "block": true,
10
- "nobox": 1,
11
- "noheader": 1,
12
- "genome": "hg19",
13
- "nativetracks": "RefGene",
14
- "legendimg": {
15
- "name": "GenomePaint",
16
- "file": "proteinpaint_demo/gpPaper.jpg",
17
- "width": 800,
18
- "height": 800
19
- },
20
- "tracks": [
21
- {
22
- "type": "bigwig",
23
- "file": "proteinpaint_demo/hg19/bigwig/file.bw",
24
- "name": "BigWig Demo",
25
- "height": 100
26
- }
27
- ]
28
- },
29
- "testSpec": {
30
- "expected": {"image": 2 }
31
- }
32
- },
33
- {
34
- "label": "Show Additional Track Information",
35
- "message": "<div style='line-height:1.5em;'>To create a tooltip over the track name, include the <span style='font-family: Courier; opacity: 0.6;'>list_description</span> array within the track object. Hover over the track name on the lefthand side to see the tooltip. Clicking on the track name prevents the tooltip from disappearing.</div>",
36
- "runargs": {
37
- "parseurl": true,
38
- "block": true,
39
- "nobox": 1,
40
- "noheader": 1,
41
- "genome": "hg19",
42
- "nativetracks":"refgene",
43
- "tracks": [
44
- {
45
- "type": "bigwig",
46
- "file": "proteinpaint_demo/hg19/bigwig/file.bw",
47
- "name": "BigWig Demo",
48
- "height": 100,
49
- "list_description":[
50
- {
51
- "k":"Custom Label 1",
52
- "v":"Information about this track"
53
- },
54
- {
55
- "k":"Custom Label 2",
56
- "v":"Information about this track"
57
- }
58
- ]
59
- }
60
- ]
61
- },
62
- "testSpec": {
63
- "expected": {"image": 2}
64
- }
65
- },
66
- {
67
- "label": "Highlight Genomic Regions",
68
- "message": "<div>Highlight multiple regions in the genome browser by defining regions in the <span style='font-family: Courier; opacity: 0.6;'>hlregions</span> array.</div>",
69
- "urlparam": "?block=on&genome=hg19&bigwigfile=BigWig_Demo,proteinpaint_demo/hg19/bigwig/file.bw&hlregion=chr17:7575049-7576692,chr17:7578987-7580630",
70
- "runargs": {
71
- "parseurl": true,
72
- "block": true,
73
- "nobox": 1,
74
- "noheader": 1,
75
- "genome": "hg19",
76
- "hlregions": ["chr17:7575049-7576692","chr17:7578987-7580630"],
77
- "nativetracks":"refgene",
78
- "tracks": [
79
- {
80
- "type": "bigwig",
81
- "file": "proteinpaint_demo/hg19/bigwig/file.bw",
82
- "name": "BigWig Demo",
83
- "height": 100
84
- }
85
- ]
86
- },
87
- "testSpec": {
88
- "expected": {"image": 2}
89
- }
90
- }
91
- ]
92
- }
package/cards/tklist.json DELETED
@@ -1,27 +0,0 @@
1
- {
2
- "ppcalls": [
3
- {
4
- "download":"https://proteinpaint.stjude.org/ppdemo/hg19/tklist/tklistDemoData.tar.gz",
5
- "urlparam": "?genome=hg19&block=1&tkjsonfile=proteinpaint_demo/hg19/tklist/tracks.json",
6
- "jsonpath": "proteinpaint_demo/hg19/tklist/tracks.json",
7
- "runargs": {
8
- "block": 1,
9
- "nobox": 1,
10
- "noheader": 1,
11
- "genome": "hg19",
12
- "nativetracks":"refgene",
13
- "tkjsonfile": "proteinpaint_demo/hg19/tklist/tracks.json"
14
- },
15
- "testSpec": {
16
- "expected": {"image": 2 }
17
- }
18
- }
19
- ],
20
- "intro": "<p>To view the facet table:</p><ul><li>Click on the <button>Tracks</button> in the genome browser toolbar</li><li>A button appears under FACET. Click on <button style='border:none;font-size:15px;padding:5px'>77 tracks from My facet table</button></li><li>Launch tracks by clicking on individual cells, samples (row labels), or assays (column labels).</li></ul>",
21
- "buttons": [
22
- {
23
- "name": "Documentation",
24
- "link": "https://docs.google.com/document/d/1e0JVdcf1yQDZst3j77Xeoj_hDN72B6XZ1bo_cAd2rss/edit#heading=h.pkybixxj4p6"
25
- }
26
- ]
27
- }