require "$ENV{HOME}/bin/find_species.pl";
}
+# check for arguments and explain usage
+if ($#ARGV !=0) {
+ print "usage: supercluster.pl species_list_file\n";
+ exit;
+}
+
+my $spec_file = $ARGV[0];
+
my $dbh = DbiFloret::dbconnect;
print "Minimum paralogy score: ";
$min_score = 0;
}
-
+my @species;
+
+open(SPECFILE, "$spec_file");
+
+while(<SPECFILE>) {
+ my $line = $_;
+ chomp $line;
+ push (@species, $line);
+}
+
#### Note to self ####
## To not have multiple values in mysql table, use insert ignore instead of insert. Or use replace.
my %super_hash;
my %big_count_hash;
-my @species = ("Arabidopsis_lyrata", "Arabidopsis_thaliana", "Carica_papaya", "Citrus_clementina", "Citrus_sinensis", "Eucalyptus_grandis", "Fragaria_vesca", "Malus_domestica", "Oryza_sativa", "Populus_trichocarpa", "Prunus_persica", "Vitis_vinifera");
-#my @species = all_species_array();
my $num_species = @species;
for (my $i=0; $i<$num_species-1; $i++) {