From 7f1597602f809fcc38c4312130c4512833397eb1 Mon Sep 17 00:00:00 2001 From: Naama Menda Date: Mon, 11 Jul 2022 11:24:40 -0400 Subject: [PATCH] fix file extention cleaning --- bin/loading_scripts/LoadTomDelSGN.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/loading_scripts/LoadTomDelSGN.pm b/bin/loading_scripts/LoadTomDelSGN.pm index 79849c1..2d36b89 100644 --- a/bin/loading_scripts/LoadTomDelSGN.pm +++ b/bin/loading_scripts/LoadTomDelSGN.pm @@ -84,7 +84,7 @@ sub run { chomp $file; my $filename = basename($file); #remove the extension - my $clean_filename = split(/.pdf/ , $filename); + my ($clean_filename, $ext) = split(/\.pdf/ , $filename); my ($gene_model, $chr, $position) = split (/_/ , $clean_filename ) ; #Solyc01g005000.2_SL2.50ch01_14034.pdf #chromosome: SL2.50ch08, position: 1734498, link to genotype frequencies in tomato populations @@ -92,7 +92,7 @@ sub run { if ($gene_model =~ m/Solyc.*/) { my ($tomato_locus_name, $version) = split (/\./ , $gene_model ) ; $sgn_locusname = $tomato_locus_name; - print STDERR "Found tomato locus $sgn_locusname\n"; + print STDERR "Found tomato locus $sgn_locusname, $chr, $position\n"; } my $locus = CXGN::Phenome::Locus->new_with_locusname($dbh, $sgn_locusname); my $locus_id = $locus->get_locus_id; -- 2.11.4.GIT