We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8eaa16 commit 94ad015Copy full SHA for 94ad015
bootstrapGeneTrees.sh
@@ -0,0 +1,21 @@
1
+#!/bin/bash
2
+
3
+#Tyler K. Chafin
4
+#July 23 2021
5
+#Generates n bootstrap samples of an input newick-formatted file of trees
6
+#Email: [email protected] with issues
7
8
+if [ $1 ] && [ $2 ];
9
+then
10
+ trees="$1"
11
+ n=$2
12
+else
13
+ printf "\nUsage: $0 <tree file> <n>\n\n"
14
+ exit 1
15
+fi
16
17
+for i in `seq 1 $n`;
18
+do
19
+ ofile="b_"$i".tre"
20
+ shuf -r -n $n $trees > $ofile
21
+done
test_files/gtrees.tre
@@ -0,0 +1,10 @@
+(4,(1,(2,3)));
+(4,(2,(1,3)));
+(1,(4,(2,3)));
+(4,(3,(2,3)));
0 commit comments