For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > October 2006 > HELP....counting sequences and outputting to Excel









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author HELP....counting sequences and outputting to Excel
Captairave

2006-10-11, 10:47 am

Im very new to this and have been thrown in at the deep end....basically I have data in this format (FASTA)...

>seq001
ATTTTCCCCCCGGTTTT
>seq002
TTTGGATTACCTA
>seq003
TTTGAAACCCTTGGTT

I have managed to set up a program that counts the total number of bases (A,T,C,G) and outputs to a CSV file, placing the total for each base in a different cell. What I need to do now is count the bases for each individual sequence and output the result to excel. So basically I will have sequence number/name, number of A's in the sequence, number of T's in the sequence etc....then perl will need to do this for the next sequence and so on. Notice that each sequence line always starts with a >

Thanks for any help you can give!!
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com