Skip to content

Chromosome label too close to the chromosome plot. #774

@GurjotSinghSidhu

Description

@GurjotSinghSidhu

Image

I am trying to plot three homologous chromosomes from related species and I found that chromosome label is too close to the actual chromosome. The instructions mention that I can play with labels, their sizes etc, but I don't know how.

The second chromosome I am plotting is inverted (i.e. it starts from left and goes to right). I had to do this to have better visualization of the synteny. But the label for that chromosome is right on the top of the chromosome itself.

my layout file is here:

# y, xstart, xend, rotation, color, label, va,  bed
 .8,     .2,    .9,       0, #1cbdcc, EleCor_B chr 8B, top, __OUTDIR__/EleCor_B.bed
 .5,     .9,    .2,       0, #934c98, EleInd chr6, top, __OUTDIR__/EleInd.bed
 .2,     .2,    .9,       0, #f7931e, EleCor_A chr 8A, bottom, __OUTDIR__/EleCor_A.bed
# edges
e, 0, 1, __OUTDIR__/EleInd.EleCor_B.anchors.simple
e, 1, 2, __OUTDIR__/EleInd.EleCor_A.anchors.simple

and seqid file is here:

8A
Chr6
8B
I tried this updated layout file:
# y, xstart, xend, rotation, color, label, labelposition, labelfontsize, labelshift, va, bed
 .8,     .2,    .9,       0, #1cbdcc, EleCor_B chr 8B, top, 8, 0.05, __OUTDIR__/EleCor_B.bed
 .5,     .9,    .2,       0, #934c98, EleInd chr6, top, 8, 0.05, __OUTDIR__/EleInd.bed
 .2,     .2,    .9,       0, #f7931e, EleCor_A chr 8A, right, 8, 0.05, bottom, __OUTDIR__/EleCor_A.bed
# edges
e, 0, 1, __OUTDIR__/EleInd.EleCor_B.anchors.simple
e, 1, 2, __OUTDIR__/EleInd.EleCor_A.anchors.simple

But it shows me error that:
FileNotFoundError: [Errno 2] No such file or directory: '8'

which I assume means that its not reading the label position properly. Any help would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions