Skip to content

Commit

Permalink
eps output
Browse files Browse the repository at this point in the history
  • Loading branch information
WardDeb committed Jan 4, 2024
1 parent ac61a21 commit 00590cb
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 4 deletions.
8 changes: 8 additions & 0 deletions scripts/fig1.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ orthodraw_full <- ggtree(orthotree, aes(color=group)) +
ggsave('output/sup_fig8.pdf', orthodraw_full, device='pdf', dpi=300, width=12, height=12)
ggsave('output/sup_fig8.png', orthodraw_full, device='png', dpi=300, width=12, height=12)
ggsave('output/sup_fig8.tiff', orthodraw_full, device='tiff', dpi=300, width=12, height=12)
ggsave('output/sup_fig8.eps', orthodraw_full, device=cairo_ps, dpi=300, width=12, height=12)

# apthili virus -----------------------------------------------------------

Expand Down Expand Up @@ -229,6 +230,7 @@ apthilidraw_full
ggsave('output/sup_fig7.pdf', apthilidraw_full, device='pdf',dpi=300, width=12, height=12)
ggsave('output/sup_fig7.png', apthilidraw_full, device='png',dpi=300, width=12, height=12)
ggsave('output/sup_fig7.tiff', apthilidraw_full, device='tiff',dpi=300, width=12, height=12)
ggsave('output/sup_fig7.eps', apthilidraw_full, device=cairo_ps,dpi=300, width=12, height=12)

# Apparli virus -----------------------------------------------------------
# acc 2 name mappings
Expand Down Expand Up @@ -396,6 +398,7 @@ apparlidraw_full
ggsave('output/sup_fig6.pdf', apparlidraw_full, device='pdf', dpi=300, width=12, height=12)
ggsave('output/sup_fig6.png', apparlidraw_full, device='png', dpi=300, width=12, height=12)
ggsave('output/sup_fig6.tiff', apparlidraw_full, device='tiff', dpi=300, width=12, height=12)
ggsave('output/sup_fig6.eps', apparlidraw_full, device=cairo_ps, dpi=300, width=12, height=12)


# BMLV --------------------------------------------------------------------
Expand Down Expand Up @@ -583,6 +586,7 @@ bmlvdraw_full
ggsave('output/sup_fig5.pdf', bmlvdraw_full, device='pdf', dpi=300, width=12, height=12)
ggsave('output/sup_fig5.png', bmlvdraw_full, device='png', dpi=300, width=12, height=12)
ggsave('output/sup_fig5.tiff', bmlvdraw_full, device='tiff', dpi=300, width=12, height=12)
ggsave('output/sup_fig5.eps', bmlvdraw_full, device=cairo_ps, dpi=300, width=12, height=12)

# AMFV --------------------------------------------------------------------

Expand Down Expand Up @@ -759,6 +763,8 @@ amfvdraw_full
ggsave('output/sup_fig4.pdf', amfvdraw_full, device='pdf', dpi=300, width=12, height=12)
ggsave('output/sup_fig4.png', amfvdraw_full, device='png', dpi=300, width=12, height=12)
ggsave('output/sup_fig4.tiff', amfvdraw_full, device='tiff', dpi=300, width=12, height=12)
ggsave('output/sup_fig4.eps', amfvdraw_full, device=cairo_ps, dpi=300, width=12, height=12)

# dwv - vdv ---------------------------------------------------------------

vdvdwv.acc2name <- read.delim("data/trees/vdv_dwv.acc2name", header=FALSE)
Expand Down Expand Up @@ -875,10 +881,12 @@ vdvdraw_full
ggsave('output/sup_fig3.pdf', vdvdraw_full, device='pdf',dpi=300, width=12, height=12)
ggsave('output/sup_fig3.png', vdvdraw_full, device='png',dpi=300, width=12, height=12)
ggsave('output/sup_fig3.tiff', vdvdraw_full, device='tiff',dpi=300, width=12, height=12)
ggsave('output/sup_fig3.eps', vdvdraw_full, device=cairo_ps,dpi=300, width=12, height=12)

