Spaces:
Running
Running
supercat666
commited on
Commit
•
45e4726
1
Parent(s):
5befd90
add plots
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- app.py +93 -33
- cas9on.py +61 -54
- igv_component/.babelrc +0 -3
- igv_component/__init__.py +0 -16
- igv_component/build/index.html +0 -1
- igv_component/build/main.js +0 -0
- igv_component/build/main.js.LICENSE.txt +0 -77
- igv_component/igvcomponent.js +0 -81
- igv_component/node_modules/.bin/acorn +0 -12
- igv_component/node_modules/.bin/acorn.cmd +0 -17
- igv_component/node_modules/.bin/acorn.ps1 +0 -28
- igv_component/node_modules/.bin/arrow2csv +0 -12
- igv_component/node_modules/.bin/arrow2csv.cmd +0 -17
- igv_component/node_modules/.bin/arrow2csv.ps1 +0 -28
- igv_component/node_modules/.bin/browserslist +0 -12
- igv_component/node_modules/.bin/browserslist.cmd +0 -17
- igv_component/node_modules/.bin/browserslist.ps1 +0 -28
- igv_component/node_modules/.bin/envinfo +0 -12
- igv_component/node_modules/.bin/envinfo.cmd +0 -17
- igv_component/node_modules/.bin/envinfo.ps1 +0 -28
- igv_component/node_modules/.bin/flat +0 -12
- igv_component/node_modules/.bin/flat.cmd +0 -17
- igv_component/node_modules/.bin/flat.ps1 +0 -28
- igv_component/node_modules/.bin/he +0 -12
- igv_component/node_modules/.bin/he.cmd +0 -17
- igv_component/node_modules/.bin/he.ps1 +0 -28
- igv_component/node_modules/.bin/html-minifier-terser +0 -12
- igv_component/node_modules/.bin/html-minifier-terser.cmd +0 -17
- igv_component/node_modules/.bin/html-minifier-terser.ps1 +0 -28
- igv_component/node_modules/.bin/import-local-fixture +0 -12
- igv_component/node_modules/.bin/import-local-fixture.cmd +0 -17
- igv_component/node_modules/.bin/import-local-fixture.ps1 +0 -28
- igv_component/node_modules/.bin/jsesc +0 -12
- igv_component/node_modules/.bin/jsesc.cmd +0 -17
- igv_component/node_modules/.bin/jsesc.ps1 +0 -28
- igv_component/node_modules/.bin/json5 +0 -12
- igv_component/node_modules/.bin/json5.cmd +0 -17
- igv_component/node_modules/.bin/json5.ps1 +0 -28
- igv_component/node_modules/.bin/loose-envify +0 -12
- igv_component/node_modules/.bin/loose-envify.cmd +0 -17
- igv_component/node_modules/.bin/loose-envify.ps1 +0 -28
- igv_component/node_modules/.bin/node-which +0 -12
- igv_component/node_modules/.bin/node-which.cmd +0 -17
- igv_component/node_modules/.bin/node-which.ps1 +0 -28
- igv_component/node_modules/.bin/parser +0 -12
- igv_component/node_modules/.bin/parser.cmd +0 -17
- igv_component/node_modules/.bin/parser.ps1 +0 -28
- igv_component/node_modules/.bin/regjsparser +0 -12
- igv_component/node_modules/.bin/regjsparser.cmd +0 -17
- igv_component/node_modules/.bin/regjsparser.ps1 +0 -28
app.py
CHANGED
@@ -6,11 +6,14 @@ import cas12
|
|
6 |
import pandas as pd
|
7 |
import streamlit as st
|
8 |
import plotly.graph_objs as go
|
9 |
-
|
|
|
10 |
import numpy as np
|
11 |
from pathlib import Path
|
12 |
import zipfile
|
13 |
import io
|
|
|
|
|
14 |
|
15 |
|
16 |
# title and documentation
|
@@ -23,6 +26,38 @@ selected_model = st.selectbox('Select CRISPR model:', CRISPR_MODELS, key='select
|
|
23 |
cas9on_path = 'cas9_model/on-cla.h5'
|
24 |
cas12_path = 'cas12_model/Seq_deepCpf1_weights.h5'
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
@st.cache_data
|
27 |
def convert_df(df):
|
28 |
# IMPORTANT: Cache the conversion to prevent computation on every rerun
|
@@ -237,38 +272,63 @@ if selected_model == 'Cas9':
|
|
237 |
# Display the plot
|
238 |
st.plotly_chart(fig)
|
239 |
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
|
273 |
elif target_selection == 'off-target':
|
274 |
ENTRY_METHODS = dict(
|
|
|
6 |
import pandas as pd
|
7 |
import streamlit as st
|
8 |
import plotly.graph_objs as go
|
9 |
+
import coolbox
|
10 |
+
from coolbox.api import *
|
11 |
import numpy as np
|
12 |
from pathlib import Path
|
13 |
import zipfile
|
14 |
import io
|
15 |
+
import pygenometracks.tracks as pygtk
|
16 |
+
from pygenometracks.main import plot_tracks
|
17 |
|
18 |
|
19 |
# title and documentation
|
|
|
26 |
cas9on_path = 'cas9_model/on-cla.h5'
|
27 |
cas12_path = 'cas12_model/Seq_deepCpf1_weights.h5'
|
28 |
|
29 |
+
#plot functions
|
30 |
+
def generate_coolbox_plot(bigwig_path, region, output_image_path):
|
31 |
+
frame = CoolBox()
|
32 |
+
frame += BigWig(bigwig_path)
|
33 |
+
frame.plot(region, savefig=output_image_path)
|
34 |
+
|
35 |
+
def generate_pygenometracks_plot(bigwig_file_path, region, output_image_path):
|
36 |
+
# Define the configuration for pyGenomeTracks
|
37 |
+
tracks = """
|
38 |
+
[bigwig]
|
39 |
+
file = {}
|
40 |
+
height = 4
|
41 |
+
color = blue
|
42 |
+
min_value = 0
|
43 |
+
max_value = 10
|
44 |
+
""".format(bigwig_file_path)
|
45 |
+
|
46 |
+
# Write the configuration to a temporary INI file
|
47 |
+
config_file_path = "pygenometracks.ini"
|
48 |
+
with open(config_file_path, 'w') as configfile:
|
49 |
+
configfile.write(tracks)
|
50 |
+
|
51 |
+
# Define the region to plot
|
52 |
+
region_dict = {'chrom': region.split(':')[0],
|
53 |
+
'start': int(region.split(':')[1].split('-')[0]),
|
54 |
+
'end': int(region.split(':')[1].split('-')[1])}
|
55 |
+
|
56 |
+
# Generate the plot
|
57 |
+
plot_tracks(tracks_file=config_file_path,
|
58 |
+
region=region_dict,
|
59 |
+
out_file_name=output_image_path)
|
60 |
+
|
61 |
@st.cache_data
|
62 |
def convert_df(df):
|
63 |
# IMPORTANT: Cache the conversion to prevent computation on every rerun
|
|
|
272 |
# Display the plot
|
273 |
st.plotly_chart(fig)
|
274 |
|
275 |
+
if 'gene_sequence' in st.session_state and st.session_state['gene_sequence']:
|
276 |
+
gene_symbol = st.session_state['current_gene_symbol']
|
277 |
+
gene_sequence = st.session_state['gene_sequence']
|
278 |
+
df = st.session_state['on_target_results'] # Make sure df is the DataFrame you want to use
|
279 |
+
|
280 |
+
# Define file paths
|
281 |
+
genbank_file_path = f"{gene_symbol}_crispr_targets.gb"
|
282 |
+
bed_file_path = f"{gene_symbol}_crispr_targets.bed"
|
283 |
+
csv_file_path = f"{gene_symbol}_crispr_predictions.csv"
|
284 |
+
bigwig_file_path = f"{gene_symbol}_crispr_predictions.bw"
|
285 |
+
|
286 |
+
# Generate files
|
287 |
+
cas9on.generate_genbank_file_from_df(df, gene_sequence, gene_symbol, genbank_file_path)
|
288 |
+
cas9on.create_bed_file_from_df(df, bed_file_path)
|
289 |
+
cas9on.create_csv_from_df(df, csv_file_path)
|
290 |
+
|
291 |
+
# Assuming create_bigwig_from_df is a function that generates a BigWig file from the DataFrame
|
292 |
+
cas9on.create_bigwig_from_df(df, bigwig_file_path)
|
293 |
+
|
294 |
+
# Prepare an in-memory buffer for the ZIP file
|
295 |
+
zip_buffer = io.BytesIO()
|
296 |
+
with zipfile.ZipFile(zip_buffer, 'w', zipfile.ZIP_DEFLATED) as zip_file:
|
297 |
+
# For each file, add it to the ZIP file
|
298 |
+
zip_file.write(genbank_file_path)
|
299 |
+
zip_file.write(bed_file_path)
|
300 |
+
zip_file.write(csv_file_path)
|
301 |
+
zip_file.write(bigwig_file_path)
|
302 |
+
|
303 |
+
# Important: move the cursor to the beginning of the BytesIO buffer before reading it
|
304 |
+
zip_buffer.seek(0)
|
305 |
+
|
306 |
+
# Specify the region you want to visualize
|
307 |
+
region_to_visualize = "chr1:1000000-2000000" # Example region, adjust as needed
|
308 |
+
|
309 |
+
# Path for the temporary plot image
|
310 |
+
plot_image_path = "coolbox_plot.png"
|
311 |
+
|
312 |
+
# Generate the CoolBox plot
|
313 |
+
generate_coolbox_plot(bigwig_file_path, region_to_visualize, plot_image_path)
|
314 |
+
|
315 |
+
# Display the plot image in Streamlit
|
316 |
+
st.image(plot_image_path)
|
317 |
+
|
318 |
+
# Generate the pyGenomeTracks plot
|
319 |
+
pygenometracks_plot_path = "pygenometracks_plot.png"
|
320 |
+
generate_pygenometracks_plot(bigwig_file_path, region_to_visualize, pygenometracks_plot_path)
|
321 |
+
|
322 |
+
# Display the pyGenomeTracks plot image in Streamlit
|
323 |
+
st.image(pygenometracks_plot_path)
|
324 |
+
|
325 |
+
# Display the download button for the ZIP file
|
326 |
+
st.download_button(
|
327 |
+
label="Download GenBank, BED, CSV, and BigWig files as ZIP",
|
328 |
+
data=zip_buffer.getvalue(),
|
329 |
+
file_name=f"{gene_symbol}_files.zip",
|
330 |
+
mime="application/zip"
|
331 |
+
)
|
332 |
|
333 |
elif target_selection == 'off-target':
|
334 |
ENTRY_METHODS = dict(
|
cas9on.py
CHANGED
@@ -10,6 +10,7 @@ from Bio.SeqFeature import SeqFeature, FeatureLocation
|
|
10 |
from Bio.Seq import Seq
|
11 |
from keras.models import load_model
|
12 |
import random
|
|
|
13 |
|
14 |
# configure GPUs
|
15 |
for gpu in tf.config.list_physical_devices('GPU'):
|
@@ -145,57 +146,63 @@ def process_gene(gene_symbol, model_path):
|
|
145 |
# Return the sorted output, combined gene sequences, and all exons
|
146 |
return results, all_gene_sequences, all_exons
|
147 |
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
#
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
#
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
#
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
from Bio.Seq import Seq
|
11 |
from keras.models import load_model
|
12 |
import random
|
13 |
+
import pyBigWig
|
14 |
|
15 |
# configure GPUs
|
16 |
for gpu in tf.config.list_physical_devices('GPU'):
|
|
|
146 |
# Return the sorted output, combined gene sequences, and all exons
|
147 |
return results, all_gene_sequences, all_exons
|
148 |
|
149 |
+
def create_genbank_features(formatted_data):
|
150 |
+
features = []
|
151 |
+
for data in formatted_data:
|
152 |
+
strand = 1 if data[3] == '+' else -1
|
153 |
+
location = FeatureLocation(start=int(data[1]), end=int(data[2]), strand=strand)
|
154 |
+
feature = SeqFeature(location=location, type="misc_feature", qualifiers={
|
155 |
+
'label': data[7], # Use gRNA as the label
|
156 |
+
'target': data[6], # Include the target sequence
|
157 |
+
'note': f"Prediction: {data[8]:.4f}" # Include the prediction score
|
158 |
+
})
|
159 |
+
features.append(feature)
|
160 |
+
return features
|
161 |
+
|
162 |
+
def generate_genbank_file_from_df(df, gene_sequence, gene_symbol, output_path):
|
163 |
+
features = create_genbank_features(df.values.tolist())
|
164 |
+
record = SeqRecord(Seq(gene_sequence), id=gene_symbol, name=gene_symbol,
|
165 |
+
description=f'CRISPR Cas9 predicted targets for {gene_symbol}', features=features)
|
166 |
+
record.annotations["molecule_type"] = "DNA"
|
167 |
+
SeqIO.write(record, output_path, "genbank")
|
168 |
+
|
169 |
+
|
170 |
+
def create_bed_file_from_df(df, output_path):
|
171 |
+
with open(output_path, 'w') as bed_file:
|
172 |
+
for index, row in df.iterrows():
|
173 |
+
chrom = row["Chr"]
|
174 |
+
start = int(row["Start Pos"]) # Assuming 'Start Pos' is the column name in the df
|
175 |
+
end = int(row["End Pos"]) # Assuming 'End Pos' is the column name in the df
|
176 |
+
strand = '+' if row["Strand"] == '1' else '-' # Assuming 'Strand' is the column name in the df
|
177 |
+
gRNA = row["gRNA"]
|
178 |
+
score = str(row["Prediction"])
|
179 |
+
transcript_id = row["Transcript"] # Assuming 'Transcript' is the column name in the df
|
180 |
+
|
181 |
+
bed_file.write(f"{chrom}\t{start}\t{end}\t{gRNA}\t{score}\t{strand}\t{transcript_id}\n")
|
182 |
+
|
183 |
+
|
184 |
+
def create_csv_from_df(df, output_path):
|
185 |
+
df.to_csv(output_path, index=False)
|
186 |
+
|
187 |
+
|
188 |
+
def create_bigwig(df, bigwig_path, chrom_sizes_path):
|
189 |
+
bw = pyBigWig.open(bigwig_path, "w")
|
190 |
+
|
191 |
+
# Load chromosome sizes
|
192 |
+
chrom_sizes = {}
|
193 |
+
with open(chrom_sizes_path, 'r') as f:
|
194 |
+
for line in f:
|
195 |
+
chrom, size = line.strip().split()
|
196 |
+
chrom_sizes[chrom] = int(size)
|
197 |
+
|
198 |
+
bw.addHeader(list(chrom_sizes.items()))
|
199 |
+
|
200 |
+
for chrom in df['Chr'].unique():
|
201 |
+
chrom_df = df[df['Chr'] == chrom]
|
202 |
+
bw.addEntries(
|
203 |
+
chrom,
|
204 |
+
chrom_df['Start Pos'].astype(int).tolist(),
|
205 |
+
ends=chrom_df['End Pos'].astype(int).tolist(),
|
206 |
+
values=chrom_df['Prediction'].astype(float).tolist()
|
207 |
+
)
|
208 |
+
bw.close()
|
igv_component/.babelrc
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"presets": ["@babel/preset-env", "@babel/preset-react"]
|
3 |
-
}
|
|
|
|
|
|
|
|
igv_component/__init__.py
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
import streamlit.components.v1 as components
|
2 |
-
|
3 |
-
# Modify the igv_component function to accept the additional arguments
|
4 |
-
def igv_component(crispr_results=None, genome_reference="hg19", gene_symbol=None, key=None):
|
5 |
-
# Define the path to the built frontend component
|
6 |
-
component_path = "./igv_component/build"
|
7 |
-
|
8 |
-
# Streamlit components function
|
9 |
-
component = components.declare_component("igv_component", path=component_path)
|
10 |
-
|
11 |
-
# Call the component and pass the additional arguments
|
12 |
-
return component(crispr_results=crispr_results, genome_reference=genome_reference, gene_symbol=gene_symbol, key=key)
|
13 |
-
|
14 |
-
# Example usage:
|
15 |
-
# crispr_results = ... # your CRISPR results
|
16 |
-
# igv_component(crispr_results=crispr_results, genome_reference="hg19", gene_symbol="FOXA1", key="unique_key")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/build/index.html
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
<!doctype html><html><head><meta charset="utf-8"><title>IGV Component</title><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="main.js"></script></head><body></body></html>
|
|
|
|
igv_component/build/main.js
DELETED
The diff for this file is too large to render.
See raw diff
|
|
igv_component/build/main.js.LICENSE.txt
DELETED
@@ -1,77 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
object-assign
|
3 |
-
(c) Sindre Sorhus
|
4 |
-
@license MIT
|
5 |
-
*/
|
6 |
-
|
7 |
-
/*!
|
8 |
-
* Sizzle CSS Selector Engine v2.3.3
|
9 |
-
* https://sizzlejs.com/
|
10 |
-
*
|
11 |
-
* Copyright jQuery Foundation and other contributors
|
12 |
-
* Released under the MIT license
|
13 |
-
* http://jquery.org/license
|
14 |
-
*
|
15 |
-
* Date: 2016-08-08
|
16 |
-
*/
|
17 |
-
|
18 |
-
/*!
|
19 |
-
* jQuery JavaScript Library v3.3.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector
|
20 |
-
* https://jquery.com/
|
21 |
-
*
|
22 |
-
* Includes Sizzle.js
|
23 |
-
* https://sizzlejs.com/
|
24 |
-
*
|
25 |
-
* Copyright JS Foundation and other contributors
|
26 |
-
* Released under the MIT license
|
27 |
-
* https://jquery.org/license
|
28 |
-
*
|
29 |
-
* Date: 2018-01-20T17:24Z
|
30 |
-
*/
|
31 |
-
|
32 |
-
/*!
|
33 |
-
* vanilla-picker v2.12.1
|
34 |
-
* https://vanilla-picker.js.org
|
35 |
-
*
|
36 |
-
* Copyright 2017-2021 Andreas Borgen (https://github.com/Sphinxxxx), Adam Brooks (https://github.com/dissimulate)
|
37 |
-
* Released under the ISC license.
|
38 |
-
*/
|
39 |
-
|
40 |
-
/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */
|
41 |
-
|
42 |
-
/*! For license information please see cram-bundle.js.LICENSE.txt */
|
43 |
-
|
44 |
-
/*! pako 2.0.4 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
45 |
-
|
46 |
-
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
47 |
-
|
48 |
-
/*!!
|
49 |
-
* Canvas 2 Svg v1.0.19
|
50 |
-
* A low level canvas to SVG converter. Uses a mock canvas context to build an SVG document.
|
51 |
-
*
|
52 |
-
* Licensed under the MIT license:
|
53 |
-
* http://www.opensource.org/licenses/mit-license.php
|
54 |
-
*
|
55 |
-
* Author:
|
56 |
-
* Kerry Liu
|
57 |
-
*
|
58 |
-
* Copyright (c) 2014 Gliffy Inc.
|
59 |
-
*/
|
60 |
-
|
61 |
-
/** @license React v16.13.1
|
62 |
-
* react-is.production.min.js
|
63 |
-
*
|
64 |
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
65 |
-
*
|
66 |
-
* This source code is licensed under the MIT license found in the
|
67 |
-
* LICENSE file in the root directory of this source tree.
|
68 |
-
*/
|
69 |
-
|
70 |
-
/** @license React v16.14.0
|
71 |
-
* react.production.min.js
|
72 |
-
*
|
73 |
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
74 |
-
*
|
75 |
-
* This source code is licensed under the MIT license found in the
|
76 |
-
* LICENSE file in the root directory of this source tree.
|
77 |
-
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/igvcomponent.js
DELETED
@@ -1,81 +0,0 @@
|
|
1 |
-
import React from "react";
|
2 |
-
import { Streamlit, withStreamlitConnection } from "streamlit-component-lib";
|
3 |
-
import * as igv from 'igv';
|
4 |
-
|
5 |
-
class IGVComponent extends React.Component {
|
6 |
-
constructor(props) {
|
7 |
-
super(props);
|
8 |
-
this.browser = null;
|
9 |
-
}
|
10 |
-
|
11 |
-
componentDidMount() {
|
12 |
-
// Initialize the IGV viewer with default options
|
13 |
-
this.initializeIGV(this.props.genomeReference || "hg19");
|
14 |
-
}
|
15 |
-
|
16 |
-
componentDidUpdate(prevProps) {
|
17 |
-
// Update the genome if it changes
|
18 |
-
if (this.props.genomeReference !== prevProps.genomeReference) {
|
19 |
-
this.initializeIGV(this.props.genomeReference);
|
20 |
-
}
|
21 |
-
|
22 |
-
// Update tracks when new CRISPR results are received
|
23 |
-
if (this.props.crisprResults !== prevProps.crisprResults) {
|
24 |
-
this.updateTracks(this.props.crisprResults);
|
25 |
-
}
|
26 |
-
}
|
27 |
-
|
28 |
-
initializeIGV(genomeReference) {
|
29 |
-
const igvDiv = document.getElementById("igvDiv");
|
30 |
-
const options = {
|
31 |
-
genome: genomeReference,
|
32 |
-
// Add other IGV options here based on your requirements
|
33 |
-
};
|
34 |
-
|
35 |
-
igv.createBrowser(igvDiv, options).then((browser) => {
|
36 |
-
this.browser = browser;
|
37 |
-
// Load initial tracks if any
|
38 |
-
this.updateTracks(this.props.crisprResults);
|
39 |
-
});
|
40 |
-
}
|
41 |
-
|
42 |
-
updateTracks(crisprResults) {
|
43 |
-
if (this.browser && crisprResults && crisprResults.length > 0) {
|
44 |
-
// Clear existing tracks
|
45 |
-
this.browser.removeAllTracks();
|
46 |
-
|
47 |
-
// Create a BED string from CRISPR results
|
48 |
-
let bedData = "track name='CRISPR Targets' description='CRISPR Cas9 Predictions'\n";
|
49 |
-
bedData += crisprResults.map(result => {
|
50 |
-
const chr = result[0]; // "Gene ID"
|
51 |
-
const start = result[1]; // "Start Pos"
|
52 |
-
const end = result[2]; // "End Pos"
|
53 |
-
const strand = result[3] === 1 ? "+" : "-"; // "Strand"
|
54 |
-
const name = `gRNA: ${result[4]} Score: ${result[5]}`; // "gRNA" and "Prediction"
|
55 |
-
return `${chr}\t${start}\t${end}\t${name}\t0\t${strand}`;
|
56 |
-
}).join("\n");
|
57 |
-
|
58 |
-
// Create a blob from the BED string
|
59 |
-
const blob = new Blob([bedData], { type: 'text/plain' });
|
60 |
-
const url = URL.createObjectURL(blob);
|
61 |
-
|
62 |
-
// Define a track configuration for IGV
|
63 |
-
const trackConfig = {
|
64 |
-
name: "CRISPR Targets",
|
65 |
-
url: url,
|
66 |
-
format: "bed",
|
67 |
-
type: "annotation",
|
68 |
-
indexed: false
|
69 |
-
};
|
70 |
-
|
71 |
-
// Load the track into the IGV browser
|
72 |
-
this.browser.loadTrack(trackConfig);
|
73 |
-
}
|
74 |
-
}
|
75 |
-
|
76 |
-
render() {
|
77 |
-
return <div id="igvDiv" style={{ height: "500px" }}></div>;
|
78 |
-
}
|
79 |
-
}
|
80 |
-
|
81 |
-
export default withStreamlitConnection(IGVComponent);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/acorn
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../acorn/bin/acorn" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../acorn/bin/acorn" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/acorn.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\acorn\bin\acorn" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/acorn.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../acorn/bin/acorn" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../acorn/bin/acorn" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../acorn/bin/acorn" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/arrow2csv
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../apache-arrow/bin/arrow2csv.js" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../apache-arrow/bin/arrow2csv.js" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/arrow2csv.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\apache-arrow\bin\arrow2csv.js" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/arrow2csv.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../apache-arrow/bin/arrow2csv.js" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../apache-arrow/bin/arrow2csv.js" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../apache-arrow/bin/arrow2csv.js" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../apache-arrow/bin/arrow2csv.js" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/browserslist
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../browserslist/cli.js" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../browserslist/cli.js" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/browserslist.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\browserslist\cli.js" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/browserslist.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../browserslist/cli.js" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../browserslist/cli.js" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../browserslist/cli.js" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../browserslist/cli.js" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/envinfo
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../envinfo/dist/cli.js" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../envinfo/dist/cli.js" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/envinfo.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\envinfo\dist\cli.js" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/envinfo.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../envinfo/dist/cli.js" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../envinfo/dist/cli.js" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../envinfo/dist/cli.js" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../envinfo/dist/cli.js" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/flat
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../flat/cli.js" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../flat/cli.js" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/flat.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\flat\cli.js" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/flat.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../flat/cli.js" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../flat/cli.js" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../flat/cli.js" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../flat/cli.js" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/he
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../he/bin/he" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../he/bin/he" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/he.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\he\bin\he" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/he.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../he/bin/he" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../he/bin/he" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../he/bin/he" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../he/bin/he" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/html-minifier-terser
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../html-minifier-terser/cli.js" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../html-minifier-terser/cli.js" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/html-minifier-terser.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\html-minifier-terser\cli.js" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/html-minifier-terser.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../html-minifier-terser/cli.js" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../html-minifier-terser/cli.js" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../html-minifier-terser/cli.js" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../html-minifier-terser/cli.js" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/import-local-fixture
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../import-local/fixtures/cli.js" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../import-local/fixtures/cli.js" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/import-local-fixture.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\import-local\fixtures\cli.js" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/import-local-fixture.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../import-local/fixtures/cli.js" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../import-local/fixtures/cli.js" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../import-local/fixtures/cli.js" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../import-local/fixtures/cli.js" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/jsesc
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../jsesc/bin/jsesc" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../jsesc/bin/jsesc" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/jsesc.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\jsesc\bin\jsesc" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/jsesc.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/json5
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../json5/lib/cli.js" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../json5/lib/cli.js" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/json5.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\json5\lib\cli.js" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/json5.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../json5/lib/cli.js" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../json5/lib/cli.js" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/loose-envify
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../loose-envify/cli.js" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../loose-envify/cli.js" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/loose-envify.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\loose-envify\cli.js" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/loose-envify.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../loose-envify/cli.js" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../loose-envify/cli.js" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../loose-envify/cli.js" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../loose-envify/cli.js" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/node-which
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../which/bin/node-which" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../which/bin/node-which" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/node-which.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\which\bin\node-which" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/node-which.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../which/bin/node-which" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../which/bin/node-which" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../which/bin/node-which" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../which/bin/node-which" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/parser
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/parser.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\@babel\parser\bin\babel-parser.js" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/parser.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/regjsparser
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
#!/bin/sh
|
2 |
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
3 |
-
|
4 |
-
case `uname` in
|
5 |
-
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
|
6 |
-
esac
|
7 |
-
|
8 |
-
if [ -x "$basedir/node" ]; then
|
9 |
-
exec "$basedir/node" "$basedir/../regjsparser/bin/parser" "$@"
|
10 |
-
else
|
11 |
-
exec node "$basedir/../regjsparser/bin/parser" "$@"
|
12 |
-
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/regjsparser.cmd
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
@ECHO off
|
2 |
-
GOTO start
|
3 |
-
:find_dp0
|
4 |
-
SET dp0=%~dp0
|
5 |
-
EXIT /b
|
6 |
-
:start
|
7 |
-
SETLOCAL
|
8 |
-
CALL :find_dp0
|
9 |
-
|
10 |
-
IF EXIST "%dp0%\node.exe" (
|
11 |
-
SET "_prog=%dp0%\node.exe"
|
12 |
-
) ELSE (
|
13 |
-
SET "_prog=node"
|
14 |
-
SET PATHEXT=%PATHEXT:;.JS;=;%
|
15 |
-
)
|
16 |
-
|
17 |
-
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\regjsparser\bin\parser" %*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
igv_component/node_modules/.bin/regjsparser.ps1
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
#!/usr/bin/env pwsh
|
2 |
-
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
3 |
-
|
4 |
-
$exe=""
|
5 |
-
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
6 |
-
# Fix case when both the Windows and Linux builds of Node
|
7 |
-
# are installed in the same directory
|
8 |
-
$exe=".exe"
|
9 |
-
}
|
10 |
-
$ret=0
|
11 |
-
if (Test-Path "$basedir/node$exe") {
|
12 |
-
# Support pipeline input
|
13 |
-
if ($MyInvocation.ExpectingInput) {
|
14 |
-
$input | & "$basedir/node$exe" "$basedir/../regjsparser/bin/parser" $args
|
15 |
-
} else {
|
16 |
-
& "$basedir/node$exe" "$basedir/../regjsparser/bin/parser" $args
|
17 |
-
}
|
18 |
-
$ret=$LASTEXITCODE
|
19 |
-
} else {
|
20 |
-
# Support pipeline input
|
21 |
-
if ($MyInvocation.ExpectingInput) {
|
22 |
-
$input | & "node$exe" "$basedir/../regjsparser/bin/parser" $args
|
23 |
-
} else {
|
24 |
-
& "node$exe" "$basedir/../regjsparser/bin/parser" $args
|
25 |
-
}
|
26 |
-
$ret=$LASTEXITCODE
|
27 |
-
}
|
28 |
-
exit $ret
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|