Skip to content

Commit

Permalink
append to folder name to the resulting TSV, PNG
Browse files Browse the repository at this point in the history
  • Loading branch information
subwaystation committed Apr 1, 2021
1 parent 8c162e1 commit e78ba50
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pgge
Original file line number Diff line number Diff line change
Expand Up @@ -399,19 +399,19 @@ then
(echo sample.name cons.jump aln.id qsc uniq multi nonaln; ls "$output_dir" | grep gaf | grep pgge$ | while read f; \
do
echo "$(echo "$f" | cut -f 2 -d .)" "$(echo "$f" | cut -f 2 -d @ | cut -f 1 -d.)" "$(cat "$output_dir"/"$f")"; \
done) | tr ' ' '\t' > "$prefix_pgge".tsv
done) | tr ' ' '\t' > "$prefix_pgge"."$(basename $output_dir)".tsv
"$timer" -f "$fmt" Rscript \
"$beehave_R" "$prefix_pgge".tsv \
"$prefix_pgge".tsv.png \
"$beehave_R" "$prefix_pgge"."$(basename $output_dir)".tsv \
"$prefix_pgge"."$(basename $output_dir)".tsv.png \
2> >(tee -a "$log_file")
else
(echo sample.name cons.jump aln.id qsc uniq multi nonaln; ls "$output_dir" | grep gaf | grep pgge$ | while read f; \
do
echo "$(echo "$f" | cut -f 2 -d .)" "$(basename $(echo "$output_dir"/"$f"))" "$(cat "$output_dir"/"$f")"; \
done) | tr ' ' '\t' > "$prefix_pgge".tsv
done) | tr ' ' '\t' > "$prefix_pgge"."$(basename $output_dir)".tsv
"$timer" -f "$fmt" Rscript \
"$beehave_R" "$prefix_pgge".tsv \
"$prefix_pgge".tsv.png \
"$beehave_R" "$prefix_pgge"."$(basename $output_dir)".tsv \
"$prefix_pgge"."$(basename $output_dir)".tsv.png \
"$input_graph_names" \
2> >(tee -a "$log_file")
fi

0 comments on commit e78ba50

Please sign in to comment.