Discussion forums: Help
Expanded view | Monitor forum | Save place
Message
Contribute
Submitted by Andrew Leung;
posted on Friday, November 4, 2005
Hi Amir,
This is my first contribution. Please review and consider inclusion. It is a one-liner to count A, T, G, C from a fasta sequence.
perl -ne "BEGIN {%cnt}" -e "@nt= /^>/ || split //, $_; foreach (
@nt) { $cnt{a}++ if /[Aa]/; $cnt{t}++ if /[Tt]/; $cnt{g}++ if /[Gg]/; $cnt{c}++
if /[Cc]/; } END { print \"a$cnt{a}\tt$cnt{t}\tg$cnt{g}\tc$cnt{c}\"; }"
Also, are you looking for a developer to help your project? If yes, would you please let me join and please advise what I can help?
Andrew (Hong Kong)
|
Post a followup to this message:
You have to be logged in to post a reply.
Thread view
|
|||
|