Giter Club home page Giter Club logo

Comments (4)

brentp avatar brentp commented on June 3, 2024

Hi Wendy, I don't think jigv is the cause. It's been a while since I've looked at this code but I just went through it and don't see any subsampling in the JS or the nim.
I also don't see any mention about 1500 in the igv.js code (not sure if you mention that as an exact number or just approximate).

from jigv.

shukwong avatar shukwong commented on June 3, 2024

Thanks, Brent! Yes, it's not because of jigv (1500 is just approx). I think it has to do with the default subsamling of reads in igv.js (e.g. igvteam/igv.js#249). I am wondering if there's a way to pass some parameters to igv.js to turn off subsampling or set samplingDepth to a higher number?

from jigv.

brentp avatar brentp commented on June 3, 2024

ah. I understand now. There's not a good way to do this. That's the major limitation of the current jigv the I never fixed--it's hard to allow the user to specify simple javascript to do things like set sampleDepth.

If you want to modify jigv, you can use this diff:

diff --git a/track.nim b/track.nim
index 94b8296..e9242f7 100644
--- a/track.nim
+++ b/track.nim
@@ -136,6 +136,7 @@ proc `%`*(T:Track): JsonNode =
     fields["coverageTrackHeight"] = % 24
     fields["showSoftClips"] = % true
     fields["viewAsPairs"] = % true
+    fields["samplingDepth"] = % 2000
   return JsonNode(kind: JObject, fields: fields)
 
 proc `$`*(T:Track): string =

and re-build. I'll have a look at making this easier with user-specified javascript from the command-line, but I don't see a simple way right now.

from jigv.

shukwong avatar shukwong commented on June 3, 2024

Great! That's exactly what I was looking for! I will give it a try, thank you so much!

from jigv.

Related Issues (18)

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.