in reply to splitting fasta file into individual fasta files
Any ideas?
On what? If you asked a question, we could have answered it, maybe.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: splitting fasta file into individual fasta files
by lomSpace (Scribe) on May 06, 2009 at 21:57 UTC | |
based on the delimiter '>' and then print the lines in between '>' and the next '>' then continue until I have separate files like this file1: And file2: I am running into some trouble with this code: Sorry for not being specific enough :-) | [reply] [d/l] [select] |
by moritz (Cardinal) on May 06, 2009 at 22:07 UTC | |
Actually I was interested in what kinds of trouble you ran into, but anyway... There's a trick in Perl that makes that quite easy: you can set the input record separator to '>', so that the <DATA> iterator gives you chunks splitted by '>':
| [reply] [d/l] [select] |
by citromatik (Curate) on May 07, 2009 at 09:13 UTC | |
You can use Tie::File::AnyData::Bio::Fasta to facilitate this task. This script reads a multi-fasta file and splits it in multiple single-fasta files:
citromatik | [reply] [d/l] |
by lomSpace (Scribe) on May 07, 2009 at 16:06 UTC | |
Thanks. I have installed the files into 'C:\Perl\site\lib' and 'C:\Perl\lib' on my windows system, but the error keeps stating that it 'Can't locate Tie/File/AnyData/Bio/Fasta.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .)' What could I be doing wrong? | [reply] |