Skip to content

Instantly share code, notes, and snippets.

View marinegor's full-sized avatar

Egor Marin marinegor

View GitHub Profile
@marinegor
marinegor / README.md
Last active September 15, 2023 20:42
MDAnalysis parallel backend benchmark

Data

I'm using trajectory and topology for an 1us run generated according to lysozyme in water tutorial and used later in this publication. It a full-atom xtc trajectory containing 25690 atoms in total.

Both trajectory and topology can be accessed here: https://zenodo.org/record/8349796

Hardware

Drive

@marinegor
marinegor / _after.txt
Last active August 30, 2023 10:08
how to run alphafold on habrok server
# Unmount the database image
fusermount -u $TMPDIR/alphafold_data
@marinegor
marinegor / mrc_zflip.py
Last active March 27, 2023 18:22
CLI script to change chirality of input MRC file via flipping their z-axis
#!/usr/bin/env python3
import mrcfile
import click
from typing import Optional
from pathlib import Path
import numpy as np
@click.command()
@click.argument("input_map")
@marinegor
marinegor / get_empair_folder.py
Created January 26, 2022 16:09
Downloads a flat content of an EMPAIR raw_data folder
#!/usr/bin/env python3
'''
usage: get_empair_raw_folder.py [-h] [--quiet QUIET] url
positional arguments:
url EMPAIR raw data folder link (for example, http://ftp.ebi.ac.u
k/empiar/world_availability/10025/data/14sep05c_raw_196)
optional arguments:
--quiet QUIET Whether to write loggin messages
@marinegor
marinegor / task.py
Created June 27, 2021 13:51
CSC entrance task
#!/usr/bin/env python3
from hypothesis import given
from hypothesis.strategies import lists, integers
def zeros_inplace(xs):
if not xs:
return
@marinegor
marinegor / README.md
Created February 8, 2021 18:13
Project description example
@marinegor
marinegor / download_id141.sh
Created June 1, 2020 10:04
Download ID141 from CXIDB
#!bin/bash
for i in `seq 1 139`; do
echo "------------Downloading run ${i}/139-------------"
wget -c http://portal.nersc.gov/archive/home/projects/cxidb/www/141/runs/run${i}.tar.gz
done
@marinegor
marinegor / LICENSE
Last active December 23, 2020 08:47
Install all crystallography on Debian-based platform (with sudo, however)
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
@marinegor
marinegor / explorestream.py
Last active February 9, 2020 22:00
PAL XFEL 12-16.12.2018
#!/usr/bin/env python
from __future__ import print_function
import os
import sys
input_stream = sys.argv[1]
if input_stream == '-h':
echo "Usage: python explorestream.py output.stream"