# Combine -----------------------------------------------------------------

testgrid <- grid.arrange(amfvdraw,bmlvdraw,apparlidraw,vdvdraw, apthilidraw ,orthodraw,nrow=3, ncol=2)
ggsave("output/fig1.pdf",testgrid, device = "pdf", height=15,width=20, limitsize=FALSE)
ggsave("output/fig1.png",testgrid, device = "png", height=15,width=20, limitsize=FALSE)
ggsave("output/fig1.tiff",testgrid, device = "tiff", height=15,width=20, limitsize=FALSE)
ggsave("output/fig1.eps",testgrid, device = cairo_ps, height=15,width=20, limitsize=FALSE)
1 change: 1 addition & 0 deletions scripts/fig2.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,4 @@
plt.savefig('output/fig2.pdf', dpi=300)
plt.savefig('output/fig2.png', dpi=300)
plt.savefig('output/fig2.tiff', dpi=300)
plt.savefig('output/fig2.eps', dpi=300)
1 change: 1 addition & 0 deletions scripts/fig3.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,4 @@ def jitter(values,j):
plt.savefig('output/fig3.pdf', dpi=300)
plt.savefig('output/fig3.png', dpi=300)
plt.savefig('output/fig3.tiff', dpi=300)
plt.savefig('output/fig3.eps', dpi=300)
3 changes: 2 additions & 1 deletion scripts/fig4.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,5 @@
arrowprops=dict(linewidth=3,arrowstyle="->", color='#79402E'))
plt.savefig('output/fig4.pdf', dpi=300, bbox_inches='tight')
plt.savefig('output/fig4.png', dpi=300, bbox_inches='tight')
plt.savefig('output/fig4.tiff', dpi=300, bbox_inches='tight')
plt.savefig('output/fig4.tiff', dpi=300, bbox_inches='tight')
plt.savefig('output/fig4.eps', dpi=300, bbox_inches='tight')
1 change: 1 addition & 0 deletions scripts/supfig1.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@
g.savefig('output/sup_fig1.pdf', dpi=300)
g.savefig('output/sup_fig1.png', dpi=300)
g.savefig('output/sup_fig1.tiff', dpi=300)
g.savefig('output/sup_fig1.eps', dpi=300)
3 changes: 2 additions & 1 deletion scripts/supfig10.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,5 @@
plt.tight_layout()
plt.savefig('output/sup_fig10.pdf', dpi=300)
plt.savefig('output/sup_fig10.png', dpi=300)
plt.savefig('output/sup_fig10.tiff', dpi=300)
plt.savefig('output/sup_fig10.tiff', dpi=300)
plt.savefig('output/sup_fig10.eps', dpi=300)
1 change: 1 addition & 0 deletions scripts/supfig11.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,4 @@
g.figure.savefig('output/sup_fig11.pdf', dpi=300)
g.figure.savefig('output/sup_fig11.png', dpi=300)
g.figure.savefig('output/sup_fig11.tiff', dpi=300)
g.figure.savefig('output/sup_fig11.eps', dpi=300)
3 changes: 2 additions & 1 deletion scripts/supfig2.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@
axix+=1
plt.savefig('output/sup_fig2.pdf', dpi=300)
plt.savefig('output/sup_fig2.png', dpi=300)
plt.savefig('output/sup_fig2.tiff', dpi=300)
plt.savefig('output/sup_fig2.tiff', dpi=300)
plt.savefig('output/sup_fig2.eps', dpi=300)
2 changes: 1 addition & 1 deletion scripts/supfig9.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,4 +232,4 @@
plt.savefig('output/sup_fig9.pdf', dpi=300)
plt.savefig('output/sup_fig9.png', dpi=300)
plt.savefig('output/sup_fig9.tiff', dpi=300)

plt.savefig('output/sup_fig9.eps', dpi=300)

0 comments on commit 00590cb

Please sign in to comment.