diff options
author | Brian Cully <bjc@kublai.com> | 2022-12-12 10:05:42 -0500 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2022-12-12 10:05:42 -0500 |
commit | c0c8775cb79412d515d43c7f1dc0db95b7f795a9 (patch) | |
tree | 49e1b5c82dbe07fa31647f4082a0d79c99a8e2f8 | |
parent | dc6ceb5d7016d288b0b6a000a068359daef4858e (diff) | |
download | fav-c0c8775cb79412d515d43c7f1dc0db95b7f795a9.tar.gz fav-c0c8775cb79412d515d43c7f1dc0db95b7f795a9.zip |
strip newlines in input before codon lookup
-rwxr-xr-x | varscan2codon.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/varscan2codon.pl b/varscan2codon.pl index e0eaaf8..8cd36c6 100755 --- a/varscan2codon.pl +++ b/varscan2codon.pl @@ -33,6 +33,7 @@ my $variants = IO::File->new($ARGV[2]) or die "Couldn't open $ARGV[1] for reading: $!\n"; my $name = 'unnamed-change'; while (<$variants>) { + chomp; my ($name_maybe, $ref, $pos, $orig_nt, $new_nt) = split /,/; $name = $name_maybe if length($name_maybe) > 0; |