Skip to content

Commit 70129db

Browse files
Merge pull request #374 from theGreatHerrLebert/feature/intensity-variation-timsim-dda
Feature/intensity variation timsim dda
2 parents 10f78c7 + 71d9b01 commit 70129db

5 files changed

Lines changed: 312 additions & 2 deletions

File tree

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
[main_settings]
2+
save_path = "/scratch/timsim/submission/examples/"
3+
reference_path = "/scratch/timsim/submission/blanks/dda/plain/K240723_003_S1-A3_1_2774.d"
4+
fasta_path = "/media/hd02/data/fasta/hela/plain/hela.fasta"
5+
experiment_name = "TIMSIM-DDA-HELA-10K-002"
6+
acquisition_type = "DDA"
7+
use_reference_layout = true
8+
reference_in_memory = false
9+
sample_peptides = true
10+
add_decoys = false
11+
proteome_mix = false
12+
silent_mode = false
13+
from_existing = true
14+
existing_path = "/scratch/timsim/submission/examples/TIMSIM-DDA-HELA-10K-001"
15+
apply_fragmentation = true
16+
17+
[peptide_digestion]
18+
num_sample_peptides = 10000
19+
missed_cleavages = 2
20+
min_len = 7
21+
max_len = 30
22+
cleave_at = "KR"
23+
restrict = "P"
24+
25+
[peptide_intensity]
26+
intensity_mean = 5
27+
intensity_min = 4
28+
intensity_max = 8
29+
sample_occurrences = true
30+
intensity_value = 6
31+
32+
[isotopic_pattern]
33+
isotope_k = 8
34+
isotope_min_intensity = 1
35+
isotope_centroid = true
36+
37+
[distribution_settings]
38+
gradient_length = 900.0
39+
sigma_alpha_rt = 1
40+
sigma_beta_rt = 1
41+
k_lower_rt = 0.1
42+
k_upper_rt = 2
43+
k_alpha_rt = 1
44+
k_beta_rt = 1
45+
z_score = 0.99
46+
target_p = 0.999
47+
sampling_step_size = 0.0001
48+
use_inverse_mobility_std_mean = false
49+
inverse_mobility_std_mean = 0.0075
50+
51+
[phosphorylation_settings]
52+
phospho_mode = false
53+
54+
[noise_settings]
55+
add_noise_to_signals = true
56+
mz_noise_precursor = true
57+
precursor_noise_ppm = 6.5
58+
mz_noise_fragment = true
59+
fragment_noise_ppm = 6.5
60+
mz_noise_uniform = false
61+
add_real_data_noise = true
62+
reference_noise_intensity_max = 9999999
63+
down_sample_factor = 0.5
64+
65+
[charge_state_probabilities]
66+
p_charge = 0.5
67+
min_charge_contrib = 0.25
68+
69+
[dda_settings]
70+
precursors_every = 7
71+
max_precursors = 8
72+
exclusion_width = 25
73+
precursor_intensity_threshold = 1000
74+
selection_mode = "topN"
75+
76+
[property_variation_settings]
77+
rt_variation_std = 15
78+
ion_mobility_variation_std = 0.008
79+
intensity_variation_std = 0.02
80+
81+
[performance_settings]
82+
num_threads = -1
83+
batch_size = 256
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
[main_settings]
2+
save_path = "/scratch/timsim/submission/examples/"
3+
reference_path = "/scratch/timsim/submission/blanks/dda/plain/K240723_003_S1-A3_1_2774.d"
4+
fasta_path = "/media/hd02/data/fasta/hela/plain/hela.fasta"
5+
experiment_name = "TIMSIM-DDA-HELA-10K-001"
6+
acquisition_type = "DDA"
7+
use_reference_layout = true
8+
reference_in_memory = false
9+
sample_peptides = true
10+
add_decoys = false
11+
proteome_mix = false
12+
silent_mode = false
13+
from_existing = false
14+
existing_path = ""
15+
apply_fragmentation = true
16+
17+
[peptide_digestion]
18+
num_sample_peptides = 10000
19+
missed_cleavages = 2
20+
min_len = 7
21+
max_len = 30
22+
cleave_at = "KR"
23+
restrict = "P"
24+
25+
[peptide_intensity]
26+
intensity_mean = 5
27+
intensity_min = 4
28+
intensity_max = 8
29+
sample_occurrences = true
30+
intensity_value = 6
31+
32+
[isotopic_pattern]
33+
isotope_k = 8
34+
isotope_min_intensity = 1
35+
isotope_centroid = true
36+
37+
[distribution_settings]
38+
gradient_length = 900.0
39+
sigma_alpha_rt = 1
40+
sigma_beta_rt = 1
41+
k_lower_rt = 0.1
42+
k_upper_rt = 2
43+
k_alpha_rt = 1
44+
k_beta_rt = 1
45+
z_score = 0.99
46+
target_p = 0.999
47+
sampling_step_size = 0.0001
48+
use_inverse_mobility_std_mean = false
49+
inverse_mobility_std_mean = 0.0075
50+
51+
[phosphorylation_settings]
52+
phospho_mode = false
53+
54+
[noise_settings]
55+
add_noise_to_signals = true
56+
mz_noise_precursor = true
57+
precursor_noise_ppm = 6.5
58+
mz_noise_fragment = true
59+
fragment_noise_ppm = 6.5
60+
mz_noise_uniform = false
61+
add_real_data_noise = true
62+
reference_noise_intensity_max = 9999999
63+
down_sample_factor = 0.5
64+
65+
[charge_state_probabilities]
66+
p_charge = 0.5
67+
min_charge_contrib = 0.25
68+
69+
[dda_settings]
70+
precursors_every = 7
71+
max_precursors = 8
72+
exclusion_width = 25
73+
precursor_intensity_threshold = 1000
74+
selection_mode = "topN"
75+
76+
[property_variation_settings]
77+
rt_variation_std = 15
78+
ion_mobility_variation_std = 0.008
79+
intensity_variation_std = 0.02
80+
81+
[performance_settings]
82+
num_threads = -1
83+
batch_size = 256
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
[main_settings]
2+
save_path = "/scratch/timsim/submission/examples/"
3+
reference_path = "/scratch/timsim/submission/blanks/dia/G241217_012_Slot2-2_1_16313.d"
4+
fasta_path = "/media/hd02/data/fasta/hela/plain/hela.fasta"
5+
experiment_name = "TIMSIM-DIA-G15-HeLa10K-002"
6+
acquisition_type = "DIA"
7+
use_reference_layout = true
8+
reference_in_memory = false
9+
sample_peptides = true
10+
add_decoys = false
11+
proteome_mix = false
12+
silent_mode = false
13+
from_existing = true
14+
existing_path = "/scratch/timsim/submission/examples/TIMSIM-DIA-G15-HeLa10K-001"
15+
apply_fragmentation = true
16+
17+
[peptide_digestion]
18+
num_sample_peptides = 10000
19+
missed_cleavages = 2
20+
min_len = 7
21+
max_len = 30
22+
cleave_at = "KR"
23+
restrict = "P"
24+
25+
[peptide_intensity]
26+
intensity_mean = 5
27+
intensity_min = 4
28+
intensity_max = 8
29+
sample_occurrences = true
30+
intensity_value = 6
31+
32+
[isotopic_pattern]
33+
isotope_k = 8
34+
isotope_min_intensity = 1
35+
isotope_centroid = true
36+
37+
[distribution_settings]
38+
gradient_length = 900.0
39+
mean_std_rt = 0.9
40+
variance_std_rt = 0.2
41+
mean_skewness = 1.5
42+
variance_skewness = 0.01
43+
z_score = 0.99
44+
target_p = 0.999
45+
sampling_step_size = 0.0001
46+
47+
[phosphorylation_settings]
48+
phospho_mode = false
49+
50+
[noise_settings]
51+
add_noise_to_signals = true
52+
mz_noise_precursor = true
53+
precursor_noise_ppm = 6.5
54+
mz_noise_fragment = true
55+
fragment_noise_ppm = 6.5
56+
mz_noise_uniform = false
57+
add_real_data_noise = true
58+
reference_noise_intensity_max = 150000
59+
down_sample_factor = 0.5
60+
61+
[property_variation_settings]
62+
rt_variation_std = 15
63+
ion_mobility_variation_std = 0.008
64+
intensity_variation_std = 0.02
65+
66+
[charge_state_probabilities]
67+
p_charge = 0.5
68+
min_charge_contrib = 0.25
69+
70+
[performance_settings]
71+
num_threads = -1
72+
batch_size = 256
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
[main_settings]
2+
save_path = "/scratch/timsim/submission/examples/"
3+
reference_path = "/scratch/timsim/submission/blanks/dia/G241217_012_Slot2-2_1_16313.d"
4+
fasta_path = "/media/hd02/data/fasta/hela/plain/hela.fasta"
5+
experiment_name = "TIMSIM-DIA-G15-HeLa10K-001"
6+
acquisition_type = "DIA"
7+
use_reference_layout = true
8+
reference_in_memory = false
9+
sample_peptides = true
10+
add_decoys = false
11+
proteome_mix = false
12+
silent_mode = false
13+
from_existing = false
14+
existing_path = ""
15+
apply_fragmentation = true
16+
17+
[peptide_digestion]
18+
num_sample_peptides = 10000
19+
missed_cleavages = 2
20+
min_len = 7
21+
max_len = 30
22+
cleave_at = "KR"
23+
restrict = "P"
24+
25+
[peptide_intensity]
26+
intensity_mean = 5
27+
intensity_min = 4
28+
intensity_max = 8
29+
sample_occurrences = true
30+
intensity_value = 6
31+
32+
[isotopic_pattern]
33+
isotope_k = 8
34+
isotope_min_intensity = 1
35+
isotope_centroid = true
36+
37+
[distribution_settings]
38+
gradient_length = 900.0
39+
mean_std_rt = 0.9
40+
variance_std_rt = 0.2
41+
mean_skewness = 1.5
42+
variance_skewness = 0.01
43+
z_score = 0.99
44+
target_p = 0.999
45+
sampling_step_size = 0.0001
46+
47+
[phosphorylation_settings]
48+
phospho_mode = false
49+
50+
[noise_settings]
51+
add_noise_to_signals = true
52+
mz_noise_precursor = true
53+
precursor_noise_ppm = 6.5
54+
mz_noise_fragment = true
55+
fragment_noise_ppm = 6.5
56+
mz_noise_uniform = false
57+
add_real_data_noise = true
58+
reference_noise_intensity_max = 150000
59+
down_sample_factor = 0.5
60+
61+
[property_variation_settings]
62+
rt_variation_std = 15
63+
ion_mobility_variation_std = 0.008
64+
intensity_variation_std = 0.02
65+
66+
[charge_state_probabilities]
67+
p_charge = 0.5
68+
min_charge_contrib = 0.25
69+
70+
[performance_settings]
71+
num_threads = -1
72+
batch_size = 256

imspy/imspy/simulation/timsim/jobs/simulate_proteins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ def protein_to_peptides(fasta,
131131
return peptide_set
132132

133133
except Exception as e:
134-
print(f"Error generating peptides: {e}")
135-
print("This error can usually be safely ignored when using TIMSIM ...")
134+
# print(f"Error generating peptides: {e}")
135+
# print("This error can usually be safely ignored when using TIMSIM ...")
136136
return None
137137

138138

0 commit comments

Comments
 (0)