Giter Club home page Giter Club logo

gamblr.helpers's People

Contributors

kdreval avatar mattssca avatar vladimirsouza avatar

Watchers

 avatar  avatar  avatar

gamblr.helpers's Issues

FYI - Global variables listed in helpers-vars.R

I am curious, all the global variables in this script must've generated an error with devtools:check() since none of them are documented.

I recently added some variables in this style to GAMBLR.data and the check command complained that the documentation for such variables was missing.

So I am just curious if we're aware of this "error" in this package, or if there's something else going on.

Missing Function Documentation For A Multiple Functions

The following functions are currently missing documentation:

  • bins_to_bedgraph.R
  • cache_output.R
  • check_file_details.R
  • compare_coding_mutation_pattern.R
  • copy_no_clobber.R
  • gene_mutation_tally.R
  • get_template_wildcards.R
  • get_unmatched_normals.R
  • grob_wildcards.R
  • socketWrite.R
  • test_glue.R
  • web_add_update_page.R

Improvement to subset_cnstates

From a comment by Vladimir in PR Fixing internal call of get_sample_cn_segments in examples #17

I think this subset_cnstates function could be tweaked in the future. When run, it creates some objects in the global environment.

> rm(list=ls())
> devtools::load_all("/home/vsouza/repos/gamblr_repos/test_branches/GAMBLR.helpers/pr17/GAMBLR.helpers")
> cn_states = get_sample_cn_segments(these_sample_ids = c("02-13135T",
+                                                         "SU-DHL-4"),
+                                    streamlined = FALSE)
> ls()
[1] "cn_states"
> subset_cnstates(cn_segments = cn_states,
+                 samplen = 1)
> ls()
[1] "cn_1_sample1" "cn_3_sample1" "cn_4_sample1" "cn_5_sample1" "cn_6_sample1" "cn_states"   

As a consequence, when we run fancy_multisamp_ideogram, which internally runs subset_cnstates, these objects are also created in the global env, which probably is not a desirable but weird behaviour.

> rm(list=ls())
> library(GAMBLR.viz)
> fancy_multisamp_ideogram(these_sample_ids = c("05-18426T", "05-18426T"),
+                          include_cn2 = TRUE,
+                          plot_title = "Multi-sample Ideograms Example",
+                          plot_sub = "grch37",
+                          chr_anno_dist = 2.5,
+                          chr_select = paste0("chr", c(1:22)))
> ls()
[1] "cn_0_sample1" "cn_1_sample1" "cn_2_sample1" "cn_3_sample1" "cn_4_sample1"

If this is important, I could change it to not leave these "leftover" objects, or maybe just create an issue. What do you think?

README.md needs more information

The main README of this package should eventually be updated to provide more information on how to use this package and for what purpose this package was developed in the first place. Maybe the READMEs of all GAMBLR thematic packages should be standardized in a way that makes everything look uniform, to a certain extent.

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.