Bioconductor / Contributions

Contribute Packages to Bioconductor
134 stars 33 forks source link

scFeatures #2815

Closed ycao6928 closed 1 year ago

ycao6928 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 @ycao6928

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: scFeatures
Title: scFeatures: Multi-view representations of single-cell and spatial data for disease outcome prediction
Version: 0.99.1
Authors@R: 
    c(
    person(given = "Yue",family = "Cao", email = "yue.cao@sydney.edu.au",  role=c("aut", "cre")),
    person(given = "Yingxin",family = "Lin", email = "yingxin.lin@sydney.edu.au",  role="aut" ),
    person(given = "Ellis",family = "Patrick", email = "ellis.patrick@sydney.edu.au",  role="aut" ),
    person(given = "Pengyi",family = "Yang", email = "pengyi.yang@sydney.edu.au",  role="aut" ),
    person(given = "Jean Yee Hwa",family = "Yang", email = "jean.yang@sydney.edu.au",  role="aut" ))
Description: scFeatures constructs multi-view representations of single-cell and spatial data.
License: GPL-3
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.1
Remotes: 
    sqjin/CellChat
biocViews: CellBasedAssays, SingleCell, Software
Imports:
    ClassifyR,
    DelayedArray,
    DelayedMatrixStats,
    EnsDb.Hsapiens.v79,
    EnsDb.Mmusculus.v79,
    GSVA,
    Seurat,
    ape,
    caret,
    glue,
    dplyr,
    ensembldb,
    gtools,
    msigdbr,
    plyr,
    proxyC,
    reshape2,
    spatstat.core,
    spatstat.geom,
    tidyr,
    AUCell,
    BiocParallel,
    CellChat,
    SpatialExperiment,
    SummarizedExperiment,
    rmarkdown
Suggests: 
    knitr,
    inline
VignetteBuilder: knitr
vjcitn commented 1 year ago

You have

Remotes:
    sqjin/CellChat

All submissions must constrain their dependencies to packages that are in CRAN or Bioconductor. If CellChat is going to Bioconductor, please have it submitted and reviewed before submitting this one.

vjcitn commented 1 year ago

Additionally, I cannot speak for the build system per se, but on two independent linux systems that have succeeded with over 1000 current Bioc packages, I am seeing

tvjc@visually-civil-zebra:~$ R CMD build scFeatures
* checking for file 'scFeatures/DESCRIPTION' ... OK
* preparing 'scFeatures':
* checking DESCRIPTION meta-information ... OK
* installing the package to build vignettes
* creating vignettes ... ERROR
--- re-building ‘Vignette_associationstudy.Rmd’ using rmarkdown
Warning in png(..., res = dpi, units = "in") :
  unable to open connection to X11 display ''
Warning: The vignette title specified in \VignetteIndexEntry{} is different from the title in the YAML metadata. The former is "Vignette_associationstudy", and the latter is "Vignette - association study of features with conditions". If that is intentional, you may set options(rmarkdown.html_vignette.check_title = FALSE) to suppress this check.
--- finished re-building ‘Vignette_associationstudy.Rmd’

--- re-building ‘Vignette_detail.Rmd’ using rmarkdown
make cmd is
  make -f '/home/stvjc/BBS_space/R-4-2-dist/lib/R/etc/Makeconf' -f '/home/stvjc/BBS_space/R-4-2-dist/lib/R/share/make/shlib.mk' SHLIB='file54a0312495fd.so' OBJECTS='file54a0312495fd.o'

make would use
if test  "zfile54a0312495fd.o" != "z"; then \
  echo gcc -shared -L"/home/stvjc/BBS_space/R-4-2-dist/lib/R/lib" -L/usr/local/lib -o file54a0312495fd.so file54a0312495fd.o /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so  -L"/home/stvjc/BBS_space/R-4-2-dist/lib/R/lib" -lR; \
  gcc -shared -L"/home/stvjc/BBS_space/R-4-2-dist/lib/R/lib" -L/usr/local/lib -o file54a0312495fd.so file54a0312495fd.o /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so  -L"/home/stvjc/BBS_space/R-4-2-dist/lib/R/lib" -lR; \
fi
Quitting from lines 22-36 (Vignette_detail.Rmd) 
Error: processing vignette 'Vignette_detail.Rmd' failed with diagnostics:
/usr/bin/ld: cannot find /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so: No such file or directorycollect2: error: ld returned 1 exit statusmake: *** [/home/stvjc/BBS_space/R-4-2-dist/lib/R/share/make/shlib.mk:10: file54a0312495fd.so] Error 1
--- failed re-building ‘Vignette_detail.Rmd’

