Skip to content

Commit

Permalink
Invert (and fix) the tissue_mask when creating tensor object for gene…
Browse files Browse the repository at this point in the history
… maps analysis (#46)

Co-authored-by: Angad Pal Singh <[email protected]>
  • Loading branch information
angadps and Angad Pal Singh authored Apr 13, 2022
1 parent 042e9a9 commit c1f7ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xfuse/analyze/gene_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _prepare(x):

def _save_tensor(gene, samples, tissue_mask):
if tissue_mask is not None:
samples[:, tissue_mask] = 0.0
samples[:, ~tissue_mask] = 0.0
torch.save(samples, f"{gene}.pt")

writers: Dict[str, Callable[..., None]] = {
Expand Down

0 comments on commit c1f7ead

Please sign in to comment.