Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--genelabels= won't work. #558

Open
lczqd opened this issue Apr 7, 2023 · 5 comments
Open

--genelabels= won't work. #558

lczqd opened this issue Apr 7, 2023 · 5 comments

Comments

@lczqd
Copy link

lczqd commented Apr 7, 2023

Hi @tanghaibao,

I run the following code successfully:

python -m jcvi.graphics.synteny pma.gar.i3.blocks.miR-126.pma1.vs.gar3.large.txt pma_gar_add_pre-miRNA.sorted.bed pma.gar.i3.blocks.miR-126.pma1.vs.gar3.layout.large.txt --glyphstyle=arrow --genelabelsize=3
......
[08:53:59] DEBUG Figure saved to pma.gar.i3.blocks.miR-126.pma1.vs.gar3.large.pdf (2400px x 2100px)

But when I tried to display labels of selected genes using the following code, it failed:

python -m jcvi.graphics.synteny pma.gar.i3.blocks.miR-126.pma1.vs.gar3.large.txt pma_gar_add_pre-miRNA.sorted.bed pma.gar.i3.blocks.miR-126.pma1.vs.gar3.layout.large.txt --genelabels=Pma-Mir-126-P4,Loc-Mir-126

Usage:
synteny.py mcscan.txt all.bed layout.csv

Illustrate MCscan multiple collinearity alignments. Use layout.csv to indicate
the positions of tracks. For example:

#x, y, rotation, ha, va, color, ratio
0.5, 0.6, 0, left, center, g
0.25, 0.7, 45, center, center, m

With the row ordering corresponding to the column ordering in the MCscan output.

For "ha" (horizontal alignment), accepted values are: left|right|leftalign|rightalign|center|""(empty)
For "va" (vertical alignment), accepted values are: top|bottom|center|""(empty)

synteny.py: error: option --genelabelsize: invalid integer value: 'Pma-Mir-126-P4,Loc-Mir-126'

Would you please give me some suggestion?

Many thanks.

@tanghaibao
Copy link
Owner

@lczqd

You probably wanted to use --genelabels instead of --genelabelsize. Here are the description of options.

  --genelabels=GENELABELS
                        Show only these gene labels, separated by comma.
                        Example: "At1g12340,At5g54690" [default: none]
  --genelabelsize=GENELABELSIZE
                        Show gene labels at this font size, useful for
                        debugging. However, plot may appear visually crowded.
                        Reasonably good values are 2 to 6 [default: 0]

Haibao

@lczqd
Copy link
Author

lczqd commented Apr 7, 2023

@tanghaibao

Thank you for the reply.

The problem is, --genelabels does not work. Its seems that mcscan tried to get --genelabelsize information from --genelabels command.

I did not use --genelabelsize in the following code:

python -m jcvi.graphics.synteny pma.gar.i3.blocks.miR-126.pma1.vs.gar3.large.txt pma_gar_add_pre-miRNA.sorted.bed pma.gar.i3.blocks.miR-126.pma1.vs.gar3.layout.large.txt --genelabels=Pma-Mir-126-P4,Loc-Mir-126

But it complains that:

synteny.py: error: option --genelabelsize: invalid integer value: 'Pma-Mir-126-P4,Loc-Mir-126'

I am baffled.

What could be the problem?

Thanks again.

@lczqd
Copy link
Author

lczqd commented Apr 12, 2023

@tanghaibao

Hi,

Can you please give me some advice?

Thanks.

@tanghaibao
Copy link
Owner

@lczqd

I am not sure what is wrong. Can you add option --genelabelsize=12 as well?

@cherrie-g
Copy link

cherrie-g commented Apr 18, 2023

@lczqd I have met same issue. I think maybe the genelabelsize parameter did not transfer to the graphic/synteny.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants