Skip to content

Commit 266a657

Browse files
author
Chaim A Schramm
committed
still more bug fixes
1 parent 3c72176 commit 266a657

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

phylogeny/3.1-merge_timepoints.pl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
3.1-merge_timepoints.pl
66
7-
This script uses USearch to recluster selected sequences from multiple timepoints
7+
This script uses vsearch to recluster selected sequences from multiple timepoints
88
to determine "birthdays" and persistence times. It is recommended to use
99
custom prefixes that correspond to actual time points from longitudinal
1010
samples, whether relative (weeks or months post infection) or absolute
@@ -24,7 +24,7 @@
2424
Defaults to "01", "02", etc and will be prepended with a
2525
dash separating it from the orginal sequence name. Dashes
2626
are not allowed in the labels themselves, to ease processing.
27-
-c => Use USearch's cluster_fast command instead of derep_fulllength.
27+
-c => Use vsearch's cluster_fast command instead of derep_fulllength.
2828
Allows fragments missing a few AA at either end to be
2929
counted as the same as a full-length sequence.
3030
--t => Clustering threshold to use. Not setable when using the
@@ -137,25 +137,25 @@
137137

138138

139139

140-
# run USearch
140+
# run vsearch
141141
my $cmd = ppath() . "vsearch -derep_fulllength work/phylo/all_seqs.fa -uc work/phylo/uc";
142142
if ($clustFast){
143143
# -maxgaps parameter treats sequences unique except for an indel as distinct
144-
# need to sort by length because of possible fragments
145-
$cmd = ppath() . "vsearch -cluster_fast work/phylo/all_seqs.fa -sort length -id $threshold -uc work/phylo/uc -maxgaps 2";
144+
# vsearch automatically sorts by length, accountign for possible fragments
145+
$cmd = ppath() . "vsearch -cluster_fast work/phylo/all_seqs.fa -id $threshold -uc work/phylo/uc -maxgaps 2";
146146
}
147147
print "$cmd\n";
148148
system($cmd);
149149

150150

151151

152-
#Parse USearch output (sample lines below)
152+
#Parse vsearch output (sample lines below)
153153
#S 0 348 * . * * * 00-000154 *
154154
#H 0 348 100.0 . 0 348 = 00-000180 00-000154
155155
#C 0 18258 * * * * * 00-000154 *
156156

157157
my %cluster;
158-
open UC, "work/phylo/uc" or die "Can't find output from USearch: $!. Please check parameters.\n";
158+
open UC, "work/phylo/uc" or die "Can't find output from vsearch: $!. Please check parameters.\n";
159159
while (<UC>) {
160160
last if /^C/; #speed processing by skipping summary lines
161161

version.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sub logCmdLine() {
2828

2929
my $command = shift;
3030
foreach(@_) { $command .= /(\s|\*)/ ? " \'$_\'" : " $_"; }
31-
my $VERSION = `git --git-dir $FindBin::Bin/../../.git --work-tree=$FindBin::Bin/../ describe --always --dirty --tags`;
31+
my $VERSION = `git --git-dir $FindBin::Bin/../.git --work-tree=$FindBin::Bin/../ describe --always --dirty --tags`;
3232
chomp $VERSION;
3333

3434
our $LOGFILE = "SONAR_command_history.log";

0 commit comments

Comments
 (0)