Git Product home page Git Product logo

gtrack's People

Contributors

evanbiederstedt avatar imielinski avatar jrafailov avatar kevinmhadi avatar mskilab avatar shaiberalon avatar shihabdider avatar walaj avatar xtyao avatar zining01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gtrack's Issues

draw.backbone not found

after installing gTrack, draw.backbones is not appearing as a possible argument for gTrack.

renaming parameters

This page will store name changes to gTrack parameters. Changes made might help users remember parameters. I propose that every word be separated by a period.

Old Name | New Name

name | title

track.splice

where should we put this?

I like keeping it gTrack - I think it shows off gTrack very nicely, however it relies on read.bam, so we have a little dependency crisis

otherwise we should at least put into skitools

cex.label is not set using metadata

For example, when plotting a gGraph, this doesn't do anything:

gg$set(cex.label = 2)

And hence we need to do this currently:

plot(gg$gtrack(cex.label = 2))

chr.sub

Propose removing this. Not sure what the issue is with having "chr" in the seqinfo, and it seems like if there is a problem, a more general solution should be used (e.g. manipulate seqinfo however you like on your own, and then set with seqinfo<- )

Integer plotting and width definition change

gTrack has typically plotted ranges with a different definition of widths than GRanges. e.g. a range of [4,5] is width 1 in gTrack and width 2 in GRanges. This can cause strange behavior and odd looking plots when looking at small genomes where single base-pairs make a difference.

I have changed the code so that gTrack now defines width the same as GRanges. This means that the x-axis had to be shifted by 0.5 as below, and GRanges-width 1 ranges now plot to "cover" that base:

mdat <- matrix(sample(10, 4, replace=TRUE), ncol=2, nrow=2)
mdat[upper.tri(mdat)] <- mdat[lower.tri(mdat)]
gr <- GRanges(c(1,1), IRanges(c(5,6), width=1), strand=c("+","-"))

image

gr <- GRanges(1, IRanges(c(5), width=1), strand=c("+"))

image

Doing some debugging on this fix, will check in soon.

Problem with generating JaBbA plots

Thank you, that worked to install JaBbA with Gurobi! However, I am now trying to run it on the simple example provided and I'm running into some problems.

  1. The first time I run it with jba ${JABBA_PATH}/junctions.vcf ${JABBA_PATH}/coverage.txt --gurobi TRUE, it doesn't find the segmentation, so it runs segmentation, it saves the seg.rds file, but then it gives an error:

" .....
JaBbA 2023-10-16 16:29:56.631185: No segmentation provided, so performing segmentation using CBS
JaBbA 2023-10-16 16:29:56.694123: Segmentation finished
.....
JaBbA 2023-10-16 16:29:58.848608: Built gGraph with 82 nodes, 104 edges, purity 0.6, and ploidy 1.93
Error in !is.null(formatting(object)$y.field) && !is.na(formatting(object)$y.field) :
'length = 2' in coercion to 'logical(1)'
Calls: suppressPackageStartupMessages ... validObject -> anyStrings -> isTRUE -> validityMethod
"

  1. Then, if I run it the second time, since it has the segmentation file it uses it, it seems to work fine, it creates the jaba.simple.gg.rds file, but then it gives some plotting errors:

" ...
Generating figures
JaBbA 2023-10-16 16:46:15.355457: Something wrong with plotting JaBbA results. Please try it later.
JaBbA 2023-10-16 16:46:15.382705: Something wrong with plotting JaBbA simplified results. Please try it later.
..."

Thank you for your help!

Originally posted by @mandronescu in mskilab-org/JaBbA#94 (comment)

y.field with multiple fields?

Looks like there is some code to check for y.field being length > 1 in "initialize". Should we maintain this? Looks like it just re-creates length(y.field) .Objects

Karyogram method does not work when bands are set to FALSE

That karyogram method takes a bands parameter: karyogram = function(file = NULL, hg19 = TRUE, bands = TRUE, arms = TRUE, tel.width = 2e6, ... ). Setting this flag to FALSE triggers the following error:

>  karyogram_gt_no_bands = karyogram(hg19 = TRUE, bands = FALSE)
Error in .normarg_seqnames2(seqnames, seqinfo) :
'seqnames' contains sequence names with no entries in 'seqinfo'

When arms are also set to FALSE, this triggers a different error:

>   karyogram_gt_no_arms = karyogram(hg19 = TRUE, bands = FALSE, arms = FALSE)
Error in attributes(.Data) <- c(attributes(.Data), attrib) : 
  'names' attribute [24] must be the same length as the vector [0]

Installation error

I keep getting this error when trying to install gTrack in R 3.6.1. Any idea why?
I was able to install and load gUtils just fine.

devtools::install_github('mskilab/gTrack')
Downloading GitHub repo mskilab/gTrack@master
Error: Failed to install 'gTrack' from GitHub:
Could not find tools necessary to compile a package
Call pkgbuild::check_build_tools(debug = TRUE) to diagnose the problem.

plot Not detecting gTrack

Anyone know the right way to do this? It looks like the method is being exported in the NAMESPACE file, and it shows up as accepting a gTrack with a showMethods('plot') call, but its not detecting gTrack when I build gTrack as a package rather than source (If I source gTrack.R directly, plot(g) works). If I attach as package, it errors with this when trying to call base::plot:

Error in as.double(y) :
cannot coerce type 'S4' to vector of type 'double'

Any thoughts?

"windows" as GRanges vs GRangesList

I noticed that there is code to loop through "windows" in plot, where each windows is a GRangesList. What is the reason why there would be a GRangesList of windows, as opposed to an st-reduced GRanges specifying the coordinates to plot on? Can we just make these GRanges with no window loop?

varbase

varbase func. is fully commented in gTrack. Should I remove it and include it in bamUtils b/c it deals with cigar data.

repos is too heavy

There are a lot of heavy data files that are used in the examples, that could be moved from the repos to a space online. I updated gTrack.R to now pull the gencode.composite.rds from the web rather than locally.

If we're OK with this, let me know and I'll clean the repos of these files (including from past commits, otherwise git rm doesn't really do much). The catch is that after cleaning, you'll need to delete and reclone the repos, or else the old heavy files will get back in.

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.