This file contains hidden or 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
#!/usr/bin/env python3 | |
""" | |
Complete standalone implementation of sample.ipynb | |
This script performs protein structure prediction with SimpleFold and compares with ground truth. | |
For licensing see accompanying LICENSE file. | |
Copyright (c) 2025 Apple Inc. Licensed under MIT License. | |
""" |
This file contains hidden or 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
import random | |
import pandas | |
import string | |
import great_tables | |
from great_tables import GT,loc,style | |
aa_list = ["A","C","D","E","F","G","H","I","K","L","M","N","P","R","S","T","V","W","Y"] | |
def create_random_aa_seq(size=200): | |
aa_seq = [] |
This file contains hidden or 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
import random | |
import pandas | |
import string | |
import great_tables | |
from great_tables import GT | |
aa_list = ["A","C","D","E","F","G","H","I","K","L","M","N","P","R","S","T","V","W","Y"] | |
def create_random_aa_seq(size=200): |
This file contains hidden or 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
{ | |
"CantoCurses": { | |
"browser": { | |
"path": "/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome" | |
}, | |
"color": { | |
"1": 0, | |
"10": 9, | |
"100": 99, | |
"101": 100, |
This file contains hidden or 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/sh | |
#Script to install Canto | |
git clone https://github.com/themoken/canto-next.git | |
cd canto-next | |
#sudo $(xcrun --find python3) setup.py install | |
# This didnt work as the System python3 did not play well with ncurses from homebrew | |
# and probably wasnt compiled with built in ncurses support | |
# This uses the compiled Python | |
/usr/local/bin/python3.8 setup.py install |
This file contains hidden or 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 django.shortcuts import render | |
def index(request): | |
#Get Last five Polls and now use the render shortcut , I like this option less | |
latest_questions = Question.objects.order_by('-pub_date')[:5] | |
context = { | |
'latest_questions':latest_questions, | |
} | |
return render(request,"polls/index.html",context) |
This file contains hidden or 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 django.http import HttpResponse | |
from django.template import loader | |
def index(request): | |
#Get Last five Polls | |
latest_questions = Question.objects.order_by('-pub_date')[:5] | |
template = loader.get_template("polls/index.html") | |
context = { | |
'latest_questions':latest_questions, |