1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
Author: Andreas Tille <[email protected]>
Last-Update: Sat, 14 Jan 2017 19:13:53 0100
Bug-Debian: https://bugs.debian.org/868073
Bug-Vendor: https://github.com/bioperl/bioperl-run/issues/52
Description: Do not try to run bowtie tests with wrong bowtie call
The testsuite (somehow magically) translates to bowtie-align but the
executables are either bowtie-align-l or bowtie-align-s
--- a/t/Bowtie.t
b/t/Bowtie.t
@@ -30,7 30,7 @@ BEGIN {
my $DEBUG = test_debug();
print STDERR $ulimit if $DEBUG == 1;
- test_begin(-tests => 70,
test_begin(-tests => 61,
-requires_modules => [qw(IPC::Run Bio::Tools::Run::Bowtie)]);
}
@@ -231,12 231,15 @@ SKIP : {
), "make a crossbow alignment factory";
is( $bowtiefac->command, 'crossbow', "command attribute set");
- ok $sam = $bowtiefac->run($rdc, $refseq), "make file based alignment";
- ok eval { (-e $sam)&&(-r _) }, "make readable output";
- open (FILE, $sam);
- $lines =()= <FILE>;
- close FILE;
- is( $lines, 6, "number of alignments"); # 3 alignments and 3 SAM header lines
## No idea how from this call a command line
## bowtie-align --wrapper basic-0 -e 70 -l 28 -n 2 -S --12 t/data/bowtie/reads/e_coli.cb t/data/bowtie/indexes/e_coli /tmp/ILc9j2LRpw/aBsCFOfFVE.sam
## is constructed but in any case this line is wrong since it needs to be either bowtie-align-s or bowtie-align-l
# ok $sam = $bowtiefac->run($rdc, $refseq), "make file based alignment";
# ok eval { (-e $sam)&&(-r _) }, "make readable output";
# open (FILE, $sam);
# $lines =()= <FILE>;
# close FILE;
# is( $lines, 6, "number of alignments"); # 3 alignments and 3 SAM header lines
ok $bowtiefac = Bio::Tools::Run::Bowtie->new(
-command => 'single',
@@ -247,18 250,21 @@ SKIP : {
ok $bowtiefac->set_parameters( -inline => 1 );
- ok $bowtiefac->_run( -ind => $refseq,
- -seq => $inlstr ), "read sequence as strings in memory";
-
- like($bowtiefac->stderr, qr/reads processed: 1000/, "bowtie success");
-
- ok $bowtiefac->run( \@inlstr, $refseq ), "read sequence as seq objects";
-
- like($bowtiefac->stderr, qr/reads processed: 1000/, "bowtie success");
-
- ok $bowtiefac->run( \@inlobj, $refseq ), "read sequence as seq objects";
-
- like($bowtiefac->stderr, qr/reads processed: 1000/, "bowtie success");
## No idea how from this call a command line
## bowtie-align --wrapper basic-0 -l 28 -e 70 -n 2 -S -c t/data/bowtie/indexes/e_coli 'GAACGATACCCACCCAACTATCGCCATTCCAGCAT,CCGAACTGGATGTCTCATGGGATAAAAATCATCCG,TCAAAATTGTTATAGTATAACACTGTTGCTTTATG,AAAATTTGTGCCTGGATGGCCTGAGTACCNANTAC,GCAGAGCAGTTGCTAGAAANNNNNTTGAAGAGGTT,CAGCATAAGTGGATATTCAAAGTTTTGCTGTTTTA,GGCAGTGATGCAACTGCCCGTTATCAACAGNCNCT,GCATATTGCCAATTTTCGCTTCGGGGATCAGGCTA,GGTTCAGTTCAGTATACGCCTTATCCGGCCTACGG,GGCGATGATTTCATTACCCTCAACGCCGAACAGGC,AATCCCACGGCGGCAGCATGGTCCTAGANAGGNCG,TTACCACCGAAGTAGCTTACCCATGCGCCGCCGAC,AATCACAGGCGGTGAGCAGTAACGATAATTCGGCT,CAGCTCGCACGCCACGCCGAACCATGTCATCAATT,CGCTTTTGTCCTCGGCGACTTCGGCAACCGATGCG,GGGTCTGGCCGTTTTCTGCTTCAACTTCAACAATC,ATCCGGTTAAAGATGTTGAGAAATATGTGGTGATG,TTTTGTGTGTGTAGTAGGCCTTGGATATTGGGGCT,CCTGAAGGCGCGCGTGACTACCTGGTGCCTTCTCG,CATATGCCCCAGCACTCTGATGGCATCGCCTTCCA,ATAGACGCAAAAGAGCAAATAACATTTCTTCACAA,TAATGATAAGGAATCACTGTTTTTGAGAAAAGATA,TTGGGATTGTGGGCGTGACAATTTTCTCGATGATT,ATCGCGAACACCTTTACCGATTTATCGCCGAAGTG,AGATGAAGTTGTTTTGGCGTCATTCCGAAAAATTG,TCCGTATTCAGGGCGCTGCGGGAGAAGAAATCNGT,ATGGGAACAGTAATCTTTTTTACTGGTTCTGCGTC,TATGTCACATTTATTTTTCCTTAAAACTACAATAT,TGTTTTCCCGGTTGTCGGGGATCGGTTTGCCGCTG,ACCTGGAAATCTGTACCAAACCCCATGCCGGATAA,AGCAACATCATTCTCCCGTAAAAAGGGAGTCGATG,CCGATAGTGCCGTAGTANAATTAGTTTTTNNTTAG,TCGTTTCTGTCTGAGTCGATAGCTTTCTCCTTTGA,CGTGGTCATCAGATCATGCGGCAAACCAAANNNNN,AGCGGCCAGGTGCTTTCCGGGATAGTAAACAGGCG,GCAACGCGCGGGGCTAATCGGGATCTGCCCGGAAG,CCGGTTTCACATCCGGTGCAGGCTGTGGTGCTGAC,GCATTGCTGCCCATCCTGATTTGCCTGTTAAGCAG,GCCGTCTGCACCGTAGCCTGGTATGTGAGTGCGAA,GCTATCTGCCGTTCAGTCAGAGTNCGANGCCTNAN,CGCAGTCGAAGAGGTGGAAGCATTAATGCNTAATA,CGAATCAGGCGATTCGTCAGACGGGAATGTTGNGT,TCCACGGAAGTTTTCAGAGATGAGAATGTGCCTTC,TTGCAGGAAATTCTGTNACCCTCNACNAAGCATCA,AGAAAATATGACCCCGCAGGATTACAACGACGTCN,GAAAAAGTTTCATAAAGACTCCAGATGATCGATGG,TTTCGGGGATGCGGTGGCGCGTCTGGATAAGCGTC,ATCCGGATTGTATTGAGATCCTGCCCGTGNGCTCA,CCAACCTTCTCCGCCTGCTTCGGCGCGGCGTTCCT,TGTTTCGCGTCGCAAAGTGGAGCGAGACGTGCAAG,GTGGTGCATTTTGATATTCCGCGCAATATCGAATC,GTCGTTATAGTCTTCAAGCCACGGGTAGACGAAAG,GCGTTTATGCGCGTGAACANNANTCCTCATATTAA,GCTGCGGGATCACCTGATCTGCCGGATGTCGTGTA,ATCGTTCATTGAGCGCAAAATGACGCTTTTGAGGG,AATGACTATCCGCTGGATCACGAATTTATCAGTGT,AAGGCAACGAAGAAGCCGATGATCCAGATCCAGCA,TGGGTGTAAGCCTGTTCCACTGCCTGCTGTTANCT,ACGCGTTTACTGTTCACCAGATCGCCCATCAACAT,TGATGTAACGCCTGATGGCCTGCATATCGCCCAGT,ACGGGTCAGCAACATCTGCCCGATATGAATGTNGN,CGATGAAGAAAAATCGCTGGTGAAACAAGCAGATG,GTCGCTCGCTACGATCAGCAAAAATATGACATCTT,CATTTCTGTACTCATGCAGCCCCCTTCTGAAATAA,CACGCGTTGGGTATGGACGAACTGGAAGGTCATGA,TGAGAACGGCTTATCTCATTTTCGCAGTCACTATT,GTCCGGCATCCAGGTTTTTCACGGCAGATTATCAG,GACATGTGAACCTTCTTTTTCAAGCTGCCAATGAT,TGCTATTTATCGAACTGGGGGGGGAGAACCTGCNC,ACCCCCTCATACCCACCTCTTTCTCCANGTNNGTN,TAATTCGATGCAACGCGAAGAACCTTACCTGGACT,TNNNNNNNNNNNNNNNNNNNNNNNNNGNNNNNNNN,GTTCACGGGGTTAGCGAAGATCCATCCCGCGTGCA,CCAATGANNNNNNNNNNNNNNNNNNNNNNNNNNNN,AGTTGAAACATTTTACCTGCATCAGCACACGGTNG,ACGTTCAGTTCTTTCGCCAGTGCTTTCAGCTAACG,TTTGCAGTAAAGGGTAAACGGATTGCCAGACNCCA,ATAGCCGCCCGC
## is constructed but in any case this line is wrong since it needs to be either bowtie-align-s or bowtie-align-l
# ok $bowtiefac->_run( -ind => $refseq,
# -seq => $inlstr ), "read sequence as strings in memory";
#
# like($bowtiefac->stderr, qr/reads processed: 1000/, "bowtie success");
#
# ok $bowtiefac->run( \@inlstr, $refseq ), "read sequence as seq objects";
#
# like($bowtiefac->stderr, qr/reads processed: 1000/, "bowtie success");
#
# ok $bowtiefac->run( \@inlobj, $refseq ), "read sequence as seq objects";
#
# like($bowtiefac->stderr, qr/reads processed: 1000/, "bowtie success");
$bowtiefac->set_parameters( -inline => 0 );
ok $sam = $bowtiefac->run($rdr,$refseq), "make variable based alignment";
|