SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
Save error report as text file in BWA CNVboy Bioinformatics 0 06-27-2011 04:03 PM
Biomedical Text Mining Engineer Ingenuity Industry Jobs! 0 02-04-2011 05:05 PM
BLAST output parsing in R? rdu Bioinformatics 3 01-25-2011 07:25 AM
Re: New to programming need help for inserting text kapoormanav Bioinformatics 5 07-09-2010 01:23 PM
Parsing COSMIC Lee Sam Bioinformatics 0 06-28-2010 08:11 AM

Reply
 
Thread Tools
Old 08-23-2010, 08:50 AM   #1
guavajuice
Junior Member
 
Location: Texas

Join Date: Mar 2010
Posts: 6
Default Parsing Pileup with Text:CSV in Perl

I'm parsing a pileup file using the Tie:Text:CSV

input file:
chr1 58961 C M 1 1 60 2 .A XC
chr1 611593 A M 19 19 42 11 ,$.C,,C,,.., V7?[[VMZ8-"


my $fileParser = Text::CSV_XS->new( {binary=> 1, sep_char => "\t" }, eol => $/, allow_loose_quotes =>1);
my $inputHandle = Tie::Handle::CSV->new( $input, header => $headerRef, csv_parser => $fileParser );
while (my $line = <$inputHandle>) {
...
...
}

it parse the firstline fine but failed at the 2nd. i notice if i take out the double quote in the base quality string, then the 2nd line parses fine. How do make it to accept the ascii characters?
guavajuice is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 04:51 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO