What can I do if my input file is too big?

49 views
Skip to first unread message

Csaba Kerepesi

unread,
Apr 16, 2015, 9:02:12 AM4/16/15
to ampho...@googlegroups.com
If your input file is too big then you can cut off it. Here are some help to do that:

1. Use head and tail commands in a Linux terminal:

$ head -150000 input.fa > out1.fa
$ tail -150000
input.fa > out2.fa

These command line create two new files with the content of input.fa from line #1 to #150000 and from line #150001 to line #300000.

2. Use VIM editor
:

$ vim input.fa
:1,150000 w out1
.fa
:150001,300000 w out2.fa

These command line create two new files with the content of input.fa from line #1 to #150000 and from line #150001 to line #300000.

3. Multiple fasta/fastq file splitter in Biopython

Use this Biopython program: Split large file
Reply all
Reply to author
Forward
0 new messages