-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Breanna Remigio
committed
Jun 4, 2024
1 parent
f00c15c
commit 118d0b9
Showing
3 changed files
with
76 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
""" | ||
PaCMAP of Weighted Projections based on Pf2 | ||
""" | ||
|
||
from ..imports import import_HTAN | ||
from .common import subplotLabel, getSetup | ||
from .commonFuncs.plotPaCMAP import plot_wp_pacmap | ||
from ..factorization import pf2 | ||
|
||
|
||
def makeFigure(): | ||
ax, f = getSetup((12, 10), (5, 4)) | ||
subplotLabel(ax) | ||
|
||
X = import_HTAN() | ||
|
||
rank = 20 | ||
X = pf2(X, rank, doEmbedding=True) | ||
|
||
for i in range(1, 21): | ||
plot_wp_pacmap(X, i, ax[i - 1], cbarMax=0.25) | ||
|
||
return f |
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,29 @@ | ||
""" | ||
PaCMAP of immune exclusion signature genes | ||
""" | ||
from ..imports import import_HTAN | ||
from .common import subplotLabel, getSetup | ||
from .commonFuncs.plotPaCMAP import plot_gene_pacmap | ||
from ..factorization import pf2 | ||
|
||
def makeFigure(): | ||
ax, f = getSetup((15, 8), (2, 4)) | ||
|
||
subplotLabel(ax) | ||
|
||
X = import_HTAN() | ||
|
||
rank = 20 | ||
X = pf2(X, rank, doEmbedding=True) | ||
|
||
# genes originate from epithelial cells | ||
plot_gene_pacmap("DDR1", "Pf2", X, ax[0]) | ||
plot_gene_pacmap("TGFBI", "Pf2", X, ax[1]) | ||
plot_gene_pacmap("PAK4", "Pf2", X, ax[2]) | ||
plot_gene_pacmap("DPEP1", "Pf2", X, ax[3]) | ||
|
||
|
||
|
||
|
||
|
||
return f |
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,24 @@ | ||
""" | ||
PaCMAP of Conditions | ||
""" | ||
|
||
from ..imports import import_HTAN | ||
from .common import subplotLabel, getSetup | ||
import numpy as np | ||
from .commonFuncs.plotPaCMAP import plot_labels_pacmap | ||
from ..factorization import pf2 | ||
|
||
def makeFigure(): | ||
ax, f = getSetup((8, 8), (1, 1)) | ||
|
||
subplotLabel(ax) | ||
|
||
X = import_HTAN() | ||
|
||
rank = 20 | ||
X = pf2(X, rank, doEmbedding=True) | ||
|
||
plot_labels_pacmap(X, "Condition", ax[0]) | ||
|
||
|
||
return f |