-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add missing configuration parameters * Edger also outputs design * New filter for DE significant results * New filter for DE significant results * Configuration is copied to the report directory after successful run * Git versions of source codes are stored in the report directory * Version of Snakelines is stored in the report directory * Removed obsolete source code - git version no longer needed since we have snakelines version * Update snakelines.snake * Renamed path to match refactored report structures * Store design even when batch is not defined * Fixed minor bug - the first sample was not visualised in the PCA plot * Refactoring, name FCexp-1 in output fiels changed to fold_change * HTML table with summarized results of differential expression analysis * Example files for annotation * DE transcripts can be annotated by external attributes * Example report has links to gene ontology terms * Export GO terms of DE genes to Revigo format * Documented Revigo, also it is stored as .txt file in the report directory for simpler copy-paste to the Revigo website
- Loading branch information
1 parent
be4d21b
commit 3422dbe
Showing
9 changed files
with
324 additions
and
14 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
16 changes: 16 additions & 0 deletions
16
docs/rules/classification/report/transcripts/revigo/summary.rst
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,16 @@ | ||
Custom - Export De Genes For Revigo | ||
--------------------------------------- | ||
|
||
Export differentially expressed genes and their GO annotations in format suitable for visualization | ||
in the Revigo webpage (http://revigo.irb.hr/) | ||
|
||
**Location** | ||
|
||
- *Filepath:* <SnakeLines_dir>/rules/classification/report/transcripts/revigo/custom.snake | ||
- *Rule name:* custom__export_de_genes_for_revigo | ||
|
||
**Input(s):** | ||
|
||
- *des:* TSV table with DE genes | ||
- *gos:* Annotation of genes - TSV file with columns id and external_id | ||
|
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
204 changes: 204 additions & 0 deletions
204
example/rnaseq/reference/pombe/annotation.transcripts/go/attributes.tsv
Large diffs are not rendered by default.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
example/rnaseq/reference/pombe/annotation.transcripts/pombase/attributes.tsv
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,23 @@ | ||
id gene_id link | ||
SPCC553.09c.1 SPCC553.09c <a href="https://www.pombase.org/gene/SPCC553.09c">SPCC553.09c</a> | ||
SPCC553.08c.1 SPCC553.08c <a href="https://www.pombase.org/gene/SPCC553.08c">SPCC553.08c</a> | ||
SPCC553.07c.1 SPCC553.07c <a href="https://www.pombase.org/gene/SPCC553.07c">SPCC553.07c</a> | ||
SPCC553.06.1 SPCC553.06 <a href="https://www.pombase.org/gene/SPCC553.06">SPCC553.06</a> | ||
SPCC553.05c.1 SPCC553.05c <a href="https://www.pombase.org/gene/SPCC553.05c">SPCC553.05c</a> | ||
SPCC553.04.1 SPCC553.04 <a href="https://www.pombase.org/gene/SPCC553.04">SPCC553.04</a> | ||
SPCC553.03.1 SPCC553.03 <a href="https://www.pombase.org/gene/SPCC553.03">SPCC553.03</a> | ||
SPCC553.02.1 SPCC553.02 <a href="https://www.pombase.org/gene/SPCC553.02">SPCC553.02</a> | ||
SPCC553.01c.1 SPCC553.01c <a href="https://www.pombase.org/gene/SPCC553.01c">SPCC553.01c</a> | ||
SPCC736.02.1 SPCC736.02 <a href="https://www.pombase.org/gene/SPCC736.02">SPCC736.02</a> | ||
SPCC736.03c.1 SPCC736.03c <a href="https://www.pombase.org/gene/SPCC736.03c">SPCC736.03c</a> | ||
SPCC736.04c.1 SPCC736.04c <a href="https://www.pombase.org/gene/SPCC736.04c">SPCC736.04c</a> | ||
SPCC736.05.1 SPCC736.05 <a href="https://www.pombase.org/gene/SPCC736.05">SPCC736.05</a> | ||
SPCC736.06.1 SPCC736.06 <a href="https://www.pombase.org/gene/SPCC736.06">SPCC736.06</a> | ||
SPCC736.07c.1 SPCC736.07c <a href="https://www.pombase.org/gene/SPCC736.07c">SPCC736.07c</a> | ||
SPCC736.08.1 SPCC736.08 <a href="https://www.pombase.org/gene/SPCC736.08">SPCC736.08</a> | ||
SPCC736.09c.1 SPCC736.09c <a href="https://www.pombase.org/gene/SPCC736.09c">SPCC736.09c</a> | ||
SPCC736.10c.1 SPCC736.10c <a href="https://www.pombase.org/gene/SPCC736.10c">SPCC736.10c</a> | ||
SPCC736.11.1 SPCC736.11 <a href="https://www.pombase.org/gene/SPCC736.11">SPCC736.11</a> | ||
SPCC736.12c.1 SPCC736.12c <a href="https://www.pombase.org/gene/SPCC736.12c">SPCC736.12c</a> | ||
SPCC736.13.1 SPCC736.13 <a href="https://www.pombase.org/gene/SPCC736.13">SPCC736.13</a> | ||
SPCC736.14.1 SPCC736.14 <a href="https://www.pombase.org/gene/SPCC736.14">SPCC736.14</a> |
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
22 changes: 22 additions & 0 deletions
22
rules/classification/report/transcripts/revigo/custom.snake
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,22 @@ | ||
import pandas as pd | ||
pd.set_option('display.max_colwidth', 1000000) | ||
pd.options.display.float_format = '{:e}'.format | ||
|
||
rule custom__export_de_genes_for_revigo: | ||
""" | ||
Export differentially expressed genes and their GO annotations in format suitable for visualization | ||
in the Revigo webpage (http://revigo.irb.hr/) | ||
:input des: TSV table with DE genes | ||
:input gos: Annotation of genes - TSV file with columns id and external_id | ||
""" | ||
input: | ||
des = 'classification/{reference}/report/comparison/significant.tsv', | ||
gos = 'reference/{reference}/annotation.transcripts/go/attributes.tsv' | ||
output: | ||
revigo = 'classification/{reference}/report/comparison/significant.revigo.tsv' | ||
run: | ||
des = pd.read_csv(input.des, sep='\t', index_col='Row.names') | ||
gos = pd.read_csv(input.gos, sep='\t', index_col=0) | ||
merged = des.merge(gos, left_index=True, right_index=True, how='inner') | ||
merged[['external_id', 'PValue']].to_csv(output.revigo, sep='\t', index=None, header=None) | ||
|
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