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

Tutorial pbmc4k #1

Open
camilliano opened this issue May 15, 2018 · 15 comments
Open

Tutorial pbmc4k #1

camilliano opened this issue May 15, 2018 · 15 comments

Comments

@camilliano
Copy link

Hello,
I am trying the SPRING new version.
I have some trouble with the tutorial pbmc 4K.

The preprocessing is OK but when I try to ,visualize I have a lot of issues...

So I run this in the SPRING_dev-master folder:
python -m CGIHTTPServer 8080

then:


(idem with springViewer_1_5) and I have this on the terminal:

127.0.0.1 - - [15/May/2018 15:19:20] code 404, message File not found
127.0.0.1 - - [15/May/2018 15:19:20] "GET /datasets/pbmc4k/graph_data.json HTTP/1.1" 404 -
127.0.0.1 - - [15/May/2018 15:19:20] code 404, message File not found
127.0.0.1 - - [15/May/2018 15:19:20] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [15/May/2018 15:19:21] code 404, message File not found
127.0.0.1 - - [15/May/2018 15:19:21] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [15/May/2018 15:20:40] "GET /springViewer_1_5_dev.html?datasets/pbmc4k/full HTTP/1.1" 200 -
127.0.0.1 - - [15/May/2018 15:20:40] code 404, message File not found
127.0.0.1 - - [15/May/2018 15:20:40] "GET /datasets/pbmc4k/full/mutability.txt HTTP/1.1" 404 -
127.0.0.1 - - [15/May/2018 15:20:40] code 404, message File not found
127.0.0.1 - - [15/May/2018 15:20:40] "GET /datasets/pbmc4k/selected_cells.txt HTTP/1.1" 404 -

FYI in pbmc4k folder there is :
/counts_norm.npz
/counts_norm_sparse_cells.hdf5
/counts_norm_sparse_genes.hdf5
/genes.txt
/total_counts.txt

and folder /full with
/categorical_coloring_data.json
/cell_filter.npy
/cell_filter.txt
/color_data_gene_sets.csv
/color_stats.json
/coordinates.txt
/edges.csv
/graph_data.json
/intermediates.npz
/run_info.json

What did I miss?

Thanks you for your help!

Camille

@swolock
Copy link
Collaborator

swolock commented May 15, 2018

Hi Camille,

I'm not sure of the problem, but here a couple things to check:

  1. Does the folder SPRING_dev-master/datasets/pbmc4k/full/ exist?

  2. Are are you using the following URL to (try to) view the SPRING plot?
    http://localhost:8080/springViewer_1_5_dev.html?datasets/pbmc4k/full

By the way, it is normal to see a few "File not found" messages, but not for graph_data.json.

Best,
Sam

@camilliano
Copy link
Author

Yes the folder does exist and yes I am using the right url...

@swolock
Copy link
Collaborator

swolock commented May 15, 2018

Ok, a few more questions for you:

  1. What happens when you try to load the URL? Does anything get displayed?
  2. What browser are you using? We usually use Chrome on Mac and Chrome or Edge on Windows. In Chrome, it's often best to use incognito mode to make sure everything is getting properly refreshed.
  3. Can you share any messages printed in the javascript console? (in Chrome: View>Developer>JavaScript Console)

@camilliano
Copy link
Author

when I load the URL
http://localhost:8080/springViewer_1_5_dev.html?datasets/pbmc4k/full : nothing
http://localhost:8080/springViewer_1_6_dev.html?datasets/pbmc4k/full : I only have a network but I can't use any functions or "play" with the network.
I am on Firefox in linux environment.

@swolock
Copy link
Collaborator

swolock commented May 16, 2018

I see. We've never tested this on Linux, so it's possible that's the issue. Can you tell me what gets printed in the web console (Ctrl+Shift+K) when you try to load the URL?

@camilliano
Copy link
Author

The early version works just fine..
Sorry for the copied/pasted, here is what I obtained:

"Pixi.js 4.5.1 - WebGL - http://www.pixijs.com/"  pixi.min.js:16:11030
datasets/pbmc4k  forceLayout_script.js:540:5
datasets/pbmc4k/full  forceLayout_script.js:541:5
Got the data  forceLayout_script.js:547:13
# genes =  33694  colorBar.js:666:4
ANIM  forceLayout_script.js:416:2
Gene =    colorBar.js:534:5
Gene =  CD3D  colorBar.js:534:5
Read gene data:  530  colorBar.js:180:21
Gene =  CD3D  colorBar.js:534:5
Read gene data:  168  colorBar.js:180:21
Gene =  CD3D  colorBar.js:534:5
Read gene data:  166  colorBar.js:180:21
Gene =  CD3D  colorBar.js:534:5
Read gene data:  128  colorBar.js:180:21
Gene =  LYZ  colorBar.js:534:5
Read gene data:  180  colorBar.js:180:21
Gene =  LYZ  colorBar.js:534:5
Read gene data:  156  colorBar.js:180:21

@swolock
Copy link
Collaborator

swolock commented May 17, 2018

Great, that narrows it down a bit. Do you see a file called "tmplog2" in SPRING_dev-master? It should be created when you try to enter a gene name to view. If it's there, can you share its contents? I've pasted a "successful" example below; yours is probably breaking somewhere along the way.

import cgi -- 0.047
import numpy -- 1.141
import h5py -- 0.555
got cgi data -- 0.000
CD3D
got cell filter-- 0.008
loaded hdf5 data -- 0.022
inialized array -- 0.000
filled array -- 0.000
filtered array -- 0.000
returned data -- 0.003
1.78184390068

Similarly would you mind telling me what happens when you enter cgi-bin/grab_one_gene.py in the terminal?

@camilliano
Copy link
Author

Here is what I have in the "tmplog2" file

import cgi -- 0.013
import numpy -- 0.064

And here just to show you what my windows looks like:

bug_spring

@swolock
Copy link
Collaborator

swolock commented May 17, 2018

It looks like python is failing to import h5py. Since you were able to run the example notebook, which also uses h5py, it appears that you are using a different python environment to run your local server. I would try installing h5py in this environment, or activating the same the environment you used in the notebook before starting the local server.

@camilliano
Copy link
Author

I will try this, thanks for the advice. I will tell you the results...
Here is cgi-bin/grab_one_gene.py output

Traceback (most recent call last):
  File "cgi-bin/grab_one_gene.py", line 45, in <module>
    update_log(logf, gene)
  File "cgi-bin/grab_one_gene.py", line 16, in update_log
    o.write(logdat + '\n')
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

@QiangShiPKU
Copy link

I have the similar issues.

import cgi -- 0.009
import numpy -- 0.071
import h5py -- 0.031
got cgi data -- 0.000
CD3D
  • My output is the same as @camilliano for cgi-bin/grab_one_gene.py

  • My "tmplogenrich" file is empty.

@AllonMKlein
Copy link
Collaborator

AllonMKlein commented Aug 13, 2018 via email

@QiangShiPKU
Copy link

@swolock
Copy link
Collaborator

swolock commented Aug 14, 2018

@QiangShiPKU I was able to load your SPRING plot successfully. I think the issue may be the "/" at the beginning of the path in your URL. Can you try using this one instead?
http://localhost:8000/springViewer_1_6_dev.html?datasets/pbmc4k/full

@QiangShiPKU
Copy link

QiangShiPKU commented Aug 15, 2018

@swolock yeah...I was so negligent. Many thanks for your hospitality

Demopans pushed a commit to Demopans/SPRING_py3 that referenced this issue Apr 17, 2024
Python 3 Update + Miscellaneous Cleanup and Improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants