<div dir="ltr">Well. I made a very small fastq input file, stripped out all possible code, ran it in the debugger, and then it started working. Now the original code and data files also work. File it under "just keep trying stuff".<br><br>On Wednesday, November 12, 2014 6:01:01 PM UTC-6, Jennifer Krauel wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir="ltr">I'm having some trouble running a very basic bioperl script to
transform a fastq file into a fasta file. When I try to dereference a
sequence object I get this error:
<span style="font-size:11.0pt;font-family:"Menlo Regular";color:black">"Can't call method "seq" without a package or object reference..."<br>It's boilerplate code, and the error is on the last line in the snippet below:<br></span><br><span style="font-size:11.0pt;font-family:"Menlo Regular";color:black"><span style="font-size:11.0pt;font-family:"Menlo Regular";color:black">my $seq_in = Bio::SeqIO->new(<br> -file => "<$infile",<br> -format => $infileformat,<br> );<br>my $i=0;<br>while (my $this_seq = $seq_in->next_seq && $i < 100) <br> { #while more sequences in fastq file<br> <br> $i++;<br> my $seqstring = $this_seq->seq();<br>...<br><br></span>The counter is just to limit the number of reads while I'm testing the code, I don't think it should be causing the problem. I tried to google the error but didn't come up with anything useful except the suggestion that I might not be working with a clean or up to date bio perl installation. <br><br>When I try to get the bioperl version using this code:<br>perl -MBio::Root::Version -e 'print $Bio::Root::Version::VERSION,"<wbr>\n"' <br>I get 1.005002102, which seems odd. <br><br>When I ask for the version number of SeqIO using <br>perl -MBio::SeqIO -e 'printf "%vd\n", $Bio::SeqIO::VERSION' <br>I get 49.46.48.48.53.48.48.50.49.48.<wbr>50.<br><br>I am using CloudBioLinux on AWS, with whatever standard installation that provides (which is the whole point of using AWS). <br><br>Is there something bone-headed I am doing, or is this an issue I should pursue with the Cloud folks?<br><br>Thanks!<br>Jennifer</span><br><span style="font-size:11.0pt;font-family:"Menlo Regular";color:black"></span></div></blockquote></div>