Skip to content

Commit

Permalink
New Tutorial: Building and Manipulating Collections with Rules (#676)
Browse files Browse the repository at this point in the history
* Rules tutorial.

* rewrite tutorial formatting
  • Loading branch information
jmchilton authored and bgruening committed May 25, 2018
1 parent 8ace551 commit 30f6ebb
Show file tree
Hide file tree
Showing 77 changed files with 864 additions and 1 deletion.
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.
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.
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.
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.
53 changes: 53 additions & 0 deletions topics/introduction/images/rules/rules_example_4_8_text.txt
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"
}
Binary file added topics/introduction/images/rules/uniprot_url.png
18 changes: 18 additions & 0 deletions topics/introduction/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,24 @@ material:
key_points:
contributors:
- nekrut
-
title: "Rule Based Uploader"
type: "tutorial"
name: "galaxy-intro-rules"
zenodo_link: ""
workflows: no
galaxy_tour: no
hands_on: yes
slides: no
questions:
- "How to use the rule based uploader to create complex collections"
objectives:
- "Learn about the Rule Based Uploader"
time_estimation: "30 min"
key_points:
contributors:
- jmchilton
- erasche

maintainers:
- jennaj
Expand Down
84 changes: 84 additions & 0 deletions topics/introduction/tutorials/galaxy-intro-rules/PRJNA355367.csv

Large diffs are not rendered by default.

84 changes: 84 additions & 0 deletions topics/introduction/tutorials/galaxy-intro-rules/PRJNA355367.tsv

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions topics/introduction/tutorials/galaxy-intro-rules/gen_images.sh
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 topics/introduction/tutorials/galaxy-intro-rules/tutorial.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Here we will show Galaxy features designed to help with the analysis of large nu

These datasets represent genomic DNA (enriched for mitochondria via a long range PCR) isolated from blood and cheek (buccal swab) of mother (`M117`) and her child (`M117C1`) that was sequenced on an Illumina miSeq machine as paired-read library (250-bp reads; see our [2014](http://www.pnas.org/content/111/43/15474.abstract) manuscript for **Methods**).

## 1. Creating a paired dataset collection
## 1. Creating a list of paired datasets

If you imported [history]( https://test.galaxyproject.org/u/anton/h/collections-1) as described [above](https://github.com/nekrut/galaxy/wiki/Processing-many-samples-at-once#0-getting-data), your screen will look something like this:

Expand Down

0 comments on commit 30f6ebb

Please sign in to comment.