I have a file containing 40 000 fasta sequences (approx.). I would like to split this file into 4 files containing 10 000 fasta sequences. How can i do that?
feedback is appreciated. Thanks. jd
I have a file containing 40 000 fasta sequences (approx.). I would like to split this file into 4 files containing 10 000 fasta sequences. How can i do that?
feedback is appreciated. Thanks. jd
If you ask like you just want someone to write some code for you you'll get no answers. Instead of this try putting your code, what have you tried.
If you are new to Python visit hereinput and output to find out how to write and read files. Then you can use enumerate function enumerate to read first 10.000,20.000... lines from your file and write lines into a new file.