Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzsedlazeck committed Mar 30, 2016
1 parent 76212cc commit 79f59ae
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions separate_readpairs.pl
@@ -0,0 +1,19 @@
#!/usr/local/bin/perl -w

my $in=$ARGV[0];
open(IN, "<$in");
open(OUT1, ">forward.fastq");
open(OUT2, ">backward.fastq");
my $count = 0;
while(<IN>) {
if ($count < 4) {
print OUT1 $_;
} else {
print OUT2 $_;
}
$count++;
if ($count == 8){ $count = 0;}
}
close(IN);
close(OUT1);
close(OUT2);

0 comments on commit 79f59ae

Please sign in to comment.