Giter Site home page Giter Site logo

Comments (3)

sgbaird avatar sgbaird commented on August 28, 2024 1

Ok gotcha. You might have better luck looking at ADMM or Rosetta repos and asking there if you get stuck.

from composition-conditioned-crystal-gan.

sgbaird avatar sgbaird commented on August 28, 2024

@WikGitHub Shot in the dark here. Did you try the following function:

def view_atoms(image, view = True):
x = image
x = x.reshape(-1,3)
l = x[0,:]*30
a = x[1,:]*180
cell = np.hstack((l,a))
pos=x[2:,:]
pos,n_mg, n_mn,n_o = remove_zero_padding(pos)
scaled_pos = back_to_10_cell(pos,n_mg,n_mn,n_o)
atoms = back_to_real_cell(scaled_pos, cell, n_mg,n_mn,n_o)
atoms.set_pbc([1,1,1])
if view:
atoms.edit()
return atoms, x

where you load the .npy file and pass that array as the image argument?

from composition-conditioned-crystal-gan.

sgbaird avatar sgbaird commented on August 28, 2024

@WikGitHub ah, gotcha. I'm totally out of my element there. Did some simple Google searches but not much luck. Are you sure that the .npy files contain information related to protein structure? I figured Composition-Conditioned-Crystal-GAN was just for crystal structure. Maybe there's some way to infer protein structure from a collection of atoms and atom locations.

from composition-conditioned-crystal-gan.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.