Skip to content
Snippets Groups Projects
Commit acb922b0 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

ENSCORESW-3147: correctly capture all required fields from file

parent b687ee4d
No related branches found
No related tags found
2 merge requests!386ENSCORESW-3147: correctly capture all required fields from file,!386ENSCORESW-3147: correctly capture all required fields from file
......@@ -141,11 +141,17 @@ sub run_script {
} else {
my $file_io = $self->get_filehandle($file);
if ( !defined $file_io ) {
print "ERROR: Can't open HGNC file $file\n";
print "ERROR: Can't open RFAM file $file\n";
return 1;
}
my $temp_line;
while (my $line = $file_io->getline()) {
push(@lines, $line);
if ($line =~ /\/\//) {
push @lines, $temp_line;
$temp_line = '';
} else {
$temp_line .= $line . "\n";
}
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment