From 86f11d23d25ecb172b068e6a44e15b30583839db Mon Sep 17 00:00:00 2001 From: Yassin Refahi <yassin.refahi@gmail.com> Date: Fri, 3 Apr 2020 13:59:14 +0000 Subject: [PATCH] Update README.md --- geneExpressionData/AtlasViewerFormat/README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/geneExpressionData/AtlasViewerFormat/README.md b/geneExpressionData/AtlasViewerFormat/README.md index 254475b..1ba1793 100644 --- a/geneExpressionData/AtlasViewerFormat/README.md +++ b/geneExpressionData/AtlasViewerFormat/README.md @@ -8,3 +8,12 @@ Drag and drop the segmentation file and the visualization widget and then drag and drop the pattern file. Select the genes to visualize form the right pane and click "Atlas gene expression" button from the AtlasViewer menu. +To read the .pat files in the folders: + +import cPickle + fobj = file("patternFileName.pat") + patterns = cPickle.load(fobj) + fobj.close() + + #patterns is a Python dictionary whose keys are genes and values are cell + labels expressing the gene. \ No newline at end of file -- GitLab