Giter Club home page Giter Club logo

panomir's People

Contributors

hackdna avatar nturaga avatar pouryany avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

panomir's Issues

Fix contents of data directory

WARNING from devtools::check()

Files not of a type allowed in a ‘data’ directory:
‘GeneSets’ ‘LIHC_gene.RDS’ ‘MirPathEnrichment’
‘TCGA-LIHC-DEmiRNAs.RDS’ ‘TCGA-LIHC-miRNAs_residuals.RDS’
‘preprocessed’
Please use e.g. ‘inst/extdata’ for non-R data files

Reference: https://r-pkgs.org/data.html

Undefined global functions or variables

Reported by devtools::check():

    %<>% . := E E<- ENSEMBL ES ES2 Intersect Pathway V V<- brewer.pal
    cluster_edge_betweenness coef contrasts contrasts.fit dev.off eBayes
    ends graph_from_data_frame hit hit2 induced_subgraph k
    layout.fruchterman.reingold layout_components legend lm lmFit
    makeContrasts median model.matrix p.adjust path_fdr pdf phyper pnorm
    pval qnorm relevel residuals.MArrayLM sd set_vertex_attr topTable
    write.csv x y

See also: #26

Reference:

Passing BiocCheck()

Errors

Warnings

  • "Description field in the DESCRIPTION file is too concise"
  • "Evaluate more vignette chunks."
  • "Remove set.seed usage (found 5 times)"
  • "Avoid T/F variables; If logical, use TRUE/FALSE (found 51 times)"
  • "The following files are over 5MB in size: '.git/objects/33/d794a2db6598e9fd6808ee815a21af38fb1f48 .git/objects/77/40f0f0d0abee5c3fee0c13d1eeeea044c62fa7 .git/objects/pack/pack-c37633e5c2521abc60f069884252e737552ee3dc.pack'"

Notes

  • " 'sessionInfo' not found in vignette(s)"
  • " Avoid the use of 'paste' in condition signals"
  • "Recommended function length <= 50 lines."
  • "Consider adding a NEWS file, so your package news will be included in Bioconductor release announcements."
  • "Consider shorter lines; 6 lines (0%) are > 80 characters long."
  • "Consider multiples of 4 spaces for line indents, 758 lines(32%) are not."
  • "Cannot determine whether maintainer is subscribed to the bioc-devel mailing list (requires admin credentials). Subscribe here: https://stat.ethz.ch/mailman/listinfo/bioc-devel"
  • " Avoid sapply(); use vapply()"
  • " Avoid 1:...; use seq_len() or seq_along()"
  • "'LazyData:' in the 'DESCRIPTION' should be set to false or removed" - [x] "Update R version dependency from 2.10 to 4.1.0."

Reduce data file size

R CMD check reports:

* checking installed package size ... NOTE
  installed size is 31.2Mb
  sub-directories of 1Mb or more:
    data  31.0Mb

Bioconductor says:

Potential solutions:

  • Remove (some of the) data files
  • Move large data files into a separate package

ClusterProfiler Error/External Utils?

The following build error can be avoided if we make a local version of the function bitr() from the clusterProfiler package. We can look into easier ways to address this of course.

` Error: Error: <callr_remote_error: Failed to build source package 'clusterProfiler'>
in process 9115
-->
Failed to build source package 'clusterProfiler', stdout + stderr:

OE> * installing source package ‘clusterProfiler’ ...
OE> staged installation is only possible with locking
OE> ** using non-staged installation
OE> ** R
OE> ** data
OE> ** inst
OE> ** byte-compile and prepare package for lazy loading
OE> Error in get(name, envir = asNamespace(pkg), inherits = FALSE) :
OE> object 'get_fun_from_pkg' not found
OE> Error: unable to load R code in package ‘clusterProfiler’
OE> Execution halted
OE> ERROR: lazy loading failed for package ‘clusterProfiler’
OE> * removing ‘/tmp/RtmpUL3O1s/pkg-lib239b6cc4dcf9/clusterProfiler’

Stack trace:

  1. (function (...) ...
  2. base:::withCallingHandlers(cli_message = function(msg) { ...
  3. get("pkg_install_do_plan", asNamespace("pak"))(...)
  4. pkgdepends::install_package_plan(plan = plan, lib = lib, num_workers = num_ ...
  5. base:::withCallingHandlers({ ...
  6. pkgdepends:::handle_events(state, events)
  7. pkgdepends:::handle_event(state, i)
  8. pkgdepends:::stop_task(state, worker)
  9. pkgdepends:::stop_task_build(state, worker)
  10. base:::throw(new_pkg_build_error("Failed to build source package {pkg}", ...
  11. base:::signalCondition(cond)
  12. (function (e) ...
  13. base:::stop(e)
  14. (function (e) ...

x Failed to build source package 'clusterProfiler'

Execution halted
Error: Process completed with exit code 1.`

