Skip to content

Commit

Permalink
put the volvox bigwig test track configuration snippet in a separate …
Browse files Browse the repository at this point in the history
…file and integrate it with the selenium tests and setup.sh example data using add-track-json.pl
  • Loading branch information
rbuels committed Aug 3, 2012
1 parent 10e2140 commit 47d5b21
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
8 changes: 8 additions & 0 deletions docs/tutorial/data_files/volvox_microarray.bw.conf
@@ -0,0 +1,8 @@
#configuration snippet for the volvox bigwig test track
{
"label": "volvox_microarray.bw",
"key": "volvox_microarray.bw",
"urlTemplate": "../../raw/volvox/volvox_microarray.bw",
"type": "JBrowse/View/Track/Wiggle",
"storeClass": "JBrowse/Store/BigWig"
}
2 changes: 1 addition & 1 deletion setup.sh
Expand Up @@ -30,9 +30,9 @@ echo -n "Formatting Volvox example data ...";
rm -rf sample_data/json/volvox;
bin/prepare-refseqs.pl --fasta docs/tutorial/data_files/volvox.fa --out sample_data/json/volvox;
bin/biodb-to-json.pl -v --conf docs/tutorial/conf_files/volvox.json --out sample_data/json/volvox;
bin/add-track-json.pl sample_data/raw/volvox/volvox_microarray.bw.conf sample_data/json/volvox/trackList.json
bin/generate-names.pl -v --out sample_data/json/volvox;


# also recreate some symlinks used by tests and such
if [ -d sample_data/json/modencode ]; then
mkdir -p sample_data/json/modencode/tracks;
Expand Down
13 changes: 1 addition & 12 deletions tests/selenium_tests/volvox_biodb_test.py
Expand Up @@ -14,18 +14,7 @@ def setUp( self ):
call( "bin/prepare-refseqs.pl --fasta docs/tutorial/data_files/volvox.fa --out sample_data/json/volvox/", shell=True )
call( "bin/biodb-to-json.pl --conf docs/tutorial/conf_files/volvox.json --out sample_data/json/volvox/", shell=True )
call( "bin/wig-to-json.pl --out sample_data/json/volvox/ --wig docs/tutorial/data_files/volvox_microarray.wig", shell=True )

# add a definition for the volvox bigwig test track
addtrack = subprocess.Popen( ["bin/add-track-json.pl","sample_data/json/volvox/trackList.json"], stdin=PIPE );
addtrack.stdin.write("""{
"label": "volvox_microarray.bw",
"key": "volvox_microarray.bw",
"urlTemplate": "../../raw/volvox/volvox_microarray.bw",
"type": "JBrowse/View/Track/Wiggle",
"storeClass": "JBrowse/Store/BigWig"
}""")
addtrack.stdin.close()

call( "bin/add-track-json.pl sample_data/raw/volvox/volvox_microarray.bw.conf sample_data/json/volvox/trackList.json", shell=True )
call( "bin/generate-names.pl --dir sample_data/json/volvox/", shell=True )
super( AbstractVolvoxBiodbTest, self ).setUp()

Expand Down

0 comments on commit 47d5b21

Please sign in to comment.