Giter VIP home page Giter VIP logo

deemian's People

Contributors

radifar avatar

Watchers

 avatar

deemian's Issues

Add output type on metadata

In the future there will be (at least) 3 kind of output:

  • interactions (containing info about the atom pair, distance, and interaction type)
  • bitstrings
  • IPA (Interaction Pseudo-Atom) (Desaphy et al 2013)

The metadata should also include the output type for each of its parquet file manifest data.

Setup Flake8 to allow longer line length

Flake8 by default only allow 80 as max line length, which is inconsistent with Black setting (119).

Create .flake8 setup file and set max line length to 119 to make it consistent with Black.

Align several macromolecule prior to IPA generation

Using getaligntransform method of RDKit, it is possible to align macromolecule based on selection. The basic idea is to create selection on several PDB molecule, then use the reference selection as the target for alignment.

The basic syntax is generally like this (subject to change):

molecule 5nzn.pdb [
	select protein_A_ref = chain A and protein
	select active_site_ref_1 = chain A and resid 116 to 120
	select active_site_ref_2 = chain A and resid 150 to 155
	select active_site_ref_3 = chain A and resid 225 to 250
	select active_site_ref_4 = chain A and resid 291 to 295
	select active_site_ref_5 = chain A and resid 366 to 370
	combine_selection active_site_ref = active_site_ref_1, active_site_ref_2, active_site_ref_3, active_site_ref_4, active_site_ref_5
	select oseltamivir = chain A and resname G39
	assign bond oseltamivir template CCC(CC)O[C@@H]1C=C(C[C@@H]([C@H]1NC(=O)C)N)C(=O)O
]

molecule 1f8b.pdb [
	select protein_A_dan = chain A and protein
	select active_site_1 = chain A and resid 116 to 120
	select active_site_2 = chain A and resid 150 to 155
	select active_site_3 = chain A and resid 225 to 250
	select active_site_4 = chain A and resid 291 to 295
	select active_site_5 = chain A and resid 366 to 370
	combine_selection active_site = active_site_1, active_site_2, active_site_3, active_site_4, active_site_5
	select daneuraminic = chain A and resname DAN

	align active_site to active_site_ref
]

measure ipa_combined [
	ipa subject_1, center, subject_2
	ionizable positive true
	ionizable negative true
	between oseltamivir and protein_A
    conformation 1
]

What happen in the script above is to create a series of selection based on area around active site. The C-alpha coordinates for both active site is then extracted and transformation matrix is retrieved using getaligntransform method of RDKit. After that this transformation matrix is used to transform the whole structure of 1f8b model. This approach is better because it allows a more selective transformation rather than aligning the whole structure, as this selective transformation allows more aligned IPA generation.

Add the capability to read pdb file

Read PDB file and use its data to create Pandas DataFrame. Which can be very useful for creating selections and identifying interactions (using KDTree).

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.