Dependency on R >= 3.5.0

WARNING from devtools::check()

Added dependency on R >= 3.5.0 because serialized objects in serialize/load version 3 cannot be read in older versions of R.

File(s) containing such objects:
‘PanomiR/Data/GeneSets/MSigDB.RDS’
‘PanomiR/data/GeneSets/improved_PCxN_MSigDB.RDS’
‘PanomiR/data/LIHC_gene.RDS’
‘PanomiR/data/MirPathEnrichment/AllGenes_AllMirs_ENRICHMENT.RDS’
‘PanomiR/data/MirPathEnrichment/AllGenes_BrainMirs_ENRICHMENT.RDS’
‘PanomiR/data/MirPathEnrichment/BrainGenes_AllMirs_ENRICHMENT.RDS’
‘PanomiR/data/MirPathEnrichment/BrainGenes_BrainMirs_ENRICHMENT.RDS’
‘PanomiR/data/TCGA-LIHC-DEmiRNAs.RDS’
‘PanomiR/data/TCGA-LIHC-miRNAs_residuals.RDS’
‘PanomiR/data/preprocessed/MSigDBPathGeneTab.RDS’
‘PanomiR/data/preprocessed/NORMALIZED_MIRSETS_TargetScan00.rds’
‘PanomiR/data/preprocessed/NORMALIZED_MIRSETS_TargetScan01.rds’
‘PanomiR/data/preprocessed/NORMALIZED_MIRSETS_TargetScan02.rds’
‘PanomiR/data/preprocessed/NORMALIZED_MIRSETS_TargetScan03.rds’
‘PanomiR/data/preprocessed/brainGenes.RDS’
‘PanomiR/data/preprocessed/brainmiRNA.RDS’

Add dependency on R >= 3.5.0?
r-lib/usethis#631

May be resolved when #24 is fixed

some additional work before Bioconductor evaluation

The vignette includes

PanomiR can be accessed via Bioconductor. To install, start R (version > "4.1) and run the following code.

Note the > and the version number are inappropriate, along with the unmatched quotation mark. You should have >= 4.1.

At the end of the vignette, head(tempEnrich) had no output.

Please attend to these before review begins. Bump the version of your github repo. @lshep

Document data sets and code objects

WARNING by devtools:check():

  Undocumented code objects:
    ‘COV_TCGA_LIHC’ ‘TCGA_LIHC’ ‘brainGenes’ ‘brainMicroRNAs’ ‘msigdb_c2’
    ‘path_gene_table’ ‘pcxn’ ‘targetScan_00’ ‘targetScan_01’
    ‘targetScan_02’ ‘targetScan_03’
  Undocumented data sets:
    ‘COV_TCGA_LIHC’ ‘TCGA_LIHC’ ‘brainGenes’ ‘brainMicroRNAs’ ‘msigdb_c2’
    ‘path_gene_table’ ‘pcxn’ ‘targetScan_00’ ‘targetScan_01’
    ‘targetScan_02’ ‘targetScan_03’
  All user-level objects in a package should have documentation entries.
  See chapter ‘Writing R documentation files’ in the ‘Writing R
  Extensions’ manual.

Objects in data/ are always effectively exported. This means that they must be documented.
https://r-pkgs.org/data.html#documenting-data

Fix Rd usage sections

WARNING from devtools::check():

Undocumented arguments in documentation object 'DifferentialPathwayAnalysis'
‘contrast.conds’

Undocumented arguments in documentation object 'MappingPathwaysClusters'
‘weighted’

Undocumented arguments in documentation object 'Pathway_Gene_Tab'
‘pathway.list’

Undocumented arguments in documentation object 'PrioritizeMicroRNA'
‘enriches0’ ‘mir.path.fdr.thresh’ ‘run.jack.knife’
Documented arguments not in \usage in documentation object 'PrioritizeMicroRNA':
‘enriches’ ‘mir.path.fdr.selection’

Documented arguments not in \usage in documentation object 'getDesignMatrix':
‘pathways’

Undocumented arguments in documentation object 'methodProbBase'
‘n_paths’

Undocumented arguments in documentation object 'miRNAPathwayEnrichment'
‘genes.selection’
Documented arguments not in \usage in documentation object 'miRNAPathwayEnrichment':
‘gene.selection’

Functions with \usage entries need to have the appropriate \alias
entries, and all their arguments documented.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.