This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
count_nseqs() { | |
file="$1" | |
if [ -f "$file" ]; then | |
if [[ "$file" == *.gz ]]; then | |
count=$(zcat "$file" | grep -c "^>") | |
else | |
count=$(grep -c "^>" "$file") | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pymol import preset, cmd | |
from glob import glob | |
from os.path import sep, basename | |
from pathlib import Path | |
def bns(sel: str = "bb."): | |
preset.ball_and_stick(selection=sel, mode=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Tuple | |
import torch | |
import torch.nn.functional as F | |
import itertools | |
from timeit import default_timer as timer | |
class SoftmaxWeightedMean(torch.autograd.Function): | |
@staticmethod |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.