Skip to content

Commit d86c9f9

Browse files
authored
Merge pull request #6311 from teresa-m/update_peaks_genes
Update peaks genes
2 parents c3901c4 + 1f4d664 commit d86c9f9

File tree

10 files changed

+39
-31
lines changed

10 files changed

+39
-31
lines changed
-44.4 KB
Loading
151 KB
Loading
60.5 KB
Loading
44.4 KB
Loading
94.4 KB
Loading
53.9 KB
Loading
37.8 KB
Loading
22.3 KB
Loading
-464 Bytes
Loading

topics/introduction/tutorials/galaxy-intro-peaks2genes/tutorial.md

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ contributions:
4040
- deNBI
4141
- uni-freiburg
4242

43+
answer_histories:
44+
- label: "usegalaxy.eu"
45+
history: https://usegalaxy.eu/u/teresa-m/h/gtn-peaks-to-genes-introduction-part-1
46+
date: 2025-08-19
47+
- label: "usegalaxy.eu"
48+
history: https://usegalaxy.eu/u/teresa-m/h/gtn-peaks-to-genes-introduction-part-2
49+
date: 2025-08-19
4350
---
4451

4552
We stumbled upon a paper ({% cite Li2012 %}) called *"The histone acetyltransferase MOF is a key regulator of the embryonic stem cell core transcriptional network"*. The paper contains the analysis of possible target genes of an interesting protein called Mof. The targets were obtained by ChIP-seq in mice and the raw data is available through [GEO](https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE37268).
@@ -195,24 +202,24 @@ we also need a list of genes in mice, which we can obtain from UCSC.
195202
> ![UCSC table browser interface](../../images/intro_02.png)
196203
>
197204
> 3. Set the following options:
198-
> - *"clade"*: `Mammal`
199-
> - *"genome"*: `Mouse`
200-
> - *"assembly"*: `July 2007 (NCBI37/mm9)`
201-
> - *"group"*: `Genes and Gene Predictions`
202-
> - *"track"*: `RefSeq Genes`
203-
> - *"table"*: `refGene`
204-
> - *"region"*: `genome`
205-
> - *"output format"*: `BED - browser extensible data`
205+
> - *"Clade"*: `Mammal`
206+
> - *"Genome"*: `Mouse`
207+
> - *"Assembly"*: `July 2007 (NCBI37/mm9)`
208+
> - *"Group"*: `Genes and Gene Predictions`
209+
> - *"Track"*: `RefSeq Genes`
210+
> - *"Table"*: `refGene`
211+
> - *"Region"*: `Genome`
212+
> - *"Output format"*: `BED - browser extensible data`
206213
> - *"Send output to"*: `Galaxy` (only)
207214
>
208-
> 4. Click on the **get output** button
215+
> 4. Click on the **get Output** button
209216
>
210217
> You will see the next screen:
211218
>
212219
> ![Output settings](../../images/intro_03.png)
213220
>
214221
> 5. Make sure that *"Create one BED record per"* is set to `Whole Gene`
215-
> 6. Click on the **Send Query to Galaxy** button
222+
> 6. Click on the **Send query to Galaxy** button
216223
> 7. Wait for the upload to finish
217224
> 8. Rename our dataset to something more recognizable like `Genes`
218225
>
@@ -481,15 +488,15 @@ Great, we are ready to plot things!
481488
> <hands-on-title>Draw barchart</hands-on-title>
482489
>
483490
> 1. Click on {% icon galaxy-barchart %} (visualize) icon on the output from the **Sort** tool
484-
> 2. Select `Bar diagram (NVD3)`
491+
> 2. Select `Bar, Line and Scatter` from the main panel
485492
> 3. Click on the **<<** in the upper right corner
486-
> 4. Choose a title at **Provide a title**, e.g. `Gene counts per chromosome`
487-
> 5. Switch to the {% icon galaxy-chart-select-data %} **Select data** tab and play around with the settings
488-
> 6. When you are happy, click the {% icon galaxy-save %} **Save** visualization in the top right of the *main panel*
493+
> 4. Choose a title below **Title**, e.g. `Gene counts per chromosome`
494+
> 5. Switch to the **Settings** tab and change the axis labels
495+
> 6. Play around with the settings in the **Tracks** tab
496+
> 7. When you are happy, click the {% icon cloud-upload %} icon to **Save** visualization in the top right of the *main panel*
489497
>
490498
> This will store it to your saved visualisations. Later you can view,
491-
> download, or share it with others from **Data -> Visualizations** in the
492-
> top menu of Galaxy.
499+
> download, or share it with others by clicking again on **Visualization** on the left menu bar. In the opened menu bar click on the blue **Saved Visualizations** button on top. In the main panel you can find your saved plot.
493500
>
494501
{: .hands_on}
495502

@@ -498,15 +505,15 @@ Great, we are ready to plot things!
498505
When you look carefully at your history, you can see that it contains all the steps of our analysis, from the beginning to the end. By building this history we have actually built a complete record of our analysis with Galaxy preserving all parameter settings applied at every step.
499506
Wouldn't it be nice to just convert this history into a workflow that we'll be able to execute again and again?
500507

501-
Galaxy makes this very simple with the `Extract workflow` option. This means that any time you want to build a workflow, you can just perform it manually once, and then convert it to a workflow, so that next time it will be a lot less work to do the same analysis. It also allows you to easily share or publish your analysis.
508+
Galaxy makes this very simple with the `Extract Workflow` option. This means that any time you want to build a workflow, you can just perform it manually once, and then convert it to a workflow, so that next time it will be a lot less work to do the same analysis. It also allows you to easily share or publish your analysis.
502509

