-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
60 lines (40 loc) · 1.76 KB
/
Copy pathmain.py
File metadata and controls
60 lines (40 loc) · 1.76 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import os
import sys
# relative imports
from main_utils import create_dirs, check_dependencies
from assembly import get_ascensions, subset, assemble, collect_assemblies
from annotation import makeBLASTdatabase, blast_orfs
from phylo import align, make_trees, move_trees
# Display welcome message
message = """
Please check the manual (LINK TO MANUAL) to ensure you have all the necessary dependencies installed!
"""
print(message)
### 0 Preparing the pipeline ###
# Function that displays missing dependencies on screen
# with links to their webpages
check_dependencies()
# Make working directories if they do not yet exist
# or just return them if they do
working_directory, download_directory, contigs_directory, blast_directory, annotations_directory, alignments_directory, trees_directory = create_dirs()
### 1 Downloading & de novo assembly of data ###
# Get SRA data
get_ascensions(download_directory)
# Subset downloaded read files
subset(download_directory)
# Assemble subsetted read files
assemble(download_directory)
# Collect & filter the assembly results into a single folder
collect_assemblies(download_directory, contigs_directory)
### 2 Annotating and finding mtplasmids ###
# Make database to BLAST ORF's to
makeBLASTdatabase(annotations_directory, blast_directory)
# BLAST found contigs to find mtplasmids
blast_orfs(blast_directory, contigs_directory)
### 3 Aligning & Generating trees ###
# Align fasta files obtained during annotation
#align(annotations_directory, alignments_directory)
# Generate maximum-likelihood trees of all generated alignments
# and move the tree to another folder to prevent cluttering
#make_trees(alignments_directory)
#move_trees(alignments_directory, trees_directory)