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
################################################################# | |
######################## TMHMM Parser ########################### | |
################################################################# | |
# Created by: Kevin Leiss | |
# Last Updated: 14.12.2016 | |
# | |
# License: Feel free to use the script, but please refer to me if | |
# you used it for publication. | |
# |
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
def check_output(file, interval_time, logfile_path): | |
import os | |
import time | |
status = os.path.isfile(file) | |
while status is not True: | |
f_log = open(logfile_path, 'a') | |
f_log.write(time.asctime() + '\t' + 'Still running\n') |
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
import subprocess | |
import glob | |
# Functions | |
def read_multifasta(file_path): | |
is_entry = False | |
fasta_dict = {} | |
sequence = [] |
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
# Sets chmod 755 for folder and all subfolders | |
find /opt/lampp/htdocs -type d -exec chmod 755 {} \; | |
# Sets chmod 655 for all files in this folder & subfolder | |
find /opt/lampp/htdocs -type f -exec chmod 644 {} \; |
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
git clone <repo-address> | |
git tag -l | |
git checkout <tag-name> | |
git branch -D master | |
git checkout -b master |
NewerOlder