--- re-building ‘Vignette_summary.Rmd’ using rmarkdown
make cmd is
  make -f '/home/stvjc/BBS_space/R-4-2-dist/lib/R/etc/Makeconf' -f '/home/stvjc/BBS_space/R-4-2-dist/lib/R/share/make/shlib.mk' SHLIB='file54a05b06e4fc.so' OBJECTS='file54a05b06e4fc.o'

make would use
if test  "zfile54a05b06e4fc.o" != "z"; then \
  echo gcc -shared -L"/home/stvjc/BBS_space/R-4-2-dist/lib/R/lib" -L/usr/local/lib -o file54a05b06e4fc.so file54a05b06e4fc.o /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so  -L"/home/stvjc/BBS_space/R-4-2-dist/lib/R/lib" -lR; \
  gcc -shared -L"/home/stvjc/BBS_space/R-4-2-dist/lib/R/lib" -L/usr/local/lib -o file54a05b06e4fc.so file54a05b06e4fc.o /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so  -L"/home/stvjc/BBS_space/R-4-2-dist/lib/R/lib" -lR; \
fi
Quitting from lines 23-37 (Vignette_summary.Rmd) 
Error: processing vignette 'Vignette_summary.Rmd' failed with diagnostics:
/usr/bin/ld: cannot find /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so: No such file or directorycollect2: error: ld returned 1 exit statusmake: *** [/home/stvjc/BBS_space/R-4-2-dist/lib/R/share/make/shlib.mk:10: file54a05b06e4fc.so] Error 1
--- failed re-building ‘Vignette_summary.Rmd’

SUMMARY: processing the following files failed:
  ‘Vignette_detail.Rmd’ ‘Vignette_summary.Rmd’

Error: Vignette re-building failed.
Execution halted

Are there specific system configuration steps needed to get this package to build?

vjcitn commented 1 year ago

NB this Warning in png(..., res = dpi, units = "in") : unable to open connection to X11 display '' is ameliorated by running with xvfb-run, it is not an issue; the remaining errors noted arise under xvfb-run.

vjcitn commented 1 year ago
library(inline)
openblas.set.num.threads <- cfunction( signature(ipt="integer"),
                                       body = 'openblas_set_num_threads(*ipt);',
                                       otherdefs = c ('extern void openblas_set_num_threads(int);'),
                                       libargs = c ('/usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so'),
                                       language = "C",
                                       convention = ".C"
)
openblas.set.num.threads(1)

must be done in a portable way ... this is from Vignette_details

vjcitn commented 1 year ago

Finally I'd suggest not using "Vignette_" to prefix the name of the vignette files.

vjcitn commented 1 year ago

Use the package name or something more descriptive.

vjcitn commented 1 year ago

Apropos https://github.com/Bioconductor/Contributions/issues/2815#issuecomment-1271492099

please see https://stackoverflow.com/a/45796357/547331 and the associated https://cran.r-project.org/package=RhpcBLASctl -- thanks to Martin Morgan for this observation.

vjcitn commented 1 year ago

Let us know if you are going to work on this. @vjcitn tagging myself to ensure I hear about it.

ycao6928 commented 1 year ago

Dear @vjcitn, Thank you so much for looking into the package! Yes, we are actively working on it this week and addressing all the comments.

nick-robo commented 1 year ago

@vjcitn We have made significant changes. Could you have another look?

nick-robo commented 1 year ago

I think that running install.packages(RhpcBLASctl) might fix it. It is listed in the suggests dependencies, so it might not be installed automatically when building.

Another way to solve the dependency issues might be to run devtools::load_all() in the repository directory.

vjcitn commented 1 year ago

Yes, that was my bad, with the BLASctl failure.... but now we have a package of 127MB that is supposed to be no more than 5MB. So you'll have to discuss with @lshep whether this submission should include an ExperimentData package

vjcitn commented 1 year ago

It seems to be passing check cleanly, so we just have to meet the guidelines.

nick-robo commented 1 year ago

We downsampled the data and the package is now under 5MB.

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/scFeatures to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 1 year ago

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

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/scFeatures to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 1 year ago

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

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: "WARNINGS". 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/scFeatures to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

nick-robo commented 1 year ago

@PeteHaitch Could you please advise how to address the warning? We are not sure.

Warning: replacing previous import 'dplyr::select' by 'ensembldb::select' when loading 'scFeatures'

PeteHaitch commented 1 year ago

