Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision d60db86886186e80622deaa91045caccaf4103d3 authored by Diego del Alamo on 17 February 2022, 16:16:20 UTC, committed by GitHub on 17 February 2022, 16:16:20 UTC
Update predict.py
1 parent 714006d
  • Files
  • Changes
  • 732ab36
  • /
  • figures
  • /
  • fig1
  • /
  • lat1.R
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:d60db86886186e80622deaa91045caccaf4103d3
directory badge
swh:1:dir:aad16dbad4c9706b9f82d7b372df81790b1e9530
content badge
swh:1:cnt:6838511ea1229ddc5ba3f20634010d85d57242a1

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
lat1.R
#!/usr/bin/env Rscript

library(ggplot2)
library(cowplot)
library(viridis)

data <- read.csv( "fig1_data_models.csv", header=TRUE, sep=",")
data <- subset( data, protein %in% c( "Lat1" ) )
data <- data[ order( data$nseq ), ]

outpng <- ggplot() +
  geom_hline( yintercept=0.86337, linetype="dotted", color="black", size=0.25 ) +
  geom_vline( xintercept=0.86337, linetype="dotted", color="black", size=0.25 ) +
  geom_point( data=data, aes( x=tm_IF, y=tm_OF, fill=nseq ), size=2.0, stroke=0.375,pch=21, color="black" ) +
  #geom_point( data=af2_data, aes( x=tm_IF, y=tm_OF ), fill="black", size=0.75 ) +
  scale_fill_viridis( begin=0.3, end=1, option="cividis", name="Number of sequences", trans="log2" ) +
  scale_x_continuous( limits=c( 0.85,1 ) ) +
  scale_y_continuous( limits=c( 0.85,1 ) ) +
  labs( x="Similarity to inward-facing structure (TM-score)", y="Similarity to outward-facing structure (TM-score)" ) +
  theme_minimal() +
  #facet_grid( set_name ~ protein ) +
  theme(
    legend.title = element_text( size=6, face="bold"),
    legend.text = element_text( size=6 ),
    legend.position ="none",
    panel.border = element_rect(colour = "black", fill=NA, size=0.5),
    strip.text.x = element_text( size=6, face="bold"),
    strip.text.y = element_text( size=6, face="bold"),
    axis.title.y = element_text( size=6, face="bold"),
    axis.title.x = element_text( size=6, face="bold"),
    axis.text.y = element_text( size=6),
    axis.text.x = element_text( size=6),
    aspect.ratio=1 )

save_plot( "lat1_out.png", plot = outpng, base_width = 2.25, base_height = 2.25, units="in" )
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API