503510
> <hands-on-title>Extract workflow</hands-on-title>
504511
>
505512
> 1. **Clean up** your history: remove any failed (red) jobs from your history by clicking on the {% icon galaxy-delete %} button.
506513
>
507514
> This will make the creation of the workflow easier.
508515
>
509-
> 2. Click on {% icon galaxy-gear %} (**History options**) at the top of your history panel and select **Extract workflow**.
516+
> 2. Click on {% icon galaxy-history-options %} (**History options**) at the top of your history panel and select **Extract Workflow**.
510517
>
511518
> ![`Extract Workflow` entry in the history options menu](../../images/history_menu_extract_workflow.png)
512519
>
@@ -575,7 +582,7 @@ We again need our peak file, but we'd like to work in a clean history. Instead o
575582
>
576583
> {% snippet faqs/galaxy/histories_create_new.md %}
577584
>
578-
> 2. Click on the **History options** at the top right of your history. Click on the **Show Histories Side-by-Side**
585+
> 2. Click on the **History options** {% icon galaxy-history-options %} at the top right of your history. Click on the **Show Histories Side-by-Side**
579586
>
580587
> You should see both of your histories side-by-side now
581588
>
@@ -663,7 +670,7 @@ It's time to reuse the workflow we created earlier.
663670
664671
> <hands-on-title>Run a workflow</hands-on-title>
665672
> 1. Open the workflow menu (left menu bar)
666-
> 2. Find the workflow you made in the previous section, and select the option **Run**
673+
> 2. Find the workflow you made in the previous section, and select the option **Run** {% icon workflow-run %}
667674
> 3. Choose as inputs our `mm9.RefSeq_genes` (`#genes`) BED file and the result of the **Cut** tool (`#peaks`)
668675
> 4. Click **Run workflow**
669676
>
@@ -677,23 +684,24 @@ But wouldn't it be more interesting to know the number of peaks in each unique g
677684
> <hands-on-title>Run a workflow with changed settings</hands-on-title>
678685
> 1. Open the workflow menu (left menu bar)
679686
> 2. Find the workflow you made in the previous section, and select the option **Run**
680-
> 3. Choose as inputs our `mm9.RefSeq_genes` (`#genes`) BED file and the result of the **Cut** tool (`#peaks`)
681-
> 4. Click on the title of the {% icon tool %} **Group** tool to expand the options.
682-
> 5. Change the following settings by clicking on the {% icon galaxy-pencil %} (pencil) icon on the left:
687+
> 3. Click on **Workflow run settings** {% icon galaxy-wf-options %} and then on **Expanded workflow form**
688+
> 4. Choose as inputs our `mm9.RefSeq_genes` (`#genes`) BED file and the result of the **Cut** tool (`#peaks`)
689+
> 5. Click on the title of the {% icon tool %} **Group** tool to expand the options
690+
> 6. Change the following settings by clicking on the {% icon galaxy-pencil %} (pencil) icon on the left:
683691
> - *"Group by column"*: `7`
684692
> - In *"Operation"*:
685693
> - *"On column"*: `7`
686-
> 6. Click **Run workflow**
694+
> 7. Click **Run workflow**
687695
{: .hands_on}
688696
689697
Congratulations! You should have a file with all the unique gene names and a count on how many peaks they contained.
690698
691699
> <question-title></question-title>
692700
>
693-
> The list of unique genes is not sorted. Try to sort it on your own!
701+
> The list of unique genes is not sorted or you workflow included a sorting step but for the gene names. Try to sort it on your own!
694702
>
695703
> > <solution-title></solution-title>
696-
> > You can use the tool "Sort data in ascending or descending order" on column 2 and "fast numeric sort".
704+
> > You can use the tool "Sort data in ascending or descending order" or rerun to sort tool of your workflow. Sort on column 2 and "fast numeric sort".
697705
> {: .solution }
698706
{: .question}
699707
@@ -702,16 +710,16 @@ Congratulations! You should have a file with all the unique gene names and a cou
702710
703711
One of the most important features of Galaxy comes at the end of an analysis. When you have published striking findings, it is important that other researchers are able to reproduce your in-silico experiment. Galaxy enables users to easily share their workflows and histories with others.
704712
705-
To share a history, click on the {% icon galaxy-history-options %} history options and select `Share or Publish`. On this page you can do 3 things:
713+
To share a history, click on the {% icon galaxy-history-options %} history options and select `Share & Manage Access`. On this tab (**Share or Publish**) you can **Make History accessible** or **Share History with Individual Users**:
706714
707715
708-
1. **Make accessible via Link**
716+
1. **Make History accessible**
709717
710718
This generates a link that you can give out to others. Anybody with this link will be able to view your history.
711719
712-
2. **Make History publicly available in Published Histories**
720+
2. **Make History publicly available**
713721
714-
This will not only create a link, but will also publish your history. This means your history will be listed under `Data → Histories → Published Histories` in the top menu.
722+
This will not only create a link, but will also publish your history. This means your history will be listed under `Histories → Published Histories` in the left menu and other users can access the history there.
715723
716724
3. **Share with Individual Users**
717725
@@ -725,7 +733,7 @@ To share a history, click on the {% icon galaxy-history-options %} history opti
725733
> 2. See if you can do the same with your workflow!
726734
> 3. Find the history and/or workflow shared by your neighbour
727735
>
728-
> Histories shared with specific users can be accessed by those users under `Data → Histories → Histories shared with me`.
736+
> Histories shared with specific users can be accessed by those users under `Histories → Shared with Me`.
729737
>
730738
{: .hands_on}
731739

0 commit comments

Comments
 (0)