You are importing both in your NAMESPACE: https://github.com/SydneyBioX/scFeatures/blob/master/NAMESPACE#L44-L45

I think you will have to choose to import only one and then refer to the other using :: in your package code. E.g., you could choose to have importFrom(dplyr, select) (or the equivalent via roxygen2) and then use ensembldb::select() everywhere in your package code. Alternatively, you could import neither in your NAMESPACE and use the :: versions everywhere in your package code.

bioc-issue-bot commented 1 year ago

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

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: "WARNINGS". 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/scFeatures to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 1 year ago

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

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/scFeatures to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

nick-robo commented 1 year ago

@PeteHaitch Sorry for the delay. The package is now building without errors or warnings.

nick-robo commented 1 year ago

Sorry to ping you @PeteHaitch, but today is the deadline for package review for the next Bioconductor release. Is there anything that you would like us to address in the package?

PeteHaitch commented 1 year ago

Hi @nick-robo,

I'm sorry that I have not had time to review scFeatures before the deadline. scFeatures only got an 'OK' on the build system 3 days ago and there were several packages ahead of yours in the reviewing queue.

While scFeatures won't make the next Bioconductor release (3.16), once it's been through the review process and accepted it will be immediately available in the development branch (3.17). I know this may be disappointing, but unfortunately there is only so much time available this close to the release.

Cheers, Pete

nick-robo commented 1 year ago

No worries! We appreciate all the effort that goes into the reviewing process. Thanks for letting us know.

PeteHaitch commented 1 year ago

I'll return to reviewing packages now that the release of Bioconductor 3.16 is done. However, I also have a Masters thesis to review and abstracts for BioC Asia to review, both with deadlines next week, so I'm afraid I won't be able to start my package reviews until those commitments are behind me. Thanks for your patience.

PeteHaitch commented 1 year ago

Hi @ycao6928 and @nick-robo,

Apologies for the delay, but I'm finally back to having time to review BioC packages.

Unfortunately, scFeatures isn't building on BioC 3.17 (devel branch) due to the classifyR dependency being unavailable (see the build report for ClassifyR). I'm also unable to build ClassifyR on my laptop (macOS with Intel).

Would you please:

  1. Co-ordinate with @DarioS (ClassifyR maintainer) to get a version of classifyR building in BioC 3.17 (devel branch).
  2. Once you have that, do a version bump of scFeatures and push to the BioC git server to trigger a new build as part of the review process.

I'll then be able to do my review proper.

You might also take this opportunity to clarify the nature of the classifyR dependency. It appears that you only use ClassifyR in one of the vignettes, so it could be a suggested dependency (see https://contributions.bioconductor.org/description.html#depends-imports-suggests-enhances for how to do this properly.). There may be other packages that could similarly be moved into suggested packages.

Cheers, Pete

PeteHaitch commented 1 year ago

@ycao6928 and @nick-robo: would you also please clarify who is maintainer of scFeatures and taking responsibility for the review (this should be the same person). Thanks!

ycao6928 commented 1 year ago

Hi @PeteHaitch, many thanks for the suggestion! We will move classifyR to suggested dependency. I am the maintainer and taking responsibility of the review.

bioc-issue-bot commented 1 year ago

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

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/scFeatures to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

bioc-issue-bot commented 1 year ago

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

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: "WARNINGS". 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/scFeatures to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

nick-robo commented 1 year ago

@PeteHaitch I am just helping out with getting things working :)

Got a new version that builds! Not sure about the warning, effectiveLibSizes is not mentioned anywhere in the project.

PeteHaitch commented 1 year ago

Got a new version that builds! Not sure about the warning, effectiveLibSizes is not mentioned anywhere in the project.

I believe the warnings regarding effectiveLibrarySizes is coming from recent/in-progress changes to edgeR:

We prefer to review a package that is passing without any warnings or errors on the build report, so please try to resolve these first. If you're having trouble resolving it, you might need to post to the bioc-devel mailing list.

nick-robo commented 1 year ago

I might be wrong, but it seems like the problem is upstream.

edgeR is not used anywhere in scFeatures, but it is imported by dependency of a core dependency. It is not declared in scFeatures' namespace, so the warning (declared in NAMESPACE but not found) cannot be related to us.

r$> pak::local_deps_explain("edgeR")
scFeatures -> SpatialExperiment -> DropletUtils -> edgeR

Additionally, I cannot replicate the warning in a local build on a Linux system (all my packages are updated to the latest versions).

PeteHaitch commented 1 year ago

Okay, I'll test on my macbook tomorrow.

