GithubHelp home page GithubHelp logo

Chord_plot coordinates about pycircos HOT 6 CLOSED

ponnhide avatar ponnhide commented on June 26, 2024
Chord_plot coordinates

from pycircos.

Comments (6)

ponnhide avatar ponnhide commented on June 26, 2024

@jaygut Thank you for using pyCircos.
Maybe, the descriptions in README are not proper and induce misunderstanding to you. "x coordinates on the Garc class" means "genomic coordinates on Garc class," so you can specify genomic positions for edge_position1 and edge_position2.
In fact, the input file used In my tutorial1 is just a description of the mock chromosomal positions.

If you have any questions, please let me know.

from pycircos.

jaygut avatar jaygut commented on June 26, 2024

Thanks @ponnhide for the prompt feedback, but perhaps I should have explained in more detail the idea I have with your code: my problem is that I don't deal with genomic sequences (no Bio.seq objects neither their coordinates) but with metagenomic samples, which I'm trying to plot them on the circos plot as arcs. Then, I was just inspecting each Garc object created and added to a Gcircle object, and tried to fetch the coordinates assigned internally as follows:

  • gcircle._garc_dict[key].coordinates

And based on these values I was then trying to create the object:

  • gcircle.chord_plot(source, destinat, facecolor=fc, linewidth=0.1, edgecolor="k")

But then noticed that chords plot is not rendered as expected, in particular the links between arcs are not placed according to the boundaries for each arc.

Can you get now what I'm trying to do? Is there a way to do this without creating a Bio.seq object for each of the samples I want to map on the circos plot?

Cheers

from pycircos.

ponnhide avatar ponnhide commented on June 26, 2024

@jaygut
Probably, I can understand your situation.
Then, I'm sorry that my non-proper implementation induces your misunderstanding...

In the current implementation, Garc_object.coordinates means not the coordinates on the Garc object but the coordinates of the Garc object on the parental Gcircle object.

On the other hands, when you make Garc object, I think you set ‘size’ parameter value. So, each Garc class object had its own coordinates within the range 0 to the size value.

Sorry for the confusing explanation.
If you have any questions, please let me know.

from pycircos.

jaygut avatar jaygut commented on June 26, 2024

Great, it worked like a charm! Now I can easily place the chords right in the middle of each garc object.

Thanks for the feedback,

Cheers,

Jay

from pycircos.

gmhhope avatar gmhhope commented on June 26, 2024

@jaygut @ponnhide Could any of you help make the solution more explicit? I am also trying to make chord plot on non-genomic circos plot and I also observed the displacement of the chords for the cytoband. I hope any of you can help! Thanks!
Screen Shot 2022-11-27 at 11 03 31 AM

Specifically, how you retrieve the 'source' & 'destinat' values in the examples if I don't have the genomic positions? In the current simplified example, I just create a dummy position for each cytoband and then I assumed that I can use the same start and end position to map the chord plot. But it doesn't seem to work?

from pycircos.

gmhhope avatar gmhhope commented on June 26, 2024

Maybe I understand now. I will come back if I have further questions!

from pycircos.

Related Issues (20)

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.