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

Could not find function "simulateBregmaSpots" #29

Open
LYxiaotai opened this issue Dec 6, 2022 · 2 comments
Open

Could not find function "simulateBregmaSpots" #29

LYxiaotai opened this issue Dec 6, 2022 · 2 comments

Comments

@LYxiaotai
Copy link

Dear Brendan,

Sorry to bother you.

I wanted to generate the gene counts and metadata tables of individual cells profiled by MERFISH from the Moffit et al. 2018 raw data. And I followed the code at https://jef.works/STdeconvolve/process_mpoa_data.html.

but when I generate hash tables of simulated spots for each bregma separately by:

 FN7_hash <- simulateBregmaSpots(annot.table_,
                                 counts = counts_, # gene counts matrix
                                 patch_size = 100) # size of the simulated pixels in um2 (units of the Centroids)


I get the following error:

Error in simulateBregmaSpots(annot.table_, counts = counts_, patch_size = 100) : 
  could not find function "simulateBregmaSpots"

I dont't konw how to solve this problem, could you please give me some help?

Thank you so much in advance for your time!
Best,
Yi Liu

@bmill3r
Copy link
Collaborator

bmill3r commented Dec 6, 2022

Hi Yi Liu,

Thanks so much for using STdeconvolve and for your question. The reason why that particular function is not available in the namespace is because it is only available as part of the devel branch of STdeconvolve. You can see the function here on line 324. Further, you'll also notice that this function contains the roxygen tag @noRd so this function also won't be loaded into the namespace, but should still be able to be called if the devel version of STdeconvolve is installed via STdeconvolve::simulateBregmaSpots(). The reason for this is because simulateBregmaSpots() isn't needed for the functionality of STdeconvolve but rather is a function created to generate the simulated MPOA multicellular resolution dataset used in the paper. So it is only provided in the devel branch as a means for others to reproduce the analyses.

Without reinstalling the devel branch, you could copy the function itself into your R session. Note that to complete the MPOA vignette, you will also need the next function below it, buildBregmaCorpus().

Let me know if this helps or if you have any additional questions,

Brendan

@LYxiaotai LYxiaotai reopened this Dec 7, 2022
@LYxiaotai
Copy link
Author

Thank you so much for such a detailed answer, it helped me a lot. Thank you so much for your time again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants