Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update requirements.txt #9

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ GeneVector makes use of Scanpy anndata objects and requires that the raw count d

```
from genevector.data import GeneVectorDataset
from genevector.model import GeneVectorTrainer
from genevector.model import GeneVectorModel, GeneVector
from genevector.embedding import GeneEmbedding, CellEmbedding

import scanpy as sc
Expand All @@ -50,7 +50,6 @@ After loading the expression, creating a GeneVector object will compute the mutu
cmps = GeneVector(dataset,
output_file="genes.vec",
emb_dimension=100,
threshold=1e-6,
device="cuda")
cmps.train(1000, threshold=1e-6) # run for 1000 iterations or loss delta below 1e-6.
```
Expand All @@ -69,7 +68,7 @@ gembed = GeneEmbedding("genes.vec", dataset, vector="average")
```

#### 1. Computing gene similarities
A pandas dataframe can be generated using ```compute_similarities``` that includes the most similar genes and their cosine similarities for a given gene query. A barplot figure with a specified number of the most similar genes can be generated using ```plots_similarities```.
A pandas dataframe can be generated using ```compute_similarities``` that includes the most similar genes and their cosine similarities for a given gene query. A barplot figure with a specified number of the most similar genes can be generated using ```plot_similarities```.

```
df = gembed.compute_similarities("CD8A")
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ tqdm==4.64.1
seaborn==0.12.1
matplotlib==3.6.2
scikit-misc==0.1.4
torch==">=1.8.0"
torch>=1.8.0