bioc-issue-bot commented 1 year ago

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

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: "WARNINGS". 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/scFeatures to trigger a new build. A quick tutorial for setting up remotes and pushing to upstream can be found here.

PeteHaitch commented 1 year ago

Hi @ycao6928,

Thank you for submitting scFeatures to Bioconductor.

I think the package needs a little more work, particularly to improve the documentation (man pages and vignettes), before it can be accepted. It also feels a bit awkward for a Bioconductor package to not have first-class support for Bioconductor data structures (SingleCellExperiment and SpatialExperiment). Yes, there's the makeSeurat() converter function but the main functionality requires a Seurat object as input. It would good in future versions to allow a user to pass a SingleCellExperiment/SpatialExperiment object as input (perhaps doing the conversion on the fly, if necessary, or, better yet, directly extracting the relevant data from the SingleCellExperiment/SpatialExperiment object)

In my review below I have separated the issues into Required and Recommended points that I would ask you to address before the package can be accepted. Would you please provide line-by-line comments to my initial review so that I know what changes I'm looking for in my re-review.

Cheers, Pete

Required

> feature_gene_prop_celltype  <- run_gene_prop_celltype(data_remove_mito, genes = genes_of_interest)
Error: BiocParallel errors
  1 remote errors, element index: 1
  1 unevaluated and other errors
  first remote error:
Error: Under current subsetting parameters, the default assay will be removed. Please adjust subsetting parameters or change default assay.
> feature_CCI <- run_CCI(data , species = "Homo sapiens" )
Error in run_CCI(data, species = "Homo sapiens") : 
  could not find function "run_CCI"
genes_of_interest <- c("TIGIT", "PDCD1")
feature_gene_prop_bulk <- run_gene_prop(data, genes = genes_of_interest )
Error: Under current subsetting parameters, the default assay will be removed. Please adjust subsetting parameters or change default assay.
scfeatures_result <- scFeatures(data, 
             # input selective feature types to generate.      
             feature_types = c("proportion_raw", "pathway_gsva", "L_stats", "gene_mean_celltype",    "gene_prop_aggregated") , 
             # by default assumes data is "scrna" (single-cell RNA-seq), this is now set to "spatial_p" (spatial proteomics).   
             type = "spatial_p" ,
             # by default assumes "Homo sapiens", this is now set to `Mus musculus`. 
             species  = "Mus musculus"  ,   
             # by default uses the 50 hallmark genes,  now set to user specified pathways.   
             geneset = list("pathway_a" = c("SMA" ,  "Vimentin"  ),  "pathway_b" = c("B7H3" ,"FoxP3"   )) ,
             # by default uses top variable genes to generate the celltype specific gene expression feature category,now set to user defined genes. 
             celltype_genes = data.frame(celltype = c("Macrophages"  , "Mono/Neu" ) , marker = c("CD3" , "p53")) ,
             # by default uses top variable genes to generate the overall aggregated gene expression feature category, now set to user defined genes.    
             aggregated_genes =  c("CD3" , "p53") , 
             # When passing as SingleCellExperiment or SpatialExperiment, by default we use the assay stored in "logcount" 
             assay = "norm",
            # By default we look for the sample info in "sample" column and the celltype info in "celltype" column
             sample = "imageID",
             celltype = "cellType",
      #  If users want to construct features from the spatial metrics category, by default we look for the "x_cord" and "y_cord" column 
             spatialCoords = c("x", "y"),
             # by default uses single core
             ncores = 8)
Error: Cannot find 'cellType' in this Seurat object
> unique(data$sample)[1:5]
[1] "Pre_P7"  "Pre_P24" "Pre_P28" "Pre_P33" NA
> unique(data$sample)[1:5]
[1] "Pre_P7_cond_Responder"  "Pre_P24_cond_Responder" "Pre_P28_cond_Responder"
[4] "Pre_P33_cond_Responder" NA
> output_folder <- tempdir()
> run_association_study_report(scfeatures_result, output_folder )
Error in abs_path(input) : The file 'output_report.Rmd' does not exist.
In addition: Warning message:
In normalizePath(path, winslash = winslash, mustWork = mustWork) :
  path[1]="output_report.Rmd": No such file or directory

Recommended

    * NOTE: Update R version dependency from 4.2.0 to 4.3.0.
    * NOTE: Consider adding the maintainer's ORCID iD in 'Authors@R' with
      'comment=c(ORCID="...")'
    * NOTE: Avoid 1:...; use seq_len() or seq_along()
    * NOTE: Use accessors; don't access S4 class slots via '@' in
      examples/vignettes.
    * NOTE: Consider adding runnable examples to man pages that document exported
      objects.
    * NOTE: Consider adding unit tests. We strongly encourage them. See
      https://contributions.bioconductor.org/tests.html
