Comments (6)
@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.
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.
@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.
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.
@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!
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.
Maybe I understand now. I will come back if I have further questions!
from pycircos.
Related Issues (20)
- How would you add ticks at garc fucnction? HOT 1
- Saving a plot HOT 1
- Implementation of original Circos style ticks label plot function
- Suggestions for Improvements of API Documentation HOT 3
- Should pyCircos be published to somewhere?
- tickplot/barplot not respecting genome coordinates or value
- Tickplot examples? HOT 1
- Plotting gene density HOT 1
- Add opacity? HOT 1
- How are the ID's linked to the Phyla for the phylogenetic tree example? HOT 1
- Adding text inside each arc in a circle
- make the parameter names on the outer circle
- arrows for edges? HOT 1
- Y axis labels
- Adding legend (colormap)
- Issue with plotting CDS HOT 1
- Add requests to dependence
- Bug class Gcircle(object): HOT 1
- Within-code docstrings? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycircos.