-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
3,492 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,5 @@ docs/_build | |
|
||
# test harness | ||
test_harness.py | ||
|
||
apollo_shared_dir |
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '3.1' | ||
__version__ = '4.0' |
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,54 @@ | ||
#!/bin/bash | ||
|
||
export GALAXY_SHARED_DIR=`pwd`/apollo_shared_dir | ||
mkdir -p "$GALAXY_SHARED_DIR" | ||
|
||
docker run -d -it -p 8888:8080 -v `pwd`/apollo_shared_dir/:`pwd`/apollo_shared_dir/ quay.io/gmod/apollo:2.4.1 | ||
|
||
echo "[BOOTSTRAP] Waiting while Apollo starts up..." | ||
# Wait for apollo to be online | ||
for ((i=0;i<30;i++)) | ||
do | ||
APOLLO_UP=$(arrow users get_users 2> /dev/null | head -1 | grep '^\[$' -q; echo "$?") | ||
if [[ $APOLLO_UP -eq 0 ]]; then | ||
break | ||
fi | ||
sleep 10 | ||
done | ||
|
||
if ! [[ $APOLLO_UP -eq 0 ]]; then | ||
echo "Cannot connect to apollo for bootstrapping" | ||
arrow users get_users | ||
exit "${APOLLO_UP}" | ||
fi | ||
|
||
echo "[BOOTSTRAP] Apollo is up, bootstrapping for tests" | ||
|
||
# Create some groups | ||
arrow groups create_group one_group | ||
arrow groups create_group another_group | ||
|
||
# Create a user | ||
arrow users create_user "[email protected]" Junior Galaxy password | ||
|
||
# Add some organisms | ||
cp -r test-data/dataset_1_files/data/ "${GALAXY_SHARED_DIR}/org1" | ||
cp -r test-data/dataset_1_files/data/ "${GALAXY_SHARED_DIR}/org2" | ||
cp -r test-data/dataset_1_files/data/ "${GALAXY_SHARED_DIR}/org3" | ||
cp -r test-data/dataset_1_files/data/ "${GALAXY_SHARED_DIR}/org4" | ||
arrow organisms add_organism --genus Testus --species organus test_organism $GALAXY_SHARED_DIR/org1 | ||
arrow organisms add_organism --genus Foo --species barus alt_org $GALAXY_SHARED_DIR/org2 | ||
arrow organisms add_organism --genus Foo3 --species barus org3 $GALAXY_SHARED_DIR/org3 | ||
arrow organisms add_organism --genus Foo4 --species barus org4 $GALAXY_SHARED_DIR/org4 | ||
|
||
# Give access to organisms for test user | ||
arrow users update_organism_permissions --write --read --export "[email protected]" test_organism | ||
arrow users update_organism_permissions --write --read --export "[email protected]" alt_org | ||
arrow users update_organism_permissions --write --read --export "[email protected]" org3 | ||
arrow users update_organism_permissions --write --read --export "[email protected]" org4 | ||
|
||
# Load some annotations | ||
arrow annotations load_gff3 test_organism test-data/merlin.gff | ||
arrow annotations load_gff3 alt_org test-data/merlin.gff | ||
arrow annotations load_gff3 org3 test-data/merlin.gff | ||
arrow annotations load_gff3 org4 test-data/merlin.gff |
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,5 @@ | ||
__default: local | ||
local: | ||
url: "http://localhost:8888" | ||
username: "[email protected]" | ||
password: "password" |
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 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>JBrowse</title> | ||
|
||
<link rel="apple-touch-icon" sizes="180x180" href="img/favicons/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="img/favicons/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="img/favicons/favicon-16x16.png"> | ||
<link rel="manifest" href="site.webmanifest"> | ||
<link rel="mask-icon" href="img/favicons/safari-pinned-tab.svg" color="#5bbad5"> | ||
<meta name="msapplication-TileColor" content="#2d89ef"> | ||
<meta name="theme-color" content="#ffffff"> | ||
|
||
<script type="text/javascript"> | ||
window.onerror=function(msg){ | ||
if( document.body ) | ||
document.body.setAttribute("JSError",msg); | ||
} | ||
if(window.process&&process.versions&&process.versions.electron) { | ||
window.electronRequire = require; | ||
delete window.require; | ||
} | ||
</script> | ||
<style> | ||
html, body, div.jbrowse { | ||
margin: 0; | ||
padding: 0; | ||
height: 100%; | ||
width: 100%; | ||
} | ||
</style> | ||
<script type="text/javascript" src="dist/main.bundle.js" charset="utf-8"></script> | ||
</head> | ||
|
||
<body> | ||
<div class="jbrowse" id="GenomeBrowser" data-config='"allowCrossOriginDataRoot": false, "cacheBuster": true'> | ||
<div id="LoadingScreen" style="padding: 50px;"> | ||
<h1>Loading...</h1> | ||
</div> | ||
</div> | ||
<div style="display: none">JBrowseDefaultMainPage</div> | ||
</body> | ||
</html> |
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,10 @@ | ||
# This Apache .htaccess file is generated by JBrowse (GenomeDB) for | ||
# allowing cross-origin requests as defined by the Cross-Origin | ||
# Resource Sharing working draft from the W3C | ||
# (http://www.w3.org/TR/cors/). In order for Apache to pay attention | ||
# to this, it must have mod_headers enabled, and its AllowOverride | ||
# configuration directive must allow FileInfo overrides. | ||
<IfModule mod_headers.c> | ||
Header onsuccess set Access-Control-Allow-Origin * | ||
Header onsuccess set Access-Control-Allow-Headers X-Requested-With,Range | ||
</IfModule> |
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 @@ | ||
{"merli":{"exact":[],"prefix":["Merlin"]}} |
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 @@ | ||
{"mer":{"prefix":["Merlin"],"exact":[]}} |
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 @@ | ||
{"merlin":{"prefix":[],"exact":[["Merlin",null,"Merlin",null,0,172788,null]]}} |
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 @@ | ||
{"me":{"prefix":["Merlin"],"exact":[]}} |
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 @@ | ||
{"merl":{"prefix":["Merlin"],"exact":[]}} |
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 @@ | ||
{"m":{"exact":[],"prefix":["Merlin"]}} |
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 @@ | ||
{"compress":0,"track_names":[],"format":"json","lowercase_keys":1,"hash_bits":16} |
Binary file added
BIN
+13.3 KB
test-data/dataset_1_files/data/raw/4ced49b280a72a29f1b922ae1a9664c8_0.gff.gz
Binary file not shown.
Binary file added
BIN
+150 Bytes
test-data/dataset_1_files/data/raw/4ced49b280a72a29f1b922ae1a9664c8_0.gff.gz.tbi
Binary file not shown.
Oops, something went wrong.