[ Launch: Tributary inlet ] 6513093 by phantomas1234
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 cameo import Model, Reaction | |
| from re import sub | |
| def decompartmentalize(model, rules=None): | |
| if rules is None: | |
| rules = {} | |
| compartmentless_model = Model() | |
| for reaction in model.reactions: | |
| new_reaction = reaction.copy() | |
| new_reaction.clear_metabolites() | |
| new_metabolites = {} |
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 time | |
| from IProgress import ProgressBar, RotatingMarker, UnknownLength, AnimatedMarker | |
| from IProgress.widgets import FormatLabel | |
| FormatLabel | |
| pbar = ProgressBar(widgets=[AnimatedMarker(markers="◐◓◑◒")]) | |
| pbar.start() | |
| for i in range(30): | |
| time.sleep(.1) | |
| pbar.update(i) |
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
| syntax enable |
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
| #PBS -S /bin/bash | |
| #PBS -l nodes={n/2}:ppn=2 | |
| #PBS -l walltime=3:00:00,pvmem=10GB | |
| #PBS -N ipc | |
| #PBS -q usplanck | |
| #PBS -j oe | |
| #PBS -o ipc.out | |
| #PBS -A usplanck | |
| #PBS -V |
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
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| Hello, world! |
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
| saveWorkspace[path_String:"/Users/niko/tmp"]:=Module[{fileName}, | |
| fileName=StringJoin[Sequence@@Riffle[{"Workspace",ToString@Hash[Flatten[List@@("FileName"/.NotebookInformation[])[[1;;2]]],"MD5"],ToString[Round[AbsoluteTime[]]],".mx"},"_"]]; | |
| DumpSave[FileNameJoin[{path,fileName}],"Global`"]; | |
| ]; | |
| loadWorkspace[path_String:"/Users/niko/tmp"]:=Module[{currentNotebookHash,paths}, | |
| currentNotebookHash=ToString@Hash[Flatten[List@@("FileName"/.NotebookInformation[])[[1;;2]]],"MD5"]; | |
| paths=SortBy[ToExpression[StringSplit[#,"_"][[-2]]]->#&/@FileNames["Workspace*"<>currentNotebookHash<>"*.mx",{path}],First]; | |
| Get[paths[[-1,2]]]; | |
| ]; |
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
| Process: Python [62083] | |
| Path: /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python | |
| Identifier: Python | |
| Version: 2.7.5 (2.7.5) | |
| Code Type: X86-64 (Native) | |
| Parent Process: Python [62077] | |
| Responsible: Python [62077] | |
| User ID: 502 | |
| Date/Time: 2014-01-16 13:42:13.065 +0100 |
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 PdbSublimeTextSupport import preloop, precmd | |
| pdb.Pdb.preloop = preloop | |
| pdb.Pdb.precmd = precmd | |
| try: | |
| from ipdb.__main__ import Pdb as ipdb_Pdb | |
| except ImportError: | |
| pass | |
| else: |
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
| .DS_Store | |
| strains.csv | |
| strain_lineage.nb |
NewerOlder