-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
65 lines (29 loc) · 1.68 KB
/
Copy pathmain.py
File metadata and controls
65 lines (29 loc) · 1.68 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
import argparse
import mass_spectrom_function
import dna_function.py
parser = argparse.ArgumentParser(description="Mix spectra data, sequencing data and Protein data base, to find new proteins")
parser.add_argument("spectra_file_name", type=str, help="the spectra file with format mzML")
parser.add_argument("sequencing_file_name", type=str, help="the fasta file, the best is to use Trinity with the fastq following by this software.\nThis soft is going to translate each sequence according to each reading frame.")
parser.add_argument("pdb_fasta_file", type=str, help="the fasta file which contains protein sequence")
a = parser.parse_args()
# the file with the mass data
spectra_file_name = a.spectra_file_name
# the file with the sequence after sequencing
fasta_seq_file = a.sequencing_file_name
# the fasta file which contains protein sequence
pdb_fasta_file = a.pdb_fasta_file
# We validate the msms with the sequencing data
# We search the matchs between ms ms data and the fasta data
# we saved it in a csv file to use the data
match_msms_vs_sequencing = threading.Thread(totalSearch, args=(spectra_file_name,fasta_seq_file,)
# we analyse the msms file with the pdb file
match_msms_vs_PDB = threading.Thread(totalSearch, args=(spectra_file_name,pdb_fasta_file,)
# we analyse the alignement between the pdb file and the fasta file of the sequencing
# match_sequencing_vs_PDB = threading.Thread(, args=(fasta_seq_file,pdb_fasta_file,)
# we launch each thread process
threads_process = [match_msms_vs_sequencing, match_msms_vs_PDB] # , match_sequencing_vs_PDB
for t in threads_process:
t.start()
for t in threads_process:
t.join()
# We analyse the previous results