-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain_imports.py
38 lines (32 loc) · 1.35 KB
/
main_imports.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import time
import sys
import os
# Appending the modules directory into the main_helper to import all modules
current_working_dir = \
os.path.dirname(os.path.abspath(__file__)).replace('\\', '/')
modules_dir = f'{current_working_dir}/modules'
sys.path.append(modules_dir)
# Importing Modules
from checkDNAValidity import check_DNA_validity
from checkRNAValidity import check_RNA_validity
from nucleotideOccurence import number_of_each_nucleotide
from nucleotideOccurence import percentage_of_each_nucleotide
from complementDNA import complement_DNA
from complementDNA import reverse_complement
from cgContent import cg_content
from IsPalindrome import is_palindrome
from Ligate import ligate
from restrictionEnzyme import restriction_enzyme
from shortTandemRepeat import STPs
from reverseTranscriptase import reverse_transcriptase
from virusMostMatchingGenome import virus_most_matching_genome
from twoClosestSequences import two_closest_sequences
from sequencesMatchingPercentage import sequences_matching_percentage
from mostMatchingNucleotides import most_matching_nucleotides
from transcribe import transcribe
from generatePolypeptides import generate_polypeptides
from longestRepeat import get_longest_consecutive_repeat_s_
def logOutput(output):
file = open('entry_output_files/main_output.txt','a')
file.write(f'[{time.ctime()}]: {output}\n')
file.close()