Bioconductor / Contributions

Contribute Packages to Bioconductor
134 stars 33 forks source link

(inactive) InSituType #2799

Closed davidpross closed 1 year ago

davidpross commented 1 year ago

Update the following URL to point to the GitHub repository of the package you wish to submit to Bioconductor

Confirm the following by editing each check box to '[x]'

I am familiar with the essential aspects of Bioconductor software management, including:

For questions/help about the submission process, including questions about the output of the automatic reports generated by the SPB (Single Package Builder), please use the #package-submission channel of our Community Slack. Follow the link on the home page of the Bioconductor website to sign up.

bioc-issue-bot commented 1 year ago

Hi @davidpross

Thanks for submitting your package. We are taking a quick look at it and you will hear back from us soon.

The DESCRIPTION file for this package is:

Package: InSituType
Type: Package
Title: An R package for performing cell typing in SMI and other single cell data
Version: 0.99.0
Authors@R: c(person("Patrick", "Danaher", email = "pdanaher@nanostring.com", role = c("aut", "cre")),
   person("Zhi", "Yang", email = "zyang@nanostring.com", role = c("aut")),
   person("David", "Ross", email = "dross@nanostring.com", role = c("aut")))
Description: Insitutype is an algorithm for performing cell typing in single cell 
   spatial transcriptomics data, such as is generated by the CosMx platform. 
   It can perform supervised cell typing from reference profiles, unsupervised clustering,
   or semi-supervised cell typing in which cells both reference cell types and de novo
   clusters are fit. 
biocViews: Clustering, SingleCell
Imports:
  Matrix,
  scales,
  umap,
  ggplot2,
  lsa,
  irlba,
  mclust,
  sparseMatrixStats,
  methods,
  rlang,
  grDevices,
  graphics,
  stats,
  utils,
  Rcpp (>= 1.0.9)
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Suggests:
  knitr,
  testthat
VignetteBuilder: knitr
Depends:
  R (>= 3.5.0)
RoxygenNote: 7.2.1
LinkingTo: Rcpp, RcppArmadillo
vjcitn commented 1 year ago

Vignettes do not explain or give a reference to CosMx. Please give scientific role of the package/technology in the vignette introductions so that newcomers are given context.

davidpross commented 1 year ago

Vignettes do not explain or give a reference to CosMx. Please give scientific role of the package/technology in the vignette introductions so that newcomers are given context.

Hi @vjcitn, thanks for taking a look at our package and the feedback. Good timing, the CosMx paper was released online yesterday. I added a reference to the paper to the vignettes as well as a short description and a reference to the public dataset. I bumped the version of the package to 0.99.1 along with these changes.

Let me know if there are any other items to address to move package forward in submission process. Thanks!

vjcitn commented 1 year ago

Thanks for being so responsive. Now I feel we need to think about interoperability.

counts <- mini_nsclc$counts
str(counts)
#>  num [1:2198, 1:960] 0 0 0 0 0 0 0 0 0 0 ...
#>  - attr(*, "dimnames")=List of 2
#>   ..$ : chr [1:2198] "c_3_18_2" "c_3_18_3" "c_3_18_4" "c_3_18_5" ...
#>   ..$ : chr [1:960] "AATK" "ABL1" "ABL2" "ACE" ...
counts[25:30, 9:14]
#>           ACTA2 ACTG2 ACVR1 ACVR1B ACVR2A ACVRL1
#> c_3_18_39     0     0     0      0      0      0
#> c_3_18_40     0     0     0      0      0      0
#> c_3_18_41     1     0     1      0      0      0
#> c_3_18_45     2     0     0      0      0      0
#> c_3_18_46     0     0     0      0      0      0
#> c_3_18_47     0     0     0      0      0      0

is from the "clustering a small..." vignette. Bioconductor packages use SummarizedExperiment or related classes whenever possible to help bind metadata about experiments and features right to the numerical quantifications. Please consider adopting this discipline.

davidpross commented 1 year ago

Bioconductor packages use SummarizedExperiment or related classes whenever possible to help bind metadata about experiments and features right to the numerical quantifications. Please consider adopting this discipline.

I've opened an issue in our repository to track this suggestion. I don't think it is something that can be integrated for the timeline of the 3.16 Bioconductor release. Is it a requirement for inclusion in that release?

In the interim our package can be used in related workflows by extracting and transforming the counts matrix, t(assays(se)$counts).

lshep commented 1 year ago

Interop would need to be implemented in some fashion before inclusion.

davidpross commented 1 year ago

With this PR I added the option to use a SingleCellExperiment class object with the core package functions insitutype and insitutypeML and to retrieve the counts matrix from that object. In addition there is a new vignette detailing how to use insitutype with a SingleCellExperiment object.

davidpross commented 1 year ago

Hello @vjcitn and @lshep, with Bioconductor Release 3.16 just ahead, how can we move this forward in the review process? Thanks!

