-
Notifications
You must be signed in to change notification settings - Fork 2
Update readMerscopeSXE.R #6
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
base: devel
Are you sure you want to change the base?
Conversation
"X" is not the only possible value for "cell" in metadata file for merfish data (if we want to make it adaptable also to it)
consider using fread to load metadata files.
|
Hi Dario, Thank you for the PR! I agree with the fread and as.character() modification. About this line - Would it be possible that a metadata file contains all three columns named Sincerely, |
|
Hi @estellad, you are totally right, I cannot be absolutely sure about this, I can implement something different with a new commit. |
the idea is to check if there is only one among all the possibilities, in case there are none or more than one, it acts as in your default case.
|
see the commit message for this new commit. Let me know if this can work, otherwise I can think about something different. |
estellad
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Dario,
I would update the else statement to names(metadata)[idxcell[1]] <- "cell", so we take the first one of many idxcell. As long as we have a cell column, the merging will be fine.
Congrats on the package being accepted to BioC!
Thanks,
Estella
|
Hi @estellad, Works for me. If you prefer, I'm going to test the new code into SpaceTrooper before merging it. Thanks for the congrats, we are really happy the package has been accepted :) Dario |
|
Sounds good! Please let me know when you have finished the testing with a new commit, and then I will merge your PR? Looking forward to see SpaceTrooper in OSTA 😃 Estella |
|
I'm doing some tests, and still is not working on my tiny data. I'll keep you posted once I'll be able to fix everithing. Otherwise we can keep the merfish and merscope separated. |
"X" is not the only possible value for "cell" in metadata file for merfish data (if we want to make it adaptable also to it).
I also suggest to use the fread function to load metadata files (you already have an import on data.table).
Finally, you want to be sure that
metadata$cellis a character, because you are going to assign it asrownames.I'm trying to encapsulate your functions into SpaceTrooper functions and this fails when loading merfish data.
Would you consider to include this change into your function?
Thanks,
Dario