Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip blank lines in the reads file #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions METABOLIC-C.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1775,17 +1775,17 @@ sub _get_Genome_coverge{
open __IN, "$reads";
while (<__IN>){
chomp;
if (!/^#/){
my @tmp = split (/\,/,$_);
my $tmp_link = "";
if ($test ne "true"){
$tmp_link = $tmp[0]."\t".$tmp[1];
}else{
$tmp_link = "$METABOLIC_dir/METABOLIC_test_files/METABOLIC_test_reads/".$tmp[0]."\t"."$METABOLIC_dir/METABOLIC_test_files/METABOLIC_test_reads/".$tmp[1];
}
$Reads{$tmp_link} = $i;
$i++;
next if /^#/ or /^\s*$/; # Skip comments and blank lines

my @tmp = split /,/;
my $tmp_link = "";
if ($test ne "true"){
$tmp_link = $tmp[0]."\t".$tmp[1];
}else{
$tmp_link = "$METABOLIC_dir/METABOLIC_test_files/METABOLIC_test_reads/".$tmp[0]."\t"."$METABOLIC_dir/METABOLIC_test_files/METABOLIC_test_reads/".$tmp[1];
}
$Reads{$tmp_link} = $i;
$i++;
}
close __IN;

Expand Down