vjcitn commented 1 year ago

I'd suggest you look at your vignettes, which do not use BiocStyle, and compare them to others in the ecosystem. The early screens of NSCLC-clustering-SingleCellExperiment-vignette.html are dominated by loading messages and data dumps, and

# define cluster colors:
cols <-
  c(
    '#8DD3C7',
    '#BEBADA',
    '#FB8072',
    '#80B1D3',
    '#FDB462',
    '#B3DE69',
    '#FCCDE5',
    '#D9D9D9',
    '#BC80BD',
    '#CCEBC5',
    '#FFED6F',
    '#E41A1C',
    '#377EB8',
    '#4DAF4A',
    '#984EA3',
    '#FF7F00',
    '#FFFF33',
    '#A65628',
    '#F781BF',
    '#999999'
  )
cols <- cols[seq_along(unique(unsup$clust))]
names(cols) <- unique(unsup$clust)

par(mfrow = c(1, 2))
par(mar = c(0, 0, 3, 0))

plot(mini_nsclc$x, mini_nsclc$y, pch = 16, cex = .75, asp = 1, cex.main = 0.75,
          main = "cells in physical space",
     col = cols[unsup$clust], xlab = "", ylab = "", xaxt = "n", yaxt = "n")

plot(mini_nsclc$umap, pch = 16, cex = .75, asp = 1, cex.main = 0.75,
     main = "cells in UMAP space",     
     col = cols[unsup$clust], xlab = "", ylab = "", xaxt = "n", yaxt = "n")
legend("bottomleft", pch = 16, col = cols, legend = names(cols), cex = 0.7)

isn't indicative of a user-friendly procedure. Can you have plot methods with reasonable defaults that are callable with concise code?

bioc-issue-bot commented 1 year ago

A reviewer has been assigned to your package. Learn what to expect during the review process.

IMPORTANT: Please read this documentation for setting up remotes to push to git.bioconductor.org. It is required to push a version bump to git.bioconductor.org to trigger a new build.

Bioconductor utilized your github ssh-keys for git.bioconductor.org access. To manage keys and future access you may want to active your Bioconductor Git Credentials Account

bioc-issue-bot commented 1 year ago

Dear Package contributor,

This is the automated single package builder at bioconductor.org.

Your package has been built on Linux, Mac, and Windows.

On one or more platforms, the build results were: "ERROR". This may mean there is a problem with the package that you need to fix. Or it may mean that there is a problem with the build system itself.

Please see the build report for more details. This link will be active for 21 days.

Remember: if you submitted your package after July 7th, 2020, when making changes to your repository push to git@git.bioconductor.org:packages/InSituType to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

HelenaLC commented 1 year ago

Hey there, as it's been 2 weeks, just a note in case this wasn't clear: We usually don't start formal review until there's a clean (warning- and error-free) build on on the Bioc system (see report above). If you have any questions regarding current issues, feel free to ask/discuss here.

davidpross commented 1 year ago

I've updated the package on GitHub to fix the errors in the build report. I am unable to push the changes to git@git.bioconductor.org:packages/InSituType though, I get the following error: FATAL: W any packages/InSituType patrickjdanaher DENIED by fallthru. Is it possibly because in the version on bioconductor.org I am not the package maintainer? The error mentions patrickjdanaher which is the GitHub handle for the maintainer listed in the DESCRIPTION file currently on the bioconductor.org git. In the changes I've recently made on the GitHub branch I am now the package maintainer.

lshep commented 1 year ago

Please try again. We have resolved the issue on our end and you should be able to push now.

bioc-issue-bot commented 1 year ago

Received a valid push on git.bioconductor.org; starting a build for commit id: 07ae239a0d4125327c00c5c30094f68f938a89ee

bioc-issue-bot commented 1 year ago

Dear Package contributor,

This is the automated single package builder at bioconductor.org.

Your package has been built on Linux, Mac, and Windows.

Congratulations! The package built without errors or warnings on all platforms.

Please see the build report for more details. This link will be active for 21 days.

Remember: if you submitted your package after July 7th, 2020, when making changes to your repository push to git@git.bioconductor.org:packages/InSituType to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

HelenaLC commented 1 year ago

Here a few initial comments. Note that some are suggestions and, although desirable, not strictly required (e.g., "encourage."). I marked some with !!! that are arguably more significant. Please comment back here with what has/not been addressed how/why not, or any comments regarding any needed clarification or questions you might have; happy to help/discuss. Cheers!

DESCRIPTION

vignette

code

documentation

other

bioc-issue-bot commented 1 year ago

This issue is being closed because there has been no progress for an extended period of time. You may reopen the issue when you have the time to actively participate in the review / submission process. Please also keep in mind that a package accepted to Bioconductor requires a commitment on your part to ongoing maintenance.

Thank you for your interest in Bioconductor.