-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
73 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
process PARSE_IPA_PROT_ALN { | ||
tag { cls_part_file.name } | ||
label 'big_cpus' | ||
|
||
input: | ||
path blosumfile | ||
tuple val(combid), path(sp1), path(sp2), path(cls_part_file), val(dist_range) | ||
|
||
output: | ||
tuple val("${sp1.name}-${sp2.name}"), path("${sp1.name}-${sp2.name}-*"), emit: aligned_subclusters_4_splitting | ||
path "${sp1.name}-${sp2.name}_EXs_to_split_part_*.txt", emit: EXs_to_split | ||
|
||
script: | ||
def prev_alignments = params.prevaln ? params.prevaln : "" | ||
def cls_parts = cls_part_file.name.split("_") | ||
def dist_range_par | ||
|
||
switch(dist_range) { | ||
case "long": | ||
dist_range_par = params.long_dist.split(",") | ||
break | ||
case "medium": | ||
dist_range_par = params.medium_dist.split(",") | ||
break | ||
case "short": | ||
dist_range_par = params.short_dist.split(",") | ||
break | ||
} | ||
|
||
""" | ||
B1_parse_IPA_prot_aln.pl ${sp1.name} ${sp2.name} ${cls_part_file} \ | ||
${sp1}/${sp1.name}_annot_exons_prot_ids.txt ${sp2}/${sp2.name}_annot_exons_prot_ids.txt \ | ||
${sp1}/${sp1.name}_protein_ids_exons_pos.txt ${sp2}/${sp2.name}_protein_ids_exons_pos.txt \ | ||
${sp1}/${sp1.name}_protein_ids_intron_pos_CDS.txt ${sp2}/${sp2.name}_protein_ids_intron_pos_CDS.txt \ | ||
${sp1}/${sp1.name}.exint ${sp2}/${sp2.name}.exint ${cls_parts[1]} ${blosumfile} ${sp1.name}-${sp2.name}-${cls_parts[1]} ${dist_range_par[3]} ${task.cpus} ${prev_alignments} | ||
""" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
process REALIGN_EX_PAIRS { | ||
label 'incr_time_cpus' | ||
|
||
input: | ||
path blosumfile | ||
tuple val(comp_id), path(EXs_to_realign), path(sp1), path(sp2) | ||
|
||
output: | ||
tuple val(comp_id), path("realigned_*"), emit: realigned_exons_4_merge | ||
|
||
script: | ||
""" | ||
B3_realign_EX_pairs.pl ${sp1.name} ${sp2.name} ${EXs_to_realign} \ | ||
${sp1}/${sp1.name}.exint ${sp2}/${sp2.name}.exint 1 realigned_${EXs_to_realign.name} \ | ||
${sp1.name}_${sp2.name} ${blosumfile} ${task.cpus} | ||
""" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
process SPLIT_EX_PAIRS_TO_REALIGN { | ||
label 'pandas' | ||
input: | ||
path '*' | ||
|
||
output: | ||
path '*EXs_to_realign_part_*', emit: EXs_to_realign_batches | ||
|
||
script: | ||
""" | ||
for file in \$(ls *); do | ||
B2_split_EX_pairs_to_realign.py -i \${file} -n ${params.alignmentnum} | ||
done | ||
""" | ||
} |