-
Notifications
You must be signed in to change notification settings - Fork 933
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Tutorial: Building and Manipulating Collections with Rules (#676)
* Rules tutorial. * rewrite tutorial formatting
- Loading branch information
Showing
77 changed files
with
864 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+353 KB
...troduction/images/rules/rules_apply_rules_example_4_10_apply_rules_inverted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+216 KB
topics/introduction/images/rules/rules_apply_rules_example_4_11_inverted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+306 KB
...introduction/images/rules/rules_apply_rules_example_4_12_apply_rules_filter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+236 KB
topics/introduction/images/rules/rules_apply_rules_example_4_13_filtered.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+344 KB
...images/rules/rules_apply_rules_example_4_14_apply_rules_filtered_and_nested.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+235 KB
...ntroduction/images/rules/rules_apply_rules_example_4_15_filtered_and_nested.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+455 KB
topics/introduction/images/rules/rules_apply_rules_example_4_1_input_paste.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+416 KB
topics/introduction/images/rules/rules_apply_rules_example_4_2_input_rules.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+355 KB
topics/introduction/images/rules/rules_apply_rules_example_4_3_input_ready.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+200 KB
topics/introduction/images/rules/rules_apply_rules_example_4_4_input_list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+406 KB
...introduction/images/rules/rules_apply_rules_example_4_5_apply_rules_landing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+333 KB
...troduction/images/rules/rules_apply_rules_example_4_6_apply_rules_init_flat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+339 KB
...troduction/images/rules/rules_apply_rules_example_4_7_apply_rules_add_depth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+192 KB
topics/introduction/images/rules/rules_apply_rules_example_4_8_nested.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+358 KB
...oduction/images/rules/rules_apply_rules_example_4_9_apply_rules_init_nested.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+560 KB
topics/introduction/images/rules/rules_example_3_13_swapped_columns.png
Oops, something went wrong.
Binary file added
BIN
+563 KB
topics/introduction/images/rules/rules_example_3_14_paired_identifier_set.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+549 KB
topics/introduction/images/rules/rules_example_3_9_columns_are_split.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+389 KB
topics/introduction/images/rules/rules_example_4_7_mapping_extension_and_name.png
Oops, something went wrong.
Oops, something went wrong.
53 changes: 53 additions & 0 deletions
53
topics/introduction/images/rules/rules_example_4_8_text.txt
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,53 @@ | ||
{ | ||
"rules": [ | ||
{ | ||
"type": "add_filter_count", | ||
"count": "1", | ||
"which": "first", | ||
"invert": false | ||
}, | ||
{ | ||
"type": "remove_columns", | ||
"target_columns": [ | ||
1, | ||
2, | ||
4, | ||
5, | ||
6 | ||
] | ||
}, | ||
{ | ||
"type": "sort", | ||
"target_column": 0, | ||
"numeric": false | ||
}, | ||
{ | ||
"type": "add_column_regex", | ||
"target_column": 0, | ||
"expression": ".*", | ||
"replacement": "http://www.uniprot.org/uniprot/$&.fasta" | ||
} | ||
], | ||
"mapping": [ | ||
{ | ||
"type": "info", | ||
"columns": [ | ||
1 | ||
] | ||
}, | ||
{ | ||
"type": "list_identifiers", | ||
"columns": [ | ||
0 | ||
], | ||
"editing": false | ||
}, | ||
{ | ||
"type": "url", | ||
"columns": [ | ||
2 | ||
] | ||
} | ||
], | ||
"extension": "csfasta" | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+592 KB
topics/introduction/images/rules/rules_example_6_5_multiple_identifiers_edit.png
Oops, something went wrong.
Binary file added
BIN
+588 KB
topics/introduction/images/rules/rules_example_6_6_multiple_identifiers.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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
84 changes: 84 additions & 0 deletions
84
topics/introduction/tutorials/galaxy-intro-rules/PRJNA355367.csv
Large diffs are not rendered by default.
Oops, something went wrong.
84 changes: 84 additions & 0 deletions
84
topics/introduction/tutorials/galaxy-intro-rules/PRJNA355367.tsv
Large diffs are not rendered by default.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
topics/introduction/tutorials/galaxy-intro-rules/gen_images.sh
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,38 @@ | ||
#!/bin/bash | ||
# Usage: | ||
# bash topics/introduction/tutorials/galaxy-intro-rules/gen_images.sh /path/to/galaxy | ||
# | ||
# Description: | ||
# This is meant to show how the images were generated more than for end user consumption | ||
# so things are a bit messy and sub-optimal. | ||
|
||
export CWD=`pwd` | ||
export THIS_DIR="$(dirname "$0")" | ||
|
||
GALAXY_ROOT="$1" | ||
cd $GALAXY_ROOT | ||
|
||
# in case THIS_DIR is relative go back to where we started | ||
make client | ||
GALAXY_SKIP_CLIENT_BUILD=1 GALAXY_RUN_WITH_TEST_TOOLS=1 GALAXY_CONFIG_OVERRIDE_DATABASE_CONNECTION=postgres://postgres:mysecretpassword@localhost:5432/galaxy sh run.sh & | ||
|
||
sleep 60 | ||
|
||
# Set Galaxy Selenium tests to generate screenshots into a clean directory. | ||
rm -rf screens | ||
export GALAXY_TEST_SCREENSHOTS_DIRECTORY=`pwd`/screens | ||
|
||
. .venv/bin/activate | ||
|
||
# Run Galaxy Selenium tests corresponding to the examples. | ||
GALAXY_TEST_EXTERNAL=http://localhost:8080/ nosetests test/selenium_tests/test_uploads.py:UploadsTestCase.test_rules_example_1_datasets | ||
GALAXY_TEST_EXTERNAL=http://localhost:8080/ nosetests test/selenium_tests/test_uploads.py:UploadsTestCase.test_rules_example_2_list | ||
GALAXY_TEST_EXTERNAL=http://localhost:8080/ nosetests test/selenium_tests/test_uploads.py:UploadsTestCase.test_rules_example_3_list_pairs | ||
GALAXY_TEST_EXTERNAL=http://localhost:8080/ nosetests test/selenium_tests/test_uploads.py:UploadsTestCase.test_rules_example_4_accessions | ||
GALAXY_TEST_EXTERNAL=http://localhost:8080/ nosetests test/selenium_tests/test_uploads.py:UploadsTestCase.test_rules_example_5_matching_collections | ||
GALAXY_TEST_EXTERNAL=http://localhost:8080/ nosetests test/selenium_tests/test_uploads.py:UploadsTestCase.test_rules_example_6_nested_lists | ||
|
||
cd "$CWD" | ||
cd "$THIS_DIR/../.." | ||
rm -f images/rules/rules_example* | ||
cp "$GALAXY_ROOT"/screens/rules_example* images/rules |
586 changes: 586 additions & 0 deletions
586
topics/introduction/tutorials/galaxy-intro-rules/tutorial.md
Large diffs are not rendered by default.
Oops, something went wrong.
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