nick-robo commented 1 year ago

Thank you for the very detailed feedback! @ycao6928 and I are going to start working on it, and we will let you know when we have implemented the changes.

ycao6928 commented 1 year ago

Dear @PeteHaitch, thank you for the very detailed feedback! We have fixed all the required issues and some of the suggested issues. The line by line comments are pasted below:

Required

> feature_gene_prop_celltype  <- run_gene_prop_celltype(data_remove_mito, genes = genes_of_interest)
Error: BiocParallel errors
  1 remote errors, element index: 1
  1 unevaluated and other errors
  first remote error:
Error: Under current subsetting parameters, the default assay will be removed. Please adjust subsetting parameters or change default assay.
> feature_CCI <- run_CCI(data , species = \"Homo sapiens\" )
Error in run_CCI(data, species = \"Homo sapiens\") : 
  could not find function \"run_CCI\"
genes_of_interest <- c(\"TIGIT\", \"PDCD1\")
feature_gene_prop_bulk <- run_gene_prop(data, genes = genes_of_interest )
Error: Under current subsetting parameters, the default assay will be removed. Please adjust subsetting parameters or change default assay.
scfeatures_result <- scFeatures(data, 
             # input selective feature types to generate.      
             feature_types = c(\"proportion_raw\", \"pathway_gsva\", \"L_stats\", \"gene_mean_celltype\",    \"gene_prop_aggregated\") , 
             # by default assumes data is \"scrna\" (single-cell RNA-seq), this is now set to \"spatial_p\" (spatial proteomics).   
             type = \"spatial_p\" ,
             # by default assumes \"Homo sapiens\", this is now set to `Mus musculus`. 
             species  = \"Mus musculus\"  ,   
             # by default uses the 50 hallmark genes,  now set to user specified pathways.   
             geneset = list(\"pathway_a\" = c(\"SMA\" ,  \"Vimentin\"  ),  \"pathway_b\" = c(\"B7H3\" ,\"FoxP3\"   )) ,
             # by default uses top variable genes to generate the celltype specific gene expression feature category,now set to user defined genes. 
             celltype_genes = data.frame(celltype = c(\"Macrophages\"  , \"Mono/Neu\" ) , marker = c(\"CD3\" , \"p53\")) ,
             # by default uses top variable genes to generate the overall aggregated gene expression feature category, now set to user defined genes.    
             aggregated_genes =  c(\"CD3\" , \"p53\") , 
             # When passing as SingleCellExperiment or SpatialExperiment, by default we use the assay stored in \"logcount\" 
             assay = \"norm\",
            # By default we look for the sample info in \"sample\" column and the celltype info in \"celltype\" column
             sample = \"imageID\",
             celltype = \"cellType\",
      #  If users want to construct features from the spatial metrics category, by default we look for the \"x_cord\" and \"y_cord\" column 
             spatialCoords = c(\"x\", \"y\"),
             # by default uses single core
             ncores = 8)
Error: Cannot find 'cellType' in this Seurat object

Fixed: All exported functions now have Title, Description, Arguments, Return value.
Non - exported functions now have description.

> output_folder <- tempdir()
> run_association_study_report(scfeatures_result, output_folder )
Error in abs_path(input) : The file 'output_report.Rmd' does not exist.
In addition: Warning message:
In normalizePath(path, winslash = winslash, mustWork = mustWork) :
  path[1]=\"output_report.Rmd\": No such file or directory

Fixed: We have now used tempdir() rather than the current working directory. The no such file bug is also fixed.

Recommended

    * NOTE: Update R version dependency from 4.2.0 to 4.3.0.
    * NOTE: Consider adding the maintainer's ORCID iD in 'Authors@R' with
      'comment=c(ORCID=\"...\")'
    * NOTE: Avoid 1:...; use seq_len() or seq_along()
    * NOTE: Use accessors; don't access S4 class slots via '@' in
      examples/vignettes.
    * NOTE: Consider adding runnable examples to man pages that document exported
      objects.
    * NOTE: Consider adding unit tests. We strongly encourage them. See
      https://contributions.bioconductor.org/tests.html
PeteHaitch commented 1 year ago

Thanks for providing your response, @ycao6928. I'm on leave until January 10 and will resume reviews then. Wishing you a good Christmas and New Year break.

ycao6928 commented 1 year ago

@PeteHaitch Thank you and happy New Year to you too!