-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename GeneMatrixTransposed to GeneSets, add minimal tests
- Loading branch information
1 parent
1653ac1
commit fb8e265
Showing
6 changed files
with
31 additions
and
8 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
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
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,3 @@ | ||
## Legal | ||
|
||
A subset of Gene Ontology gene sets is used in tests. Gene Ontology is licenced under [Creative Commons Attribution 4.0 Unported License](https://creativecommons.org/licenses/by/4.0/legalcode). |
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,4 @@ | ||
GO:0061038 uterus morphogenesis ASH1L KDM5B STRA6 WNT7A WNT9B NIPBL | ||
GO:0048265 response to pain TAC1 COMT TSPO SLC6A2 TRPA1 P2RX3 THBS4 TACR1 DBH PRKCG GCH1 NMUR2 P2RX4 EDNRB THBS1 CACNA1A CRH CACNA1B CAPN2 UCN RET SCN9A VWA1 LPAR5 GJA4 P2RX2 RELN TRPV1 NTRK1 PIRT | ||
GO:0061366 behavioral response to chemical pain P2RX3 NTRK1 | ||
GO:0061368 behavioral response to formalin induced pain P2RX3 NTRK1 |
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,9 @@ | ||
from gsea_api.molecular_signatures_db import GeneSets | ||
|
||
|
||
def test_from_gmt(): | ||
pathways = GeneSets.from_gmt('tests/gene_ontology_pathways.gmt') | ||
assert len(pathways) == len(pathways.gene_sets) | ||
assert len(pathways.gene_sets) == 4 | ||
|
||
assert len(pathways.trim(min_genes=3, max_genes=100)) == 2 |