-
Notifications
You must be signed in to change notification settings - Fork 1
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
input file format #7
Comments
Hello, The input is just a standard I'm not fully sure what's going on, but it seems the error happens when your Thanks! Best wishes, |
The problem isn't the three conditions, that's fine, as long as you specify which will be the control condition! Rather, the issue is that I suspect you have written something like
and then accidentally set something equivalent to
and thus you've set one of the cellchat output values as the imported Pandas module. What I would do is just define the cellchat output corresponding to the |
Please see the suggestion in #6. This is an artefact of FlowSig using pyliger to construct the GEMs. Basically, the obs and var indices both need to have a name. |
Thanks for your help. As your advise, it worked. However, when I tried to run: fs.pp.determine_informative_variables(adata, flowsig_expr_key = 'X_flow',flowsig_network_key = 'flowsig_network',spatial = False,condition_key = condition_key,qval_threshold = 0.1,logfc_threshold = 0.25), it reported another error that: Thanks! |
Seems like FlowSig isn't detecting any outflow variables from your data. Do you mind showing me the output when you run the following code?
Thanks! |
My bad, I meant to ask you to print:
|
Hi skytuguuu, Apologies for the late response. Looking at another issue, I realise what the issue is that in the tutorial specified by the README.md file gives the wrong command to use—I only realised this looking at issue #12 . Please could you try running the command instead:
But replace 'CON' with the condition key you used to specify the control condition, presumably one of 'PD', 'RD', or 'TN'. I updated the README.md to reflect this. Let me know if this works! |
Hi, Thank you for your help. I tried to use the command "fs.pp.determine_differentially_flowing_vars". But it seemed no this function. Traceback (most recent call last): It seemed I need to update the package, however, I tried but it failed. Thanks! |
Hi, I had the same problem. Did you solve it? |
Hi,
I met a problem when I tried to use the flowsig. I used my own datasets:

When I used the data to run fs.pp.construct_gems_using_pyliger(adata,n_gems = 10,layer_key = 'counts',condition_key = condition_key), it reported an error that:
#########
Traceback (most recent call last):
File "", line 1, in
File "/home/dell/anaconda3/envs/flow/lib/python3.8/site-packages/flowsig/preprocessing/_gem_construction.py", line 18, in construct_gems_using_pyliger
ad = adata.copy()
File "/home/dell/anaconda3/envs/flow/lib/python3.8/site-packages/anndata/_core/anndata.py", line 1525, in copy
return self._mutated_copy()
File "/home/dell/anaconda3/envs/flow/lib/python3.8/site-packages/anndata/_core/anndata.py", line 1461, in _mutated_copy
new["uns"] = deepcopy(self._uns)
File "/home/dell/anaconda3/envs/flow/lib/python3.8/copy.py", line 172, in deepcopy
y = _reconstruct(x, memo, *rv)
File "/home/dell/anaconda3/envs/flow/lib/python3.8/copy.py", line 295, in _reconstruct
value = deepcopy(value, memo)
File "/home/dell/anaconda3/envs/flow/lib/python3.8/copy.py", line 146, in deepcopy
y = copier(x, memo)
File "/home/dell/anaconda3/envs/flow/lib/python3.8/copy.py", line 229, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
File "/home/dell/anaconda3/envs/flow/lib/python3.8/copy.py", line 161, in deepcopy
rv = reductor(4)
TypeError: cannot pickle 'module' object
#############
It is probabally caused by my own data. If I used the tutorial datasets, it worked well.
Could you provide the detail of the input format and what is the error meaning for?
Thanks!
The text was updated successfully, but these errors were encountered: