Skip to content

Commit

Permalink
swap order for ordering function call (top/htop convenience)
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimens committed Feb 3, 2022
1 parent ddb5730 commit 6e3c698
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rules/LepMap3/distances.smk
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ rule calculate_distances:
"""
cp {input.lg} {output.distance}
zcat {input.data_call} | java -cp software/LepMap3 OrderMarkers2 data=- evaluateOrder={input.lg} {params.dist_method} numThreads={threads} improveOrder=0 sexAveraged=1 &> {output.sex_averagedtmp}
zcat {input.data_call} | java -cp software/LepMap3 OrderMarkers2 evaluateOrder={input.lg} data=- {params.dist_method} numThreads={threads} improveOrder=0 sexAveraged=1 &> {output.sex_averagedtmp}
sed -i -e 's/LG \= 0/LG \= {params.lg}/g' {output.sex_averagedtmp}
sed -n '/\*\*\* LG \=/,$p' {output.sex_averagedtmp} > {output.sex_averaged}
awk '/#java/{{flag=1}} flag; /*** LG =/{{flag=0}}' {output.sex_averagedtmp} > {log.sex_averaged}
zcat {input.data_call} | java -cp software/LepMap3 OrderMarkers2 data=- evaluateOrder={input.lg} {params.dist_method} numThreads={threads} calculateIntervals={output.intervals} > {log.intervals} 2>&1
zcat {input.data_call} | java -cp software/LepMap3 OrderMarkers2 evaluateOrder={input.lg} data=- {params.dist_method} numThreads={threads} calculateIntervals={output.intervals} > {log.intervals} 2>&1
"""
2 changes: 1 addition & 1 deletion rules/LepMap3/order.smk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rule order_markers:
threads: 2
shell:
"""
zcat {input.datacall} | java -cp software/LepMap3 OrderMarkers2 map={input.filt_map} {params.extra} data=- numThreads={threads} chromosome={params.chrom} &> {output.runlog}
zcat {input.datacall} | java -cp software/LepMap3 OrderMarkers2 chromosome={params.chrom} map={input.filt_map} {params.extra} data=- numThreads={threads} &> {output.runlog}
sed -n '/\*\*\* LG \=/,$p' {output.runlog} > {output.lg}
grep "recombin" {output.runlog} > {log.recomb}
awk '/#java/{{flag=1}} flag; /logL/{{flag=0}}' {output.runlog} > {log.run}
Expand Down
2 changes: 1 addition & 1 deletion rules/LepMap3/reorder.smk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ rule reorder_markers:
threads: 2
shell:
"""
zcat {input.datacall} | java -cp software/LepMap3 OrderMarkers2 {params.extra} map={input.filt_map} data=- numThreads={threads} evaluateOrder={input.lg_order} &> {output.runlog}
zcat {input.datacall} | java -cp software/LepMap3 OrderMarkers2 evaluateOrder={input.lg_order} {params.extra} map={input.filt_map} data=- numThreads={threads} &> {output.runlog}
sed -n '/\*\*\* LG \=/,$p' {output.runlog} > {output.lg}
grep "recombin" {output.runlog} > {log.recomb}
awk '/#java/{{flag=1}} flag; /logL/{{flag=0}}' {output.runlog} > {log.run}
Expand Down

0 comments on commit 6e3c698

Please sign in to comment.