@@ -20,22 +20,20 @@ if (debug){
20
20
read_file = paste(" compare_junctions/hist/" , " junction_pvalues" , tag , " .tsv" , sep = " " )
21
21
regtools_data = unique(data.table :: fread(file = read_file , sep = ' \t ' , header = TRUE , stringsAsFactors = FALSE ))
22
22
regtools_data_filtered = regtools_data [(regtools_data $ total_score_variant > 5 &
23
- regtools_data $ pvalue > = 0 &
24
- (regtools_data $ anchor == " D" |
25
- regtools_data $ anchor == " A" |
26
- regtools_data $ anchor == " NDA" ))]
23
+ regtools_data $ p_value_mean > = 0 &
24
+ (regtools_data $ anchor == " DA" ))]
27
25
28
- p = regtools_data_filtered $ pvalue
26
+ p = regtools_data_filtered $ p_value_mean
29
27
adjusted_p = p.adjust(p , method = " BH" )
30
28
regtools_data_filtered $ adjusted_p = adjusted_p
31
29
regtools_data_filtered_sorted = regtools_data_filtered [order(adjusted_p )]
32
30
33
- write_file = paste(" compare_junctions/hist/" , " junction_pvalues_filtered_BH " , tag , " .tsv" , sep = " " )
31
+ write_file = paste(" compare_junctions/hist/" , " junction_pvalues_filtered_BH_DA_junctions " , tag , " .tsv" , sep = " " )
34
32
write.table(regtools_data_filtered_sorted , file = write_file , quote = FALSE , sep = ' \t ' , row.names = FALSE )
35
33
36
34
threshold = 0.05
37
35
is_significant = regtools_data_filtered_sorted $ adjusted_p < threshold
38
36
regtools_data_significant_filtered_sorted = regtools_data_filtered_sorted [is_significant ]
39
37
40
- write_file = paste(" compare_junctions/hist/" , " junction_pvalues_significant_" ,threshold ," _filtered_BH " , tag , " .tsv" , sep = " " )
38
+ write_file = paste(" compare_junctions/hist/" , " junction_pvalues_significant_" ,threshold ," _filtered_BH_DA_junctions " , tag , " .tsv" , sep = " " )
41
39
write.table(regtools_data_significant_filtered_sorted , file = write_file , quote = FALSE , sep = ' \t ' , row.names = FALSE )
0 commit comments