Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Huanle authored Dec 14, 2017
1 parent 083d189 commit b08b5d7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pal2nal=$1
tree=$2
perl ~/Bin/inHouse/codeml_util/replace_gene_tree_and_alignment_with_same_names.pl $pal2nal $tree
7 changes: 7 additions & 0 deletions scripts/iq_tree_/change_iqGeneTree_to_old_names.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
tree=$1
#perl -ne 's/\)\d*:\d*\.\d*/\)/g; s/:\d*\.\d*//g; s/,/\n,/g; print $_;' $tree | sed 's/_/|/' | perl -ne 'chomp; s/\)\d+/\)/g; print $_;' > ${tree/.**}.original_names.tre

#same as:perl -ne 's/\)\d*:\d*\.\d*/\)/g; s/:\d*\.\d*//g; s/,/\n,/g; s/\)\d+/\)/g; print $_;' $tree | sed 's/_/|/' | perl -ne 'chomp; print $_;' >


sed 's/,/\n/g' $tree | sed 's/_/\|/'| perl -ne 's/\)\d*:\d*\.\d*/\)/g; s/:\d*\.\d*//g; s/\n/,/;print $_;' |perl -pe 's/,$//;' > ${tree/.**}.original_names.tre
8 changes: 8 additions & 0 deletions scripts/iq_tree_/change_orthofinder.tree.2.original.names.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tree=$1
#perl -ne 's/\)\d*:\d*\.\d*/\)/g; s/:\d*\.\d*//g; s/,/\n,/g; print $_;' $tree | sed 's/_/|/' | perl -ne 'chomp; s/\)\d+/\)/g; print $_;' > ${tree/.**}.original_names.tre

#same as:perl -ne 's/\)\d*:\d*\.\d*/\)/g; s/:\d*\.\d*//g; s/,/\n,/g; s/\)\d+/\)/g; print $_;' $tree | sed 's/_/|/' | perl -ne 'chomp; print $_;' >



sed 's/,/\n/g' $tree | perl -ne 's/_\S+\|/\|/g; print $_;' | perl -ne 's/\)\d*:\d*\.\d*/\)/g; s/:\d*\.\d*//g; s/\n/,/;print $_;' > ${tree/_**}.original_names.tre

0 comments on commit b08b5d7

Please sign in to comment.