Skip to content

Instantly share code, notes, and snippets.

View latticetower's full-sized avatar

Tanya Malygina latticetower

View GitHub Profile
@latticetower
latticetower / ManifoldUtils.scala
Last active October 30, 2020 20:49
говнокод_для_2020
package foo.common.algorithms.geometry
import foo.common.structures.geometry.{
Simplex,
GeometryVector,
InfiniteVector, PointPosition
}
object ManifoldUtils {
@latticetower
latticetower / sphere_points.ipynb
Created June 28, 2018 17:32
get points on sphere based on different conditions
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
"""Alternative aminoacid to SMILES convertor
If you want to check how it works, simply run
```
python aa_convertor.py
```
When called this way, module expects that rdkit is installed, however simple
module import and function call shouldn't fail when it is not.
This module should be compatible with python 2 & 3.
@latticetower
latticetower / example.py
Created May 5, 2017 09:06
Example code with iteration over pdb file chains with sliding window
from prody import *
pdb = parsePDB("1QS3")
def sliding_window(aminoacids, width=3):
"""
iterates over residues in given chain, returns iterator
with arrays containing each width elements (as a sliding window)
"""
index = 1 # prody starts iteration from 1, or at least it seems
type C0{T}
super :: T#base obj
x :: Int#subtype fields
function C0(x::Int, y::Int)
new(T(x), y) # вызвали конструктор базового типа, если надо, ну и добавили сложную логику
end
end
function convert{T}(::Type{C0{T}}, x::Int, y::Int)
C0{T}(x, y)
#!/bin/sh
# autopkgtest check: build and run pymol scripts from directory and subdirectories
# ignores errors appearing inside PYMOL command line, checks if message
# "PyMOL: normal program termination." present in pymol's output.
# Author: Tatiana Malygina <merlettaia@gmail.com>
set -e
testsdir="$(cd "$1" && pwd)"
echo "work with $testsdir"

Following table contains packages I worked on by July, 16, 2015 (starting from June, 15):

Package Notes
librostlab
librostlab-blast
libzerg
libzerg-perl
librg-blast-parser-perl
librg-utils-perl

Following table contains packages I worked on by June, 15, 2015:

Package What I did
Concavity 1 test + 1 serious bug fixed
Conservation-code 2 tests + 1 small patch
Dssp 1 test + example files
Profbval 1 test
Tm-align 1 test (for both TMalign and TMscore) + example files
Predictnls 1 test
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
for i in Sequence([(1, 2, 3, 4, 5), (6, 5, 4, 3), (-3, -3, -3 )